diff --git a/api/@internal/component/ets/web.d.ts b/api/@internal/component/ets/web.d.ts index ade286994b58bc024a16e978fd7393d343935965..3ea26f44fac7317b4b879be5d7067a0bfd7bacdb 100644 --- a/api/@internal/component/ets/web.d.ts +++ b/api/@internal/component/ets/web.d.ts @@ -4656,6 +4656,27 @@ declare class WebController { getCookieManager(): WebCookie; } + /** + * Enum type indicates the web standard api. + * @enum { number } + * @syscap SystemCapability.Web.Webview.Core + * @since 20 + */ +declare enum StandardWebAPIType { + /** + * This is the window.screen.availWidth interface. + * @syscap SystemCapability.Web.Webview.Core + * @since 20 + */ + SCREEN_AVAIL_WIDTH, + /** + * This is the window.screen.availHeight interface. + * @syscap SystemCapability.Web.Webview.Core + * @since 20 + */ + SCREEN_AVAIL_HEIGHT +} + /** * Defines the Web options. * @@ -4801,6 +4822,14 @@ declare interface WebOptions { * @since 12 */ sharedRenderProcessToken? : string; + /** + * Sets the web standard api follow w3c standard. + * + * @type { ?Array } + * @syscap SystemCapability.Web.Webview.Core + * @since 20 + */ + standardWebAPI?: Array } /**