From edabf843970cd2023bb6b1275525790f1af399c2 Mon Sep 17 00:00:00 2001 From: chyyy0213 Date: Wed, 13 Apr 2022 15:56:40 +0800 Subject: [PATCH] fixed 9e7c701 from https://gitee.com/chyyy0213/interface_sdk-js/pulls/1526 modify some interface Signed-off-by: chyyy0213 Change-Id: I53171ede3105c290ec363e83a2e003d5cad1e5b2 Signed-off-by: chyyy0213 --- api/@ohos.window.d.ts | 44 +++---------------------------------------- 1 file changed, 3 insertions(+), 41 deletions(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index fc44ff8043..c73851031b 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -105,7 +105,7 @@ declare namespace window { * the content color of the navigation bar * @since 8 */ - navigationBarContentColor?: string; + navigationBarContentColor?: string; } /** @@ -265,12 +265,6 @@ declare namespace window { */ brightness: number - /** - * The dimbehind value of window. - * @since 7 - */ - dimBehindValue: number - /** * Whether keep screen on. * @since 6 @@ -613,13 +607,13 @@ declare namespace window { */ loadContent(path: string, callback: AsyncCallback): void; - /** + /** * Loads content * @param path path of the page to which the content will be loaded * @syscap SystemCapability.WindowManager.WindowManager.Core * @since 7 */ - loadContent(path: string): Promise; + loadContent(path: string): Promise; /** * Checks whether the window is displayed @@ -753,22 +747,6 @@ declare namespace window { */ setBrightness(brightness: number, callback: AsyncCallback): void; - /** - * Sets the dimBehind of window. - * @param dimBehindValue the specified dimBehind. - * @syscap SystemCapability.WindowManager.WindowManager.Core - * @since 7 - */ - setDimBehind(dimBehindValue: number, callback: AsyncCallback): void; - - /** - * Sets the dimBehind of window. - * @param dimBehind the specified dimBehind. - * @syscap SystemCapability.WindowManager.WindowManager.Core - * @since 7 - */ - setDimBehind(dimBehindValue: number): Promise; - /** * Sets whether focusable or not. * @param isFocusable can be focus if true, or can not be focus if false. @@ -801,22 +779,6 @@ declare namespace window { */ setKeepScreenOn(isKeepScreenOn: boolean, callback: AsyncCallback): void; - /** - * Sets whether outside can be touch or not. - * @param touchable outside can be touch if true, or not if false. - * @syscap SystemCapability.WindowManager.WindowManager.Core - * @since 7 - */ - setOutsideTouchable(touchable: boolean): Promise; - - /** - * Sets whether outside can be touch or not. - * @param touchable outside can be touch if true, or not if false. - * @syscap SystemCapability.WindowManager.WindowManager.Core - * @since 7 - */ - setOutsideTouchable(touchable: boolean, callback: AsyncCallback): void; - /** * Sets whether is private mode or not. * @param isPrivacyMode in private mode if true, or not if false. -- Gitee