From 247ca18f676603f3ddf0134a73b446644006930d Mon Sep 17 00:00:00 2001 From: kaicui Date: Wed, 27 Aug 2025 18:17:06 +0800 Subject: [PATCH 1/6] shiftAppWindowPointerEvent windowId number to int Signed-off-by: kaicui --- api/@ohos.window.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 5d2fb3896d..356c0ed93c 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -3657,8 +3657,8 @@ declare namespace window { * Transfers an input event from one window to another within the same application, particularly in split-window scenarios. * It takes effect only for the main window and its child windows on 2-in-1 devices. * - * @param { number } sourceWindowId - ID of the source window. You are advised to call getWindowProperties() to obtain the window ID. - * @param { number } targetWindowId - ID of the target window. You are advised to call getWindowProperties() to obtain the window ID. + * @param { int } sourceWindowId - ID of the source window. You are advised to call getWindowProperties() to obtain the window ID. + * @param { int } targetWindowId - ID of the target window. You are advised to call getWindowProperties() to obtain the window ID. * @returns { Promise } - Promise that returns no value. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types. @@ -3670,7 +3670,7 @@ declare namespace window { * @atomicservice * @since 15 */ - function shiftAppWindowPointerEvent(sourceWindowId: number, targetWindowId: number): Promise; + function shiftAppWindowPointerEvent(sourceWindowId: int, targetWindowId: int): Promise; /** * Shift window touch event within the same application. And the window type contains only main window and subwindow. -- Gitee From 389b4d0c3d30527f9d5b7285b4b634d874ebc314 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=87=AF?= Date: Mon, 1 Sep 2025 03:15:24 +0000 Subject: [PATCH 2/6] update api/@ohos.window.d.ts. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 张凯 --- api/@ohos.window.d.ts | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 356c0ed93c..52c1ed1007 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -9070,7 +9070,7 @@ declare namespace window { /** * Sets the window blur radius. * - * @param { number } radius the blur radius. + * @param { double } radius the blur radius. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -9083,7 +9083,7 @@ declare namespace window { /** * Sets the window blur radius. * - * @param { number } radius the blur radius. + * @param { double } radius the blur radius. * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; @@ -9092,14 +9092,15 @@ declare namespace window { * @throws { BusinessError } 1300004 - Unauthorized operation. * @syscap SystemCapability.WindowManager.WindowManager.Core * @systemapi Hide this for inner system use. - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - setBlur(radius: number): void; + setBlur(radius: double): void; /** * Sets the window backdrop blur radius. * - * @param { number } radius the blur radius. + * @param { double } radius the blur radius. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -9114,7 +9115,7 @@ declare namespace window { * The window background refers to the lower-layer area covered by the window, which is the same as the window size. * To make the blur effect visible, you must set the window background transparent by calling setWindowBackgroundColor. * - * @param { number } radius the blur radius. + * @param { double } radius the blur radius. * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; @@ -9123,9 +9124,10 @@ declare namespace window { * @throws { BusinessError } 1300004 - Unauthorized operation. * @syscap SystemCapability.WindowManager.WindowManager.Core * @systemapi Hide this for inner system use. - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - setBackdropBlur(radius: number): void; + setBackdropBlur(radius: double): void; /** * Sets the window backdrop blur style. @@ -9213,7 +9215,7 @@ declare namespace window { /** * Sets corner radius. * - * @param { number } cornerRadius the corner radius. + * @param { double } cornerRadius the corner radius. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -9226,7 +9228,7 @@ declare namespace window { /** * Sets the radius of the rounded corners for this window. * - * @param { number } cornerRadius the corner radius. + * @param { double } cornerRadius the corner radius. * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; @@ -9235,9 +9237,10 @@ declare namespace window { * @throws { BusinessError } 1300004 - Unauthorized operation. * @syscap SystemCapability.WindowManager.WindowManager.Core * @systemapi Hide this for inner system use. - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - setCornerRadius(cornerRadius: number): void; + setCornerRadius(cornerRadius: double): void; /** * Sets the radius of the rounded corners for a child window or floating window. -- Gitee From c13b4219d339948db464c745952e643105e93d74 Mon Sep 17 00:00:00 2001 From: kaicui Date: Mon, 1 Sep 2025 11:19:25 +0800 Subject: [PATCH 3/6] Window event interface add arkts 1.2 labels Signed-off-by: kaicui --- api/@ohos.window.d.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 356c0ed93c..e2d7c616eb 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -3668,7 +3668,8 @@ declare namespace window { * @throws { BusinessError } 1300004 - Unauthorized operation. * @syscap SystemCapability.Window.SessionManager * @atomicservice - * @since 15 + * @since arkts {'1.1':'15', '1.2':'20'} + * @arkts 1.1&1.2 */ function shiftAppWindowPointerEvent(sourceWindowId: int, targetWindowId: int): Promise; @@ -7822,7 +7823,8 @@ declare namespace window { * @throws { BusinessError } 1300004 - Unauthorized operation. * @syscap SystemCapability.Window.SessionManager * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ setDialogBackGestureEnabled(enabled: boolean): Promise; @@ -10095,7 +10097,8 @@ declare namespace window { * @throws { BusinessError } 1300003 - This window manager service works abnormally. * @syscap SystemCapability.Window.SessionManager * @systemapi - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ setTouchableAreas(rects: Array): void; @@ -10377,7 +10380,8 @@ declare namespace window { * @throws { BusinessError } 1300004 - Unauthorized operation. * @syscap SystemCapability.Window.SessionManager * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ setWindowMask(windowMask: Array>): Promise; -- Gitee From e96ff489451553d7da3e686d7284153fd908f15c Mon Sep 17 00:00:00 2001 From: yanzhimo1 Date: Mon, 1 Sep 2025 03:47:14 +0000 Subject: [PATCH 4/6] =?UTF-8?q?=E3=80=900702=E3=80=91Window=20ArkTS=20evol?= =?UTF-8?q?ution=20stage3=20number=20to=20int/long/double?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yanzhimo1 --- api/@ohos.window.d.ts | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index c4c4bb9278..715f27cb46 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -9199,7 +9199,7 @@ declare namespace window { /** * Sets the blur radius of the shadow on the edges of a child window or floating window. * - * @param { number } radius - Radius of the shadow, measured in px. + * @param { double } radius - Radius of the shadow, measured in px. * The value is a floating point number greater than or equal to 0.0, * and the value 0.0 means that the shadow is disabled for the window borders. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; @@ -9210,9 +9210,10 @@ declare namespace window { * @throws { BusinessError } 1300004 - Unauthorized operation. * @syscap SystemCapability.Window.SessionManager * @atomicservice - * @since 17 + * @since arkts {'1.1':'17', '1.2':'20'} + * @arkts 1.1&1.2 */ - setWindowShadowRadius(radius: number): void; + setWindowShadowRadius(radius: double): void; /** * Sets corner radius. @@ -9247,7 +9248,7 @@ declare namespace window { /** * Sets the radius of the rounded corners for a child window or floating window. * - * @param { number } cornerRadius - Radius of the rounded corners, measured in vp. + * @param { double } cornerRadius - Radius of the rounded corners, measured in vp. * The value is a floating point number greater than or equal to 0.0. * The value 0.0 means that the window does not use rounded corners. * @returns { Promise } Promise that returns no value. @@ -9260,22 +9261,24 @@ declare namespace window { * @throws { BusinessError } 1300004 - Unauthorized operation. * @syscap SystemCapability.Window.SessionManager * @atomicservice - * @since 17 + * @since arkts {'1.1':'17', '1.2':'20'} + * @arkts 1.1&1.2 */ - setWindowCornerRadius(cornerRadius: number): Promise; + setWindowCornerRadius(cornerRadius: double): Promise; /** * Obtains the radius of rounded corners of a child window or floating window. * - * @returns { number } - Radius of the rounded corner of the child window or floating window, measured in vp. + * @returns { double } - Radius of the rounded corner of the child window or floating window, measured in vp. * @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 } 1300004 - Unauthorized operation. * @syscap SystemCapability.Window.SessionManager * @atomicservice - * @since 17 + * @since arkts {'1.1':'17', '1.2':'20'} + * @arkts 1.1&1.2 */ - getWindowCornerRadius(): number; + getWindowCornerRadius(): double; /** * Raise app sub window to app top -- Gitee From dcd116086dfcb41ae389c519290a90f0e233460e Mon Sep 17 00:00:00 2001 From: tanliang Date: Mon, 1 Sep 2025 07:42:55 +0000 Subject: [PATCH 5/6] update api/@ohos.window.d.ts. Signed-off-by: tanliang --- api/@ohos.window.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 715f27cb46..8308b387d9 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -10689,7 +10689,7 @@ declare namespace window { /** * Set the parent window of the child window. * - * @param { number } windowId - Indicates parent window id. + * @param { int } windowId - Indicates parent window id. * @returns { Promise } Promise that returns no value. * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities. * @throws { BusinessError } 1300002 - This window state is abnormal. @@ -10700,7 +10700,7 @@ declare namespace window { * @atomicservice * @since 19 */ - setParentWindow(windowId: number): Promise; + setParentWindow(windowId: int): Promise; /** * Get the parent window. -- Gitee From bec5809a7685686e557cfd2b877df7a10bced35d Mon Sep 17 00:00:00 2001 From: tanliang Date: Wed, 3 Sep 2025 07:52:43 +0000 Subject: [PATCH 6/6] update api/@ohos.window.d.ts. Signed-off-by: tanliang --- api/@ohos.window.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 8308b387d9..e4cbdcdbde 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -10698,7 +10698,8 @@ declare namespace window { * @throws { BusinessError } 1300009 - The parent window is invaild. * @syscap SystemCapability.Window.SessionManager * @atomicservice - * @since 19 + * @since arkts {'1.1':'19', '1.2':'20'} + * @arkts 1.1&1.2 */ setParentWindow(windowId: int): Promise; -- Gitee