diff --git a/api/@internal/component/ets/web.d.ts b/api/@internal/component/ets/web.d.ts index 300ba27ae33298d5a1e9baecc09370aead69c410..57325d3d9edc6996ff5b74407931cf3972e34579 100644 --- a/api/@internal/component/ets/web.d.ts +++ b/api/@internal/component/ets/web.d.ts @@ -1563,6 +1563,7 @@ declare class WebAttribute extends CommonMethod { * * @since 8 * @deprecated since 9 + * @useinstead ohos.web.WebAttribute#textZoomRatio */ textZoomAtio(textZoomAtio: number): WebAttribute; @@ -1750,6 +1751,7 @@ declare class WebAttribute extends CommonMethod { * * @since 8 * @deprecated since 9 + * @useinstead ohos.web.WebAttribute#onSslErrorEventReceive */ onSslErrorReceive(callback: (event?: { handler: Function, error: object }) => void): WebAttribute; @@ -1776,6 +1778,7 @@ declare class WebAttribute extends CommonMethod { * * @since 8 * @deprecated since 9 + * @useinstead ohos.web.WebAttribute#onRenderExited */ onRenderExited(callback: (event?: { detail: object }) => boolean): WebAttribute; @@ -1785,6 +1788,7 @@ declare class WebAttribute extends CommonMethod { * * @since 8 * @deprecated since 9 + * @useinstead ohos.web.WebAttribute#onShowFileSelector */ onFileSelectorShow(callback: (event?: { callback: Function, fileSelector: object }) => void): WebAttribute; diff --git a/api/@ohos.web.webview.d.ts b/api/@ohos.web.webview.d.ts index b2ac4386bd72c6be24626986c7228cdce90e733f..5edf10210a0cfbaa8f232b847c48f8c59d7669ed 100644 --- a/api/@ohos.web.webview.d.ts +++ b/api/@ohos.web.webview.d.ts @@ -149,7 +149,7 @@ declare namespace webview { * * @param { string } origin - The origin which to be deleted. * @throws { BusinessError } 401 - Invalid input parameter. - * @throws { BusinessError } 17100011 - Invalid permission origin. + * @throws { BusinessError } 17100011 - Invalid origin. * @since 9 */ static deleteOrigin(origin : string): void; @@ -168,7 +168,7 @@ declare namespace webview { * Get the web storage quota with the origin. * @param { string } origin - The origin which to be inquired. * @throws { BusinessError } 401 - Invalid input parameter. - * @throws { BusinessError } 17100011 - Invalid permission origin. + * @throws { BusinessError } 17100011 - Invalid origin. * @since 9 */ static getOriginQuota(origin : string) : Promise; @@ -178,7 +178,7 @@ declare namespace webview { * Get the web storage quota with the origin. * @param { string } origin - The origin which to be inquired. * @throws { BusinessError } 401 - Invalid input parameter. - * @throws { BusinessError } 17100011 - Invalid permission origin. + * @throws { BusinessError } 17100011 - Invalid origin. * @since 9 */ static getOriginUsage(origin : string) : Promise ; @@ -290,7 +290,7 @@ declare namespace webview { * Allow geolocation permissions for specifies source. * @param { string } origin - Url source. * @throws { BusinessError } 401 - Invalid input parameter. - * @throws { BusinessError } 17100011 - Invalid permission origin. + * @throws { BusinessError } 17100011 - Invalid origin. * * @since 9 */ @@ -300,7 +300,7 @@ declare namespace webview { * Delete geolocation permissions for specifies source. * @param { string } origin - Url source. * @throws { BusinessError } 401 - Invalid input parameter. - * @throws { BusinessError } 17100011 - Invalid permission origin. + * @throws { BusinessError } 17100011 - Invalid origin. * * @since 9 */ @@ -319,7 +319,7 @@ declare namespace webview { * @param { AsyncCallback } callback - Return to the specified source * geographic location permission status. * @throws { BusinessError } 401 - Invalid input parameter. - * @throws { BusinessError } 17100011 - Invalid permission origin. + * @throws { BusinessError } 17100011 - Invalid origin. * @return { Promise } Return whether there is a saved result. * * @since 9