diff --git a/api/@internal/component/ets/web.d.ts b/api/@internal/component/ets/web.d.ts index bec44b68a7da06ce1664b628e6dd7b4cd93134f6..52d141ab7357691a71d35463b4d8c4a0ae29c40e 100644 --- a/api/@internal/component/ets/web.d.ts +++ b/api/@internal/component/ets/web.d.ts @@ -558,7 +558,7 @@ declare class HttpAuthHandler { * @since 9 */ cancel(): void; - + /** * Ignore this certificate request temporarily. * @since 9 @@ -630,7 +630,7 @@ declare class DataResubmissionHandler { * @since 9 */ resend(): void; - + /** * Do not resend related form data. * @since 9 @@ -720,7 +720,7 @@ declare enum ContextMenuInputFieldType { * @since 9 */ Password, - + /** * The number type. * @since 9 @@ -838,7 +838,7 @@ declare class WebContextMenuParam { * @since 9 */ getInputFieldType(): ContextMenuInputFieldType; - + /** * Returns whether the context is editable. * @since 9 @@ -1024,7 +1024,7 @@ declare class WebResourceRequest { /** * Get request mothod. * @returns Return the request method. - * + * * @since 9 */ getRequestMethod(): string; @@ -1137,14 +1137,14 @@ declare class WebResourceRequest { * @since 9 */ setResponseCode(code: number); - + /** * Sets the response is ready or not. * @param IsReady whether the response is ready. * * @since 9 */ - setResponseIsReady(IsReady: boolean); + setResponseIsReady(IsReady: boolean); } /** @@ -2178,7 +2178,7 @@ declare class WebAttribute extends CommonMethod { * @since 9 */ webStandardFont(family: string): WebAttribute; - + /** * Set the font of webview serif font library. The default font is "serif". * @param family Serif font set series. @@ -2186,7 +2186,7 @@ declare class WebAttribute extends CommonMethod { * @since 9 */ webSerifFont(family: string): WebAttribute; - + /** * Set the font of webview sans serif font library. The default font is "sans-serif". * @param family Sans serif font set series. @@ -2194,7 +2194,7 @@ declare class WebAttribute extends CommonMethod { * @since 9 */ webSansSerifFont(family: string): WebAttribute; - + /** * Set the font of webview fixed font library. The default font is "monospace". * @param family Fixed font set series. @@ -2202,7 +2202,7 @@ declare class WebAttribute extends CommonMethod { * @since 9 */ webFixedFont(family: string): WebAttribute; - + /** * Set the font of webview fantasy font library. The default font is "fantasy". * @param family fantasy font set series. @@ -2210,7 +2210,7 @@ declare class WebAttribute extends CommonMethod { * @since 9 */ webFantasyFont(family: string): WebAttribute; - + /** * Set the font of webview cursive font library. The default font is "cursive". * @param family Cursive font set series. @@ -2218,7 +2218,7 @@ declare class WebAttribute extends CommonMethod { * @since 9 */ webCursiveFont(family: string): WebAttribute; - + /** * Set the default fixed font value of webview. The default value is 13, ranging from 1 to 72. * @param size Font size. @@ -2226,7 +2226,7 @@ declare class WebAttribute extends CommonMethod { * @since 9 */ defaultFixedFontSize(size: number): WebAttribute; - + /** * Set the default font value of webview. The default value is 16, ranging from 1 to 72. * @param size Font size. @@ -2234,7 +2234,7 @@ declare class WebAttribute extends CommonMethod { * @since 9 */ defaultFontSize(size: number): WebAttribute; - + /** * Set the minimum value of webview font. The default value is 8, ranging from 1 to 72. * @param size Font size. @@ -2250,15 +2250,15 @@ declare class WebAttribute extends CommonMethod { * @since 9 */ minLogicalFontSize(size: number): WebAttribute; - + /** * Whether web component can load resource from network. * @param block {@code true} means it can't load resource from network; {@code false} otherwise. - * + * * @since 9 */ blockNetwork(block: boolean): WebAttribute; - + /** * Set whether paint horizontal scroll bar. * @param horizontalScrollBar True if it needs to paint horizontal scroll bar. @@ -2286,12 +2286,12 @@ declare class WebAttribute extends CommonMethod { /** * Triggered when the application receive a new favicon for the current web page. - * @param callback The triggered callback when the application receive a new favicon for the + * @param callback The triggered callback when the application receive a new favicon for the * current web page. * @since 9 */ onFaviconReceived(callback: (event: {favicon: PixelMap}) => void): WebAttribute; - + /** * Triggered when previous page will no longer be drawn and next page begin to draw. * @param callback The triggered callback when previous page will no longer be drawn and next @@ -2299,7 +2299,7 @@ declare class WebAttribute extends CommonMethod { * @since 9 */ onPageVisible(callback: (event: {url: string}) => void): WebAttribute; - + /** * Triggered when the form could be resubmitted. * @param callback The triggered callback to decision whether resend form data or not. @@ -2312,7 +2312,7 @@ declare class WebAttribute extends CommonMethod { * @param isEnabled True if it needs to enable smooth mode. * @since 9 */ - pinchSmooth(isEnabled: boolean) + pinchSmooth(isEnabled: boolean): WebAttribute; /** * Whether the window can be open automatically through JavaScript. @@ -2321,7 +2321,7 @@ declare class WebAttribute extends CommonMethod { * Otherwise, the window cannot be opened. * @since 9 */ - allowWindowOpenMethod(flag : boolean) + allowWindowOpenMethod(flag : boolean): WebAttribute; } declare const Web: WebInterface; diff --git a/api/@ohos.web.webview.d.ts b/api/@ohos.web.webview.d.ts index 18bc300e1f12acb1f5f587b199d455fa9d92a2b8..b1d33a16baca7126071c3aeb54e56278e64ab25b 100644 --- a/api/@ohos.web.webview.d.ts +++ b/api/@ohos.web.webview.d.ts @@ -165,9 +165,9 @@ declare namespace webview { * * @param type Types of web event. * @param callback Indicate callback used to receive the web event. - * + * * @throws { BusinessError } 401 - Invalid input parameter. - * + * * @since 9 */ function once(type: string, callback: Callback): void; @@ -281,7 +281,7 @@ declare namespace webview { /** * Constructor. * - * @param { WebController } controller WebAsyncController needs a WebController + * @param { WebController } controller WebAsyncController needs a WebController * to associate with corresponding nweb. * * @since 9 @@ -437,7 +437,7 @@ declare namespace webview { /** * Set whether the instance should send and accept cookies. * By default this is set to be true. - * + * * @param { boolean } accept - Whether the instance should send and accept cookies. * @throws { BusinessError } 401 - Invalid input parameter. * @@ -457,7 +457,7 @@ declare namespace webview { /** * Set whether the instance should send and accept thirdparty cookies. * By default this is set to be false. - * + * * @param { boolean } accept - Whether the instance should send and accept thirdparty cookies. * @throws { BusinessError } 401 - Invalid input parameter. * @@ -578,14 +578,14 @@ declare namespace webview { * @since 9 */ size: number; - + /** * Get history entry at given index. - * + * * @param { number } index Index of back forward list entry. * @throws { BusinessError } 401 - Invalid input parameter. * @returns { HistoryItem } HistoryItem at given index in back forward list. - * + * * @since 9 */ getItemAtIndex(index: number): HistoryItem; @@ -928,7 +928,7 @@ declare namespace webview { * Registers the JavaScript object and method list. * * @param { object } object - Application side JavaScript objects participating in registration. - * @param { string } name - The name of the registered object, which is consistent with the + * @param { string } name - The name of the registered object, which is consistent with the * object name called in the window. * @param { Array } methodList - Thr method of the application side JavaScript object participating * in the registration. @@ -1048,7 +1048,7 @@ declare namespace webview { * @since 9 */ pageUp(top:boolean): void; - + /** * Scroll the contents of this Webview down by half the view size. * @@ -1060,7 +1060,7 @@ declare namespace webview { * @since 9 */ pageDown(bottom:boolean): void; - + /** * Gets the original url of current Web page. * @@ -1071,7 +1071,7 @@ declare namespace webview { * @since 9 */ getOriginalUrl(): string; - + /** * Gets the original url of current Web page. * @@ -1082,7 +1082,7 @@ declare namespace webview { * @since 9 */ getFavicon(): image.PixelMap; - + /** * Put network state for web. Which is used to set window.navigator.isOnline property in * JavaScript. @@ -1095,7 +1095,7 @@ declare namespace webview { * @since 9 */ setNetworkAvailable(enable: boolean): void; - + /** * Query if current document has image. * @@ -1109,7 +1109,7 @@ declare namespace webview { */ hasImage(): Promise; hasImage(callback: AsyncCallback): void; - + /** * Get back forward stack list from current webview. * @@ -1120,11 +1120,11 @@ declare namespace webview { * @since 9 */ getBackForwardEntries(): BackForwardList; - + /** * Remove resource cache in application. So this method will remove all cache for all web components in the * same application. - * + * * @param { boolean } clearRom - Remove cache in both rom and ram if true. Otherwise only clear cache * in ram. * @throws { BusinessError } 401 - Invalid input parameter. @@ -1186,7 +1186,7 @@ declare namespace webview { /** * Restoring the web access stack, that is, the history of access. - * + * * @param { Uint8Array } state - Web access stack after serialization. * @throws { BusinessError } 401 - Invalid input parameter. * @throws { BusinessError } 17100001 - Init error. @@ -1197,7 +1197,7 @@ declare namespace webview { /** * Set whether the Web custom scheme supports cross domain and fetch requests. - * + * * @param { Array } schemes - Configuration of web custom scheme. * * @throws { BusinessError } 401 - Invalid input parameter.