Home
last modified time | relevance | path

Searched refs:subwindow (Results 1 - 23 of 23) sorted by relevance

/foundation/arkui/ace_engine/frameworks/base/subwindow/
H A Dsubwindow_manager.cpp16 #include "base/subwindow/subwindow_manager.h"
97 void SubwindowManager::AddSubwindow(int32_t instanceId, RefPtr<Subwindow> subwindow) in AddSubwindow() argument
99 if (!subwindow) { in AddSubwindow()
100 TAG_LOGW(AceLogTag::ACE_SUB_WINDOW, "add subwindow failed."); in AddSubwindow()
103 TAG_LOGI(AceLogTag::ACE_SUB_WINDOW, "Add subwindow into map, instanceId is %{public}d, subwindow id is %{public}d.", in AddSubwindow()
104 instanceId, subwindow->GetSubwindowId()); in AddSubwindow()
106 auto result = subwindowMap_.try_emplace(instanceId, subwindow); in AddSubwindow()
113 void SubwindowManager::AddToastSubwindow(int32_t instanceId, RefPtr<Subwindow> subwindow) in AddToastSubwindow() argument
115 if (!subwindow) { in AddToastSubwindow()
129 AddSystemToastWindow(int32_t instanceId, RefPtr<Subwindow> subwindow) AddSystemToastWindow() argument
148 RefPtr<Subwindow> subwindow; DeleteHotAreas() local
198 auto subwindow = GetSubwindow(instanceId); GetOrCreateSubwindow() local
224 SetCurrentSubwindow(const RefPtr<Subwindow>& subwindow) SetCurrentSubwindow() argument
244 auto subwindow = ShowPreviewNG() local
264 auto subwindow = GetOrCreateSubwindow(containerId); ShowMenuNG() local
280 auto subwindow = GetOrCreateSubwindow(containerId); ShowMenuNG() local
290 auto subwindow = GetCurrentWindow(); HidePreviewNG() local
299 auto subwindow = GetCurrentWindow(); HideMenuNG() local
308 auto subwindow = GetCurrentWindow(); HideMenuNG() local
317 auto subwindow = GetCurrentWindow(); UpdateHideMenuOffsetNG() local
327 auto subwindow = GetCurrentWindow(); ContextMenuSwitchDragPreviewAnimation() local
335 auto subwindow = GetCurrentWindow(); UpdatePreviewPosition() local
343 auto subwindow = GetCurrentWindow(); GetMenuPreviewCenter() local
353 RefPtr<Subwindow> subwindow; ClearMenuNG() local
373 RefPtr<Subwindow> subwindow; ClearPopupInSubwindow() local
394 auto subwindow = GetOrCreateSubwindow(containerId); ShowPopupNG() local
405 RefPtr<Subwindow> subwindow; HidePopupNG() local
441 auto subwindow = GetCurrentWindow(); CancelPopup() local
471 auto subwindow = GetCurrentWindow(); CloseMenu() local
480 auto subwindow = GetCurrentWindow(); ClearMenu() local
489 RefPtr<Subwindow> subwindow; SetHotAreas() local
507 auto subwindow = GetOrCreateSubwindow(containerId); ShowDialogNG() local
519 auto subwindow = GetOrCreateSubwindow(containerId); ShowDialogNGWithNode() local
530 auto subwindow = GetSubwindow(containerId); CloseDialogNG() local
542 auto subwindow = GetOrCreateSubwindow(containerId); OpenCustomDialogNG() local
595 auto subwindow = GetSubwindow(instanceId >= MIN_SUBCONTAINER_ID ? GetParentContainerId(instanceId) : instanceId); HideDialogSubWindow() local
606 AddDialogSubwindow(int32_t instanceId, const RefPtr<Subwindow>& subwindow) AddDialogSubwindow() argument
631 SetCurrentDialogSubwindow(const RefPtr<Subwindow>& subwindow) SetCurrentDialogSubwindow() argument
648 auto subwindow = GetDialogSubwindow(containerId); GetOrCreateSubWindow() local
659 auto subwindow = GetSystemToastWindow(containerId); GetOrCreateSystemSubWindow() local
726 auto subwindow = toastInfo.showMode == NG::ToastShowMode::SYSTEM_TOP_MOST ? ShowToast() local
764 auto subwindow = showMode == NG::ToastShowMode::SYSTEM_TOP_MOST ? CloseToast() local
773 auto subwindow = GetToastSubwindow(containerId); CloseToast() local
779 auto subwindow = showMode == NG::ToastShowMode::SYSTEM_TOP_MOST ? CloseToast() local
790 RefPtr<Subwindow> subwindow = nullptr; GetOrCreateToastWindow() local
818 RefPtr<Subwindow> subwindow = GetToastSubwindow(containerId); GetOrCreateToastWindowNG() local
843 RefPtr<Subwindow> subwindow; ClearToastInSubwindow() local
871 auto subwindow = GetOrCreateSubWindow(); ShowDialog() local
876 auto subwindow = GetOrCreateSubwindow(containerId); ShowDialog() local
899 auto subwindow = GetOrCreateSubWindow(); ShowDialog() local
904 auto subwindow = GetOrCreateSubwindow(containerId); ShowDialog() local
927 auto subwindow = GetOrCreateSubWindow(); ShowActionMenu() local
932 auto subwindow = GetOrCreateSubwindow(containerId); ShowActionMenu() local
943 auto subwindow = GetDialogSubwindow(instanceId); CloseDialog() local
967 auto subwindow = GetOrCreateSubWindow(); OpenCustomDialog() local
972 auto subwindow = GetOrCreateSubwindow(containerId); OpenCustomDialog() local
987 auto subwindow = GetDialogSubwindow(containerId); CloseCustomDialog() local
998 auto subwindow = GetDialogSubwindow(containerId); CloseCustomDialog() local
1008 RefPtr<Subwindow> subwindow; HideSubWindowNG() local
1024 RefPtr<Subwindow> subwindow; HideToastSubWindowNG() local
1042 RefPtr<Subwindow> subwindow; RequestFocusSubwindow() local
1057 auto subwindow = GetOrCreateSubwindow(containerId); GetShown() local
1068 auto subwindow = parentContainerId < 0 ? GetDialogSubwindow(parentContainerId) : GetToastSubwindow(containerId); ResizeWindowForFoldStatus() local
1081 auto subwindow = SubwindowManager::GetInstance()->GetSubwindow(containerId); MarkDirtyDialogSafeArea() local
1103 auto subwindow = GetSystemToastWindow(parentContainerId); HideSystemTopMostWindow() local
1123 auto subwindow = GetSystemToastWindow(parentContainerId); ClearToastInSystemSubwindow() local
1162 RefPtr<Subwindow> subwindow; SetRect() local
1194 auto subwindow = iter->second; GetAllSubOverlayManager() local
[all...]
H A Dsubwindow_manager.h25 #include "base/subwindow/subwindow.h"
53 // Get the subwindow of instance, return the window or nullptr.
57 void SetCurrentSubwindow(const RefPtr<Subwindow>& subwindow);
100 void AddDialogSubwindow(int32_t instanceId, const RefPtr<Subwindow>& subwindow);
101 // Get the dialog subwindow of instance, return the window or nullptr.
104 void SetCurrentDialogSubwindow(const RefPtr<Subwindow>& subwindow);
112 void AddToastSubwindow(int32_t instanceId, RefPtr<Subwindow> subwindow);
135 void AddSystemToastWindow(int32_t instanceId, RefPtr<Subwindow> subwindow);
160 // Used to save the relationship between container and subwindow, i
[all...]
/foundation/arkui/ace_engine/test/unittest/base/
H A Dsubwindow_manager_test.cpp18 #include "base/subwindow/subwindow_manager.h"
66 auto subwindow = manager->ShowPreviewNG(false); in HWTEST_F() local
67 ASSERT_EQ(subwindow, nullptr); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/components_ng/base/
H A Dview_abstract_model_ng.cpp131 auto subwindow = SubwindowManager::GetInstance()->GetSubwindow(containerId); in BindMenu()
132 CHECK_NULL_VOID(subwindow); in BindMenu()
133 auto childContainerId = subwindow->GetChildContainerId(); in BindMenu()
166 auto subwindow = SubwindowManager::GetInstance()->GetSubwindow(Container::CurrentId()); in UpdateIsShowStatusForMenu() local
167 CHECK_NULL_VOID(subwindow); in UpdateIsShowStatusForMenu()
168 auto overlayManager = subwindow->GetOverlayManager(); in UpdateIsShowStatusForMenu()
184 auto subwindow = SubwindowManager::GetInstance()->GetSubwindow(Container::CurrentId()); in BindContextMenuSingle() local
185 if (subwindow) { in BindContextMenuSingle()
186 auto childContainerId = subwindow->GetChildContainerId(); in BindContextMenuSingle()
217 // first response for build subwindow an in BindContextMenuSingle()
238 auto subwindow = SubwindowManager::GetInstance()->GetSubwindow(Container::CurrentId()); BindContextMenu() local
[all...]
H A Dview_abstract.cpp22 #include "base/subwindow/subwindow.h"
1735 // subwindow model needs to use subContainer to get popupInfo in BindPopup()
1736 auto subwindow = SubwindowManager::GetInstance()->GetSubwindow(instanceId); in BindPopup() local
1737 if (subwindow) { in BindPopup()
1738 subwindow->GetPopupInfoNG(targetId, popupInfo); in BindPopup()
1788 // erase popup in subwindow when target node destroy in BindPopup()
1790 auto subwindow = SubwindowManager::GetInstance()->GetSubwindow(containerId); in BindPopup()
1791 CHECK_NULL_VOID(subwindow); in BindPopup()
1792 auto overlayManager = subwindow in BindPopup()
[all...]
/foundation/arkui/ace_engine/test/unittest/core/event/
H A Dgesture_event_hub_test_two_ng.cpp440 * @tc.steps: step3. mock pixelmap and subwindow in HWTEST_F()
449 auto subwindow = AceType::MakeRefPtr<MockSubwindow>(); in HWTEST_F() local
450 SubwindowManager::GetInstance()->AddSubwindow(containerId, subwindow); in HWTEST_F()
451 EXPECT_CALL(*subwindow, ShowPreviewNG(false)).WillRepeatedly(testing::Return(true)); in HWTEST_F()
452 EXPECT_CALL(*subwindow, GetOverlayManager()).WillRepeatedly(testing::Return(overlayManager)); in HWTEST_F()
508 * @tc.steps: step3. mock pixelmap and subwindow in HWTEST_F()
516 auto subwindow = AceType::MakeRefPtr<MockSubwindow>(); in HWTEST_F() local
517 SubwindowManager::GetInstance()->AddSubwindow(containerId, subwindow); in HWTEST_F()
518 EXPECT_CALL(*subwindow, ShowPreviewNG(false)).WillRepeatedly(testing::Return(true)); in HWTEST_F()
519 EXPECT_CALL(*subwindow, GetOverlayManage in HWTEST_F()
707 auto subwindow = AceType::MakeRefPtr<MockSubwindow>(); HWTEST_F() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/common/
H A Dcontainer.cpp227 auto subwindow = SubwindowManager::GetInstance()->GetToastSubwindow(instanceId); in DestroyToastSubwindow() local
228 if (subwindow && subwindow->IsToastSubWindow()) { in DestroyToastSubwindow()
229 subwindow->DestroyWindow(); in DestroyToastSubwindow()
/foundation/arkui/ace_engine/test/unittest/core/pattern/container_modal/
H A Dcontainer_modal_pattern_enhance_test_ng.cpp26 #include "base/subwindow/subwindow_manager.h"
94 auto subwindow = Subwindow::CreateSubwindow(VALID_CURRENT_ID); in HWTEST_F() local
95 SubwindowManager::GetInstance()->SetCurrentSubwindow(subwindow); in HWTEST_F()
109 auto subwindow = AceType::MakeRefPtr<MockSubwindow>(); in HWTEST_F() local
110 SubwindowManager::GetInstance()->SetCurrentSubwindow(subwindow); in HWTEST_F()
111 EXPECT_CALL(*subwindow, GetShown()).WillOnce(testing::Return(true)); in HWTEST_F()
125 auto subwindow = AceType::MakeRefPtr<MockSubwindow>(); in HWTEST_F() local
126 SubwindowManager::GetInstance()->SetCurrentSubwindow(subwindow); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/pipeline/
H A Dpipeline_base.cpp21 #include "base/subwindow/subwindow_manager.h"
742 auto subwindow = SubwindowManager::GetInstance()->GetSubwindow(currentContainer->GetInstanceId()); in OnVirtualKeyboardAreaChange() local
743 if (subwindow && subwindow->GetShown()) { in OnVirtualKeyboardAreaChange()
744 // subwindow is shown, main window no need to handle the keyboard event in OnVirtualKeyboardAreaChange()
762 auto subwindow = SubwindowManager::GetInstance()->GetSubwindow(currentContainer->GetInstanceId()); in OnVirtualKeyboardAreaChange() local
763 if (subwindow && subwindow->GetShown() && subwindow->IsFocused() && !CheckNeedAvoidInSubWindow()) { in OnVirtualKeyboardAreaChange()
764 // subwindow i in OnVirtualKeyboardAreaChange()
[all...]
/foundation/arkui/ace_engine/adapter/ohos/osal/
H A Dlayout_inspector.cpp30 #include "adapter/ohos/entrance/subwindow/subwindow_ohos.h"
31 #include "base/subwindow/subwindow_manager.h"
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()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/bubble/
H A Dbubble_pattern.cpp17 #include "base/subwindow/subwindow.h"
18 #include "base/subwindow/subwindow_manager.h"
717 auto subwindow = SubwindowManager::GetInstance()->GetSubwindow(Container::CurrentId()); in OnWindowSizeChanged() local
718 CHECK_NULL_VOID(subwindow); in OnWindowSizeChanged()
719 subwindow->HidePopupNG(targetNodeId_); in OnWindowSizeChanged()
739 auto subwindow = SubwindowManager::GetInstance()->GetSubwindow(Container::CurrentId()); in OnWindowHide() local
740 CHECK_NULL_VOID(subwindow); in OnWindowHide()
741 subwindow->HidePopupNG(targetNodeId_); in OnWindowHide()
H A Dbubble_layout_algorithm.cpp25 #include "base/subwindow/subwindow_manager.h"
505 auto subwindow = SubwindowManager::GetInstance()->GetSubwindow(currentId); in UpdateHostWindowRect() local
506 CHECK_NULL_VOID(subwindow); in UpdateHostWindowRect()
507 hostWindowRect_ = subwindow->GetUIExtensionHostWindowRect(); in UpdateHostWindowRect()
/foundation/arkui/ace_engine/frameworks/core/components_ng/manager/drag_drop/
H A Ddrag_drop_manager.cpp780 // pull-in subwindow, need to notify showMenu and update menu offset. in ResetPreTargetFrameNode()
1669 auto subwindow = SubwindowManager::GetInstance()->GetSubwindow( in GetTouchOffsetRelativeToSubwindow() local
1672 CHECK_NULL_RETURN(subwindow, OffsetF(x, y)); in GetTouchOffsetRelativeToSubwindow()
1673 auto subwindowOffset = subwindow->GetRect().GetOffset(); in GetTouchOffsetRelativeToSubwindow()
1732 auto subwindow = SubwindowManager::GetInstance()->GetSubwindow(containerId); in GetCurrentDistance() local
1733 CHECK_NULL_RETURN(subwindow, distance); in GetCurrentDistance()
1734 auto overlayManager = subwindow->GetOverlayManager(); in GetCurrentDistance()
2230 auto subwindow = SubwindowManager::GetInstance()->GetSubwindow(containerId >= MIN_SUBCONTAINER_ID ? in GetDragAnimationOverlayManager() local
2232 CHECK_NULL_RETURN(subwindow, nullptr); in GetDragAnimationOverlayManager()
2233 return subwindow in GetDragAnimationOverlayManager()
[all...]
/foundation/arkui/ace_engine/test/unittest/core/manager/
H A Ddrag_drop_manager_test_ng_property_config.cpp1188 auto subwindow = Subwindow::CreateSubwindow(VALID_CURRENT_ID); in HWTEST_F() local
1189 SubwindowManager::GetInstance()->AddSubwindow(VALID_CURRENT_ID, subwindow); in HWTEST_F()
1196 auto overlayManager = subwindow->GetOverlayManager(); in HWTEST_F()
1774 auto subwindow = Subwindow::CreateSubwindow(VALID_CURRENT_ID); in HWTEST_F() local
1775 SubwindowManager::GetInstance()->AddSubwindow(VALID_CURRENT_ID, subwindow); in HWTEST_F()
1782 auto overlayManager = subwindow->GetOverlayManager(); in HWTEST_F()
/foundation/window/window_manager/wm/src/
H A Dwindow_session_impl.cpp221 TLOGI(WmsLogTag::WMS_LIFE, "create subwindow, title: %{public}s, decorEnable: %{public}d", in MakeSubOrDialogWindowDragableAndMoveble()
480 // when parent window hide and subwindow whose state is shown should hide and notify user in UpdateSubWindowStateAndNotify()
482 for (auto subwindow : subWindows) { in UpdateSubWindowStateAndNotify()
483 if (subwindow != nullptr && subwindow->GetWindowState() == WindowState::STATE_SHOWN) { in UpdateSubWindowStateAndNotify()
484 subwindow->state_ = WindowState::STATE_HIDDEN; in UpdateSubWindowStateAndNotify()
485 subwindow->NotifyAfterBackground(); in UpdateSubWindowStateAndNotify()
486 TLOGD(WmsLogTag::WMS_SUB, "Notify subWindow background, id:%{public}d", subwindow->GetPersistentId()); in UpdateSubWindowStateAndNotify()
487 UpdateSubWindowStateAndNotify(subwindow->GetPersistentId(), newState); in UpdateSubWindowStateAndNotify()
490 // when parent window show and subwindow whos in UpdateSubWindowStateAndNotify()
[all...]
H A Dwindow_impl.cpp3534 // update subwindow subWindowState_ and notify subwindow shown or not in UpdateWindowStateWhenShow()
3566 // main window need to update subwindow subWindowState_ and notify subwindow shown or not in UpdateWindowStateWhenHide()
3598 // when main window hide and subwindow whose state is shown should hide and notify user in UpdateSubWindowStateAndNotify()
3600 for (auto subwindow : subWindows) { in UpdateSubWindowStateAndNotify()
3601 if (subwindow->GetWindowState() == WindowState::STATE_SHOWN && in UpdateSubWindowStateAndNotify()
3602 subwindow->subWindowState_ == WindowState::STATE_SHOWN) { in UpdateSubWindowStateAndNotify()
3603 subwindow->NotifyAfterBackground(); in UpdateSubWindowStateAndNotify()
3605 subwindow in UpdateSubWindowStateAndNotify()
[all...]
/foundation/arkui/ace_engine/adapter/ohos/entrance/
H A Dace_container.cpp57 #include "base/subwindow/subwindow_manager.h"
491 auto subwindow = SubwindowManager::GetInstance()->GetSubwindow(instanceId); in RemoveOverlayBySubwindowManager() local
492 if (subwindow) { in RemoveOverlayBySubwindowManager()
493 if (subwindow->GetShown()) { in RemoveOverlayBySubwindowManager()
499 auto overlayManager = subwindow->GetOverlayManager(); in RemoveOverlayBySubwindowManager()
541 TAG_LOGI(AceLogTag::ACE_UIEVENT, "subwindow consumed backpressed event"); in OnBackPressed()
552 // remove overlay through SubwindowManager if subwindow unfocused. in OnBackPressed()
554 TAG_LOGI(AceLogTag::ACE_UIEVENT, "subwindow consumed backpressed event"); in OnBackPressed()
949 auto subwindow = SubwindowManager::GetInstance()->GetSubwindow(id); in InitializeCallback()
950 CHECK_NULL_VOID(subwindow); in InitializeCallback()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/dialog/
H A Ddialog_pattern.cpp25 #include "base/subwindow/subwindow_manager.h"
1687 auto subwindow = SubwindowManager::GetInstance()->GetSubwindow(currentId); in InitHostWindowRect() local
1688 CHECK_NULL_VOID(subwindow); in InitHostWindowRect()
1689 auto rect = subwindow->GetUIExtensionHostWindowRect(); in InitHostWindowRect()
/foundation/arkui/ace_engine/test/unittest/core/base/
H A Dview_abstract_test_ng_new.cpp465 auto subwindow = SubwindowManager::GetInstance()->GetSubwindow(container); in HWTEST_F() local
466 EXPECT_EQ(subwindow, nullptr); in HWTEST_F()
H A Dview_abstract_model_test_ng.cpp225 * @tc.steps: subwindow is null and does not enter BindContextMenuSingle. in HWTEST_F()
232 * @tc.steps: entering BindContextMenuSingle with subwindow null, menuParam.isShow true, and buildFunc not null. in HWTEST_F()
241 * @tc.steps: entering BindContextMenuSingle with subwindow null, menuParam.isShow true, and buildFunc null. in HWTEST_F()
250 * @tc.steps: BindContextMenuSingle with subwindow null, menuParam.isShow false, and buildFunc not null. in HWTEST_F()
259 * @tc.steps: entering BindContextMenuSingle with subwindow null, menuParam.isShow false, and buildFunc null. in HWTEST_F()
268 * @tc.steps: subwindow is null and does not enter BindContextMenuSingle, with type == ResponseType::RIGHT_CLICK. in HWTEST_F()
275 * @tc.steps: subwindow is null and does not enter BindContextMenuSingle, with type == ResponseType::LONG_PRESS. in HWTEST_F()
281 * @tc.steps: subwindow is not null. in HWTEST_F()
283 auto subwindow = Subwindow::CreateSubwindow(Container::CurrentId()); in HWTEST_F() local
284 SubwindowManager::GetInstance()->AddSubwindow(Container::CurrentId(), subwindow); in HWTEST_F() local
[all...]
/foundation/arkui/ace_engine/test/unittest/core/pattern/overlay/
H A Doverlay_manager_testtwo_ng.cpp630 auto subwindow = AceType::MakeRefPtr<MockSubwindow>(); in HWTEST_F() local
631 SubwindowManager::GetInstance()->AddSubwindow(2, subwindow); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/overlay/
H A Doverlay_manager.cpp33 #include "base/subwindow/subwindow_manager.h"
761 // BindSheet does not use subwindowManage. If use subwindow for display, autosave is started in the main window. in FireAutoSave()
1508 // hide window when toast show in subwindow. in PopToast()
1554 TAG_LOGD(AceLogTag::ACE_OVERLAY, "clear toast in subwindow enter"); in ClearToastInSubwindow()
1817 auto subwindow = SubwindowManager::GetInstance(); in HidePopup()
1818 subwindow->DeleteHotAreas(Container::CurrentId(), popupNode->GetId()); in HidePopup()
1819 subwindow->HideSubWindowNG(); in HidePopup()
2064 // subwindow only contains one menu instance.
2113 // set subwindow container id in menu. in ShowMenuInSubWindow()
3641 auto subwindow in RemovePopupInSubwindow() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/
H A Dmenu_layout_algorithm.cpp2759 auto subwindow = SubwindowManager::GetInstance()->GetSubwindow(parentContainerId); in InitCanExpandCurrentWindow() local
2760 CHECK_NULL_VOID(subwindow); in InitCanExpandCurrentWindow()
2761 auto rect = subwindow->GetUIExtensionHostWindowRect(); in InitCanExpandCurrentWindow()

Completed in 72 milliseconds