/ohos5.0/foundation/arkui/ace_engine/frameworks/base/subwindow/ |
H A D | subwindow_manager.cpp | 98 if (!subwindow) { in AddSubwindow() 114 if (!subwindow) { in AddToastSubwindow() 130 if (!subwindow) { in AddSystemToastWindow() 155 if (subwindow) { in DeleteHotAreas() 251 auto subwindow = in ShowPreviewNG() local 304 if (subwindow) { in HidePreviewNG() 313 if (subwindow) { in HideMenuNG() 322 if (subwindow) { in HideMenuNG() 331 if (subwindow) { in UpdateHideMenuOffsetNG() 372 subwindow = in ClearMenuNG() [all …]
|
H A D | subwindow_manager.h | 61 void SetCurrentSubwindow(const RefPtr<Subwindow>& subwindow); 110 void AddDialogSubwindow(int32_t instanceId, const RefPtr<Subwindow>& subwindow); 114 void SetCurrentDialogSubwindow(const RefPtr<Subwindow>& subwindow); 122 void AddToastSubwindow(int32_t instanceId, RefPtr<Subwindow> subwindow); 144 void AddSystemToastWindow(int32_t instanceId, RefPtr<Subwindow> subwindow); 146 bool IsSubwindowExist(RefPtr<Subwindow> subwindow);
|
/ohos5.0/docs/en/application-dev/windowmanager/ |
H A D | application-window-fa.md | 54 1. Create or obtain a subwindow. 64 // Method 1: Create a subwindow. 75 // Method 2: Find a subwindow. 83 2. Set the properties of the subwindow. 88 // Move the subwindow. 98 // Change the size of the subwindow. 109 3. Load content to and show the subwindow. 111 Call **setUIContent** to load content to the subwindow and **showWindow** to show the subwindow. 114 // Load content to the subwindow. 123 // Show the subwindow. [all …]
|
H A D | application-window-stage.md | 125 1. Create a subwindow. 129 2. Set the properties of the subwindow. 133 3. Load content to and show the subwindow. 135 Call **setUIContent** to load content to the subwindow and **showWindow** to show the subwindow. 137 4. Destroy the subwindow. 153 // 1. Create a subwindow. 183 // 3.1 Load content to the subwindow. 191 // 3.2 Show the subwindow. 262 // 1. Create a subwindow. 292 // 3. Load content to the subwindow. [all …]
|
H A D | window-overview.md | 39 …- A subwindow is an auxiliary window of an application, such as a dialog box and floating window. … 70 - The application main window and subwindow have the following size limits: [320, 2560] in width a…
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/base/ |
H A D | view_abstract_model_ng.cpp | 139 CHECK_NULL_VOID(subwindow); in BindMenu() 140 auto childContainerId = subwindow->GetChildContainerId(); in BindMenu() 174 CHECK_NULL_VOID(subwindow); in UpdateIsShowStatusForMenu() 175 auto overlayManager = subwindow->GetOverlayManager(); in UpdateIsShowStatusForMenu() 192 if (subwindow) { in BindContextMenuSingle() 193 auto childContainerId = subwindow->GetChildContainerId(); in BindContextMenuSingle() 238 if (subwindow) { in BindContextMenu() 239 auto childContainerId = subwindow->GetChildContainerId(); in BindContextMenu() 342 auto subwindow = SubwindowManager::GetInstance()->GetSubwindow(containerId); in BindContextMenu() local 343 CHECK_NULL_VOID(subwindow); in BindContextMenu() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/base/ |
H A D | subwindow_manager_test.cpp | 65 auto subwindow = manager->ShowPreviewNG(false); variable 66 ASSERT_EQ(subwindow, nullptr);
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/ |
H A D | js-apis-arkui-uiExtension.md | 225 Creates a subwindow for this window proxy. This API uses a promise to return the result. 237 | name | string | Yes | Name of the subwindow.| 269 title: 'This is a subwindow', 272 // Create a subwindow. 289 console.info(`The subwindow has been shown!`); 291 console.error(`Failed to show the subwindow!`); 298 console.error(`Create subwindow failed: ${JSON.stringify(error)}`); 433 'title': 'This is a subwindow', 453 console.info(`The subwindow has been shown!`); 455 console.error(`Failed to show the subwindow!`); [all …]
|
H A D | js-apis-uiExtensionHost-sys.md | 323 | name | string | Yes | Name of the subwindow.| 330 | Promise<[window.Window](js-apis-window.md#window)> | Promise used to return the subwindow c… 355 title: 'This is a subwindow', 358 // Create a subwindow. 375 console.info(`The subwindow has been shown!`); 377 console.error(`Failed to show the subwindow!`); 384 console.error(`Create subwindow failed: ${JSON.stringify(error)}`); 593 'title': 'This is a subwindow', 613 console.info(`The subwindow has been shown!`); 615 console.error(`Failed to show the subwindow!`); [all …]
|
H A D | js-apis-window.md | 693 // Create or obtain a subwindow and its ID. In this case, the subwindow has focus. 5413 - Hides the subwindow if the caller is a subwindow. The subwindow cannot be restored in the dock ba… 5460 - Hides the subwindow if the caller is a subwindow. The subwindow cannot be restored in the dock ba… 6066 This API must be called by a subwindow and the setting takes effect for the subwindow. 6112 // Create a subwindow. 6141 …n the subwindow is of the window-modal type, its parent window does not respond to user interactio… 6190 // Create a subwindow. 6529 | name | string | Yes | Name of the subwindow.| 6812 // Create a subwindow. 9383 Enumerates the modality types of the subwindow. [all …]
|
/ohos5.0/docs/zh-cn/third-party-cases/ |
H A D | subwindow-mainwindow-communication.md | 10  37 console.error('Failed to create the subwindow. Cause: ' + JSON.stringify(err)); 41 console.info('Succeeded in creating the subwindow. Data: ' + JSON.stringify(data)); 286 console.error('Failed to create the subwindow. Cause: ' + JSON.stringify(err)); 290 console.info('Succeeded in creating the subwindow. Data: ' + JSON.stringify(data));
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/ |
H A D | js-apis-arkui-uiExtension.md | 381 title: 'This is a subwindow', 401 console.info(`The subwindow has been shown!`); 403 console.error(`Failed to show the subwindow!`); 410 console.error(`Create subwindow failed: ${JSON.stringify(error)}`); 586 'title': 'This is a subwindow', 606 console.info(`The subwindow has been shown!`); 608 console.error(`Failed to show the subwindow!`); 615 console.error(`Create subwindow failed: ${JSON.stringify(error)}`);
|
H A D | js-apis-uiExtensionHost-sys.md | 355 title: 'This is a subwindow', 375 console.info(`The subwindow has been shown!`); 377 console.error(`Failed to show the subwindow!`); 384 console.error(`Create subwindow failed: ${JSON.stringify(error)}`); 653 'title': 'This is a subwindow', 673 console.info(`The subwindow has been shown!`); 675 console.error(`Failed to show the subwindow!`); 682 console.error(`Create subwindow failed: ${JSON.stringify(error)}`);
|
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_4.1.3.5/ |
H A D | changelogs-menu.md | 57 …subwindow outside the application window on KLV devices. The value **true** means to show the menu… 67 * true: The menu is displayed in a subwindow outside the application window.
|
/ohos5.0/docs/en/application-dev/application-models/ |
H A D | window-switch.md | 6 …** to create a subwindow, whereas an application developed on the stage model uses **WindowStage.C…
|
/ohos5.0/docs/en/application-dev/ui/ |
H A D | arkts-create-toast.md | 30 …subwindow is created (the size of the subwindow on mobile devices is the same as the main window).… 35 …r level as the main window, generally low.| The toast is displayed in a subwindow, generally highe…
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/pipeline/ |
H A D | pipeline_base.cpp | 737 … auto subwindow = SubwindowManager::GetInstance()->GetSubwindow(currentContainer->GetInstanceId()); in OnVirtualKeyboardAreaChange() local 738 if (subwindow && subwindow->GetShown()) { in OnVirtualKeyboardAreaChange() 757 … auto subwindow = SubwindowManager::GetInstance()->GetSubwindow(currentContainer->GetInstanceId()); in OnVirtualKeyboardAreaChange() local 758 …if (subwindow && subwindow->GetShown() && subwindow->IsFocused() && !CheckNeedAvoidInSubWindow()) { in OnVirtualKeyboardAreaChange()
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/container_modal/ |
H A D | container_modal_pattern_enhance_test_ng.cpp | 151 auto subwindow = Subwindow::CreateSubwindow(VALID_CURRENT_ID); variable 152 SubwindowManager::GetInstance()->SetCurrentSubwindow(subwindow); 166 auto subwindow = AceType::MakeRefPtr<MockSubwindow>(); variable 167 SubwindowManager::GetInstance()->SetCurrentSubwindow(subwindow); 168 EXPECT_CALL(*subwindow, GetShown()).WillOnce(testing::Return(true)); 182 auto subwindow = AceType::MakeRefPtr<MockSubwindow>(); variable 183 SubwindowManager::GetInstance()->SetCurrentSubwindow(subwindow);
|
/ohos5.0/foundation/arkui/ace_engine/adapter/ohos/osal/ |
H A D | layout_inspector.cpp | 107 auto subwindow = SubwindowManager::GetInstance()->GetSubwindow( in GetWindow() local 109 CHECK_NULL_RETURN(subwindow, nullptr); in GetWindow() 110 if (AceType::InstanceOf<SubwindowOhos>(subwindow)) { in GetWindow() 111 auto subWindowOhos = AceType::DynamicCast<SubwindowOhos>(subwindow); in GetWindow()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/bubble/ |
H A D | bubble_pattern.cpp | 702 … auto subwindow = SubwindowManager::GetInstance()->GetSubwindow(Container::CurrentId()); in OnWindowSizeChanged() local 703 CHECK_NULL_VOID(subwindow); in OnWindowSizeChanged() 704 subwindow->HidePopupNG(targetNodeId_); in OnWindowSizeChanged() 723 auto subwindow = SubwindowManager::GetInstance()->GetSubwindow(Container::CurrentId()); in OnWindowHide() local 724 CHECK_NULL_VOID(subwindow); in OnWindowHide() 725 subwindow->HidePopupNG(targetNodeId_); in OnWindowHide()
|
/ohos5.0/docs/zh-cn/application-dev/windowmanager/ |
H A D | application-window-stage.md | 154 console.error('Failed to create the subwindow. Cause: windowStage_ is null'); 160 console.error('Failed to create the subwindow. Cause: ' + JSON.stringify(err)); 164 console.info('Succeeded in creating the subwindow. Data: ' + JSON.stringify(data)); 263 console.error('Failed to create the subwindow. Cause: windowStage_ is null'); 269 console.error('Failed to create the subwindow. Cause: ' + JSON.stringify(err)); 273 console.info('Succeeded in creating the subwindow. Data: ' + JSON.stringify(data));
|
H A D | application-window-as.md | 140 console.error('Failed to create the subwindow. Cause: windowStage_ is null'); 146 console.error('Failed to create the subwindow. Cause: ' + JSON.stringify(err)); 150 console.info('Succeeded in creating the subwindow. Data: ' + JSON.stringify(data));
|
H A D | application-window-fa.md | 146 console.error('Failed to destroy the subwindow. Cause:' + JSON.stringify(err)); 149 console.info('Succeeded in destroying the subwindow.');
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/toast/ |
H A D | toast_pattern.cpp | 584 auto subwindow = SubwindowManager::GetInstance()->GetSystemToastWindow(parentContainerId); in GetSystemTopMostSubwindowSize() local 585 if (subwindow) { in GetSystemTopMostSubwindowSize() 586 auto rect = subwindow->GetRect(); in GetSystemTopMostSubwindowSize()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/manager/drag_drop/ |
H A D | drag_drop_manager.cpp | 1690 auto subwindow = SubwindowManager::GetInstance()->GetSubwindow( in GetTouchOffsetRelativeToSubwindow() local 1693 if (subwindow) { in GetTouchOffsetRelativeToSubwindow() 1694 auto subwindowOffset = subwindow->GetRect().GetOffset(); in GetTouchOffsetRelativeToSubwindow() 1754 auto subwindow = SubwindowManager::GetInstance()->GetSubwindow(containerId); in GetCurrentDistance() local 1755 CHECK_NULL_RETURN(subwindow, distance); in GetCurrentDistance() 1756 auto overlayManager = subwindow->GetOverlayManager(); in GetCurrentDistance() 2199 …auto subwindow = SubwindowManager::GetInstance()->GetSubwindow(containerId >= MIN_SUBCONTAINER_ID ? in GetDragAnimationOverlayManager() local 2201 CHECK_NULL_RETURN(subwindow, nullptr); in GetDragAnimationOverlayManager() 2202 return subwindow->GetOverlayManager(); in GetDragAnimationOverlayManager()
|