From 326ef1bf32a095f9a0e1577ea899626c9aaf3242 Mon Sep 17 00:00:00 2001 From: Zhang Peng Date: Tue, 22 Mar 2022 11:28:11 +0800 Subject: [PATCH] add RemoteWindow component Signed-off-by: Zhang Peng Change-Id: I3d9515bc1a35387039aaaaa7a8a738588b4b36a3 --- BUILD.gn | 3 +- api/@internal/component/ets/index-full.d.ts | 3 +- api/@internal/component/ets/middle_class.d.ts | 25 ++++++++++++- .../component/ets/remote_window.d.ts | 35 +++++++++++++++++++ 4 files changed, 63 insertions(+), 3 deletions(-) create mode 100644 api/@internal/component/ets/remote_window.d.ts diff --git a/BUILD.gn b/BUILD.gn index 735000f5be..39dcd12045 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2021 Huawei Device Co., Ltd. +# Copyright (c) 2021-2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -83,6 +83,7 @@ ohos_copy("ets_component") { "api/@internal/component/ets/rating.d.ts", "api/@internal/component/ets/rect.d.ts", "api/@internal/component/ets/refresh.d.ts", + "api/@internal/component/ets/remote_window.d.ts", "api/@internal/component/ets/rich_text.d.ts", "api/@internal/component/ets/row.d.ts", "api/@internal/component/ets/row_split.d.ts", diff --git a/api/@internal/component/ets/index-full.d.ts b/api/@internal/component/ets/index-full.d.ts index 25e737704e..ab46069b72 100644 --- a/api/@internal/component/ets/index-full.d.ts +++ b/api/@internal/component/ets/index-full.d.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -99,3 +99,4 @@ /// /// /// +/// diff --git a/api/@internal/component/ets/middle_class.d.ts b/api/@internal/component/ets/middle_class.d.ts index adad7410a1..3264e31220 100644 --- a/api/@internal/component/ets/middle_class.d.ts +++ b/api/@internal/component/ets/middle_class.d.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -2349,3 +2349,26 @@ declare class TSGestureGroupInterface { */ pop(): GestureGroupInterface; } + +/** + * Used for TS compiler. + * @ignore + * @systemapi + * @since 8 + */ +declare class TSRemoteWindowAttribute extends CommonMethod { + /** + * Used for TS compiler. + * @ignore + * @systemapi + * @since 8 + */ + create(windowIdLow32Bit?: number, windowIdHigh32Bit?: number, windowName?: string): RemoteWindowAttribute; + /** + * Used for TS compiler. + * @ignore + * @systemapi + * @since 8 + */ + pop(): RemoteWindowAttribute; +} diff --git a/api/@internal/component/ets/remote_window.d.ts b/api/@internal/component/ets/remote_window.d.ts new file mode 100644 index 0000000000..65af95fc27 --- /dev/null +++ b/api/@internal/component/ets/remote_window.d.ts @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * Create RemoteWindow. + * @since 7 + */ +interface RemoteWindowInterface { + /** + * Window node id and name from WMS. + * @since 7 + */ + (windowIdLow32Bit?: number, windowIdHigh32Bit?: number, windowName?: string): RemoteWindowAttribute; +} + +/** + * Inheritance CommonMethod Set Styles + * @since 7 + */ +declare class RemoteWindowAttribute extends CommonMethod {} + +declare const RemoteWindow: RemoteWindowInterface; +declare const RemoteWindowInstance: RemoteWindowAttribute; -- Gitee