From ac03b568c699968aa8cc7fade25815646f0e2944 Mon Sep 17 00:00:00 2001 From: Hayden Lee Date: Tue, 1 Jul 2025 11:34:02 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=B8=BB=E7=AA=97=E5=8F=A3=E6=94=AF?= =?UTF-8?q?=E6=8C=81z=E5=BA=8F=E8=B0=83=E6=95=B4=E8=83=BD=E5=8A=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Hayden Lee --- api/@ohos.window.d.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index f457c8f197..09abf4de6a 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -9552,6 +9552,23 @@ declare namespace window { */ raiseAboveTarget(windowId: number): Promise; + /** + * Raise main window above another. + * + * @param { number } windowId - Indicates target window id. + * @returns { Promise } - The promise returned by the function. + * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. + * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities. + * @throws { BusinessError } 1300002 - This window state is abnormal. + * @throws { BusinessError } 1300003 - This window manager service works abnormally. + * @throws { BusinessError } 1300004 - Unauthorized operation. + * @throws { BusinessError } 1300016 - Parameter error. Possible cause: 1. Invalid Parameter range. 2. Invalid parameter length. + * @syscap SystemCapability.Window.SessionManager + * @systemapi Hide this for inner system use. + * @since 20 + */ + raiseMainWindowAboveTarget(windowId: number): Promise; + /** * Set whether to enable an app sub window to raise itself by click. * -- Gitee From 491c3cbe25c45b79784fa6ffd6ff85a33c0f5032 Mon Sep 17 00:00:00 2001 From: Hayden Lee Date: Thu, 3 Jul 2025 17:08:11 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E7=BC=A9=E8=BF=9B=E4=B8=8E=E7=94=B5?= =?UTF-8?q?=E5=AD=90=E6=B5=81=E4=BF=9D=E6=8C=81=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Hayden Lee --- api/@ohos.window.d.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 09abf4de6a..f828dde200 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -9558,11 +9558,13 @@ declare namespace window { * @param { number } windowId - Indicates target window id. * @returns { Promise } - The promise returned by the function. * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. - * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities. + * @throws { BusinessError } 801 - Capability not supported. + * Failed to call the API due to limited device capabilities. * @throws { BusinessError } 1300002 - This window state is abnormal. * @throws { BusinessError } 1300003 - This window manager service works abnormally. * @throws { BusinessError } 1300004 - Unauthorized operation. - * @throws { BusinessError } 1300016 - Parameter error. Possible cause: 1. Invalid Parameter range. 2. Invalid parameter length. + * @throws { BusinessError } 1300016 - Parameter error. Possible cause: + * 1. Invalid Parameter range. 2. Invalid parameter length. * @syscap SystemCapability.Window.SessionManager * @systemapi Hide this for inner system use. * @since 20 -- Gitee