/foundation/arkui/ace_engine/frameworks/core/components/stack/ |
H A D | stack_element.h | 45 int32_t toastId = -1; member 64 void PushToastComponent(const RefPtr<Component>& newComponent, int32_t toastId); 93 void PerformPopToastById(int32_t toastId);
|
H A D | stack_element.cpp | 54 void StackElement::PushToastComponent(const RefPtr<Component>& newComponent, int32_t toastId) in PushToastComponent() argument 56 PopupComponentInfo pushComponentInfo = { toastId, "-1", Operation::TOAST_PUSH, newComponent }; in PushToastComponent() 255 void StackElement::PerformPopToastById(int32_t toastId) in PerformPopToastById() argument 261 if (iter->toastId == toastId) { in PerformPopToastById()
|
/foundation/arkui/ace_engine/frameworks/core/components/toast/ |
H A D | toast_component.cpp | 172 int32_t toastId = GenerateNextToastId(); in Show() local 195 stackElement->PushToastComponent(align, toastId); in Show() 199 stackElement->PushToastComponent(positioned, toastId); in Show() 204 [weak, toastId, stopCallback = stopCallback_] { in Show() 209 ref->PopToastComponent(toastId); in Show()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/toast/ |
H A D | toast_view.cpp | 32 auto toastId = ElementRegister::GetInstance()->MakeUniqueId(); in CreateToastNode() local 34 ACE_LAYOUT_SCOPED_TRACE("Create[%s][self:%d]", V2::TOAST_ETS_TAG, toastId); in CreateToastNode() 35 auto toastNode = FrameNode::CreateFrameNode(V2::TOAST_ETS_TAG, toastId, AceType::MakeRefPtr<ToastPattern>()); in CreateToastNode()
|
/foundation/arkui/ace_engine/test/unittest/core/pipeline/ |
H A D | mock_overlay_manager.cpp | 30 void OverlayManager::PopToast(int32_t toastId) {} in PopToast() argument
|
/foundation/arkui/ace_engine/test/mock/base/ |
H A D | mock_subwindow.h | 69 MOCK_METHOD2(CloseToast, void(int32_t toastId, std::function<void(int32_t)>&& callback));
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/overlay/ |
H A D | overlay_test_ng.cpp | 1285 auto toastId = ElementRegister::GetInstance()->MakeUniqueId(); in HWTEST_F() local 1287 FrameNode::CreateFrameNode(V2::TOAST_ETS_TAG, toastId, AceType::MakeRefPtr<BubblePattern>(targetId, targetTag)); in HWTEST_F() 1304 overlayManager->PopToast(toastId); in HWTEST_F() 1321 auto toastId = ElementRegister::GetInstance()->MakeUniqueId(); in HWTEST_F() local 1323 FrameNode::CreateFrameNode(V2::TOAST_ETS_TAG, toastId, AceType::MakeRefPtr<BubblePattern>(targetId, targetTag)); in HWTEST_F() 1344 overlayManager->PopToast(toastId); in HWTEST_F() 1478 auto toastId = ElementRegister::GetInstance()->MakeUniqueId(); in HWTEST_F() local 1480 FrameNode::CreateFrameNode(V2::TOAST_ETS_TAG, toastId, AceType::MakeRefPtr<ToastPattern>()); in HWTEST_F() 1502 auto toastId = ElementRegister::GetInstance()->MakeUniqueId(); in HWTEST_F() local 1504 FrameNode::CreateFrameNode(V2::TOAST_ETS_TAG, toastId, AceTyp in HWTEST_F() 1544 auto toastId = ElementRegister::GetInstance()->MakeUniqueId(); HWTEST_F() local [all...] |
H A D | overlay_manager_extend_test_ng.cpp | 937 auto toastId = callbackId >> 3; // 3 : Move 3 bits to the right to get toastId in HWTEST_F() 938 overlayManager->CloseToast(toastId, closeCallback); in HWTEST_F()
|
H A D | overlay_manager_test_ng.cpp | 222 auto toastId = ElementRegister::GetInstance()->MakeUniqueId(); in HWTEST_F() local 224 FrameNode::CreateFrameNode(V2::TOAST_ETS_TAG, toastId, AceType::MakeRefPtr<BubblePattern>(targetId, targetTag)); in HWTEST_F()
|
/foundation/arkui/ace_engine/frameworks/base/subwindow/ |
H A D | subwindow_manager.cpp | 757 const int32_t toastId, const NG::ToastShowMode& showMode, std::function<void(int32_t)>&& callback) in CloseToast() 769 subwindow->CloseToast(toastId, std::move(callback)); in CloseToast() 774 subwindow->CloseToast(toastId, std::move(callback)); in CloseToast() 783 subwindow->CloseToast(toastId, std::move(callback)); in CloseToast() 756 CloseToast( const int32_t toastId, const NG::ToastShowMode& showMode, std::function<void(int32_t)>&& callback) CloseToast() argument
|
H A D | subwindow.h | 169 virtual void CloseToast(const int32_t toastId, std::function<void(int32_t)>&& callback) = 0;
|
H A D | subwindow_manager.h | 116 const int32_t toastId, const NG::ToastShowMode& showMode, std::function<void(int32_t)>&& callback);
|
/foundation/arkui/ace_engine/interfaces/napi/kits/promptaction/ |
H A D | prompt_action.cpp | 527 toastCallback = [env, deferred](int32_t toastId) mutable { in JSPromptOpenToast() 529 napi_create_int32(env, toastId, &napiToastId); in JSPromptOpenToast() 538 void CloseToast(napi_env env, int32_t toastId, NG::ToastShowMode showMode) in CloseToast() argument 551 delegate->CloseToast(toastId, std::move(toastCloseCallback)); in CloseToast() 556 SubwindowManager::GetInstance()->CloseToast(toastId, showMode, std::move(toastCloseCallback)); in CloseToast() 564 delegate->CloseToast(toastId, std::move(toastCloseCallback)); in CloseToast() 566 SubwindowManager::GetInstance()->CloseToast(toastId, showMode, std::move(toastCloseCallback)); in CloseToast() 583 NapiThrow(env, "The toastId is invalid.", ERROR_CODE_PARAM_INVALID); in JSPromptCloseToast() 587 int32_t toastId = in JSPromptCloseToast() local 589 3); // 3 : Move 3 bits to the right to get toastId, an in JSPromptCloseToast() [all...] |
/foundation/arkui/ace_engine/adapter/ohos/entrance/ |
H A D | dialog_container.h | 166 static void CloseToast(int32_t instanceId, const int32_t toastId, std::function<void(int32_t)>&& callback);
|
H A D | dialog_container.cpp | 478 void DialogContainer::CloseToast(int32_t instanceId, int32_t toastId, std::function<void(int32_t)>&& callback) in CloseToast() argument 494 delegate->CloseToast(toastId, std::move(callback)); in CloseToast()
|
/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/ |
H A D | frontend_delegate.h | 174 virtual void CloseToast(const int32_t toastId, std::function<void(int32_t)>&& callback) {}; in CloseToast() argument
|
/foundation/arkui/ace_engine/adapter/ohos/entrance/subwindow/ |
H A D | subwindow_ohos.h | 105 void CloseToast(const int32_t toastId, std::function<void(int32_t)>&& callback) override;
|
H A D | subwindow_ohos.cpp | 1401 void SubwindowOhos::CloseToast(const int32_t toastId, std::function<void(int32_t)>&& callback) in CloseToast() argument 1411 Platform::DialogContainer::CloseToast(childContainerId, toastId, std::move(callback)); in CloseToast() 1419 delegate->CloseToast(toastId, std::move(callback)); in CloseToast()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/overlay/ |
H A D | overlay_manager.cpp | 1383 auto toastId = toastNode->GetId(); in ShowToast() local 1388 toastMap_[toastId] = toastNode; in ShowToast() 1389 if (callback != nullptr && GreatOrEqual(toastId, 0)) { in ShowToast() 1391 ((static_cast<uint32_t>(toastId) << 3) | // 3 : Use the last 3 bits of callbackToastId to store showMode in ShowToast() 1405 void OverlayManager::CloseToast(int32_t toastId, const std::function<void(int32_t)>& callback) in CloseToast() argument 1418 if (id == toastId) { in CloseToast() 1432 auto toastId = toastNode->GetId(); in OpenToastAnimation() local 1439 continuousTask_.Reset([weak = WeakClaim(this), toastId, duration, id = Container::CurrentId()]() { in OpenToastAnimation() 1443 overlayManager->PopToast(toastId); in OpenToastAnimation() 1474 void OverlayManager::PopToast(int32_t toastId) in PopToast() argument [all...] |
H A D | overlay_manager.h | 167 void CloseToast(int32_t toastId, const std::function<void(int32_t)>& callback);
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/ |
H A D | jsUIContext.js | 1090 closeToast(toastId) { 1092 this.ohos_prompt.closeToast(toastId);
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ng/ |
H A D | frontend_delegate_declarative_ng.h | 140 void CloseToast(const int32_t toastId, std::function<void(int32_t)>&& callback = nullptr) override;
|
H A D | frontend_delegate_declarative_ng.cpp | 1056 void FrontendDelegateDeclarativeNG::CloseToast(const int32_t toastId, std::function<void(int32_t)>&& callback) in CloseToast() argument 1065 overlayManager->CloseToast(toastId, std::move(callback)); in CloseToast()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ |
H A D | frontend_delegate_declarative.h | 198 void CloseToast(const int32_t toastId, std::function<void(int32_t)>&& callback = nullptr) override;
|
H A D | frontend_delegate_declarative.cpp | 1568 void FrontendDelegateDeclarative::CloseToast(const int32_t toastId, std::function<void(int32_t)>&& callback) in CloseToast() argument 1579 overlayManager->CloseToast(toastId, std::move(callback)); in CloseToast()
|