From f6177f7391bded7291cf19441b8cc8f6a31b8150 Mon Sep 17 00:00:00 2001 From: zhufenghao Date: Wed, 6 Aug 2025 14:37:53 +0800 Subject: [PATCH] add zoomControlAccess api Signed-off-by: zhufenghao --- api/@internal/component/ets/web.d.ts | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/api/@internal/component/ets/web.d.ts b/api/@internal/component/ets/web.d.ts index 10481cf891..8293d9ea8c 100644 --- a/api/@internal/component/ets/web.d.ts +++ b/api/@internal/component/ets/web.d.ts @@ -5767,7 +5767,7 @@ declare interface OnTitleReceiveEvent { /** * Mark the source of the title. If it is true, the title is derived from the H5 title element; * If it is false, it is calculated from the URL. By default, it is calculated from the URL. - * + * * @type { ?boolean } * @syscap SystemCapability.Web.Webview.Core * @since 20 @@ -7239,7 +7239,7 @@ declare enum AudioSessionType { /** * PDF page load result - * + * * @enum { number } * @syscap SystemCapability.Web.Webview.Core * @since 20 @@ -10483,6 +10483,17 @@ declare class WebAttribute extends CommonMethod { * @since 20 */ gestureFocusMode(mode: GestureFocusMode): WebAttribute; + + /** + * Sets whether the Web supports zooming using Ctrl++, Ctrl+-,or Ctrl+mouse wheel. + * + * @param { boolean } zoomControlAccess - {@code true} means the Web supports zooming using Ctrl++, Ctrl+-,or Ctrl+mouse wheel; {@code false} otherwise. + * The default value is true. + * @returns { WebAttribute } + * @syscap SystemCapability.Web.Webview.Core + * @since 22 + */ + zoomControlAccess(zoomControlAccess: boolean): WebAttribute; } /** -- Gitee