Home
last modified time | relevance | path

Searched refs:toastId (Results 1 - 25 of 25) sorted by relevance

/foundation/arkui/ace_engine/frameworks/core/components/stack/
H A Dstack_element.h45 int32_t toastId = -1; member
64 void PushToastComponent(const RefPtr<Component>& newComponent, int32_t toastId);
93 void PerformPopToastById(int32_t toastId);
H A Dstack_element.cpp54 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 Dtoast_component.cpp172 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 Dtoast_view.cpp32 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 Dmock_overlay_manager.cpp30 void OverlayManager::PopToast(int32_t toastId) {} in PopToast() argument
/foundation/arkui/ace_engine/test/mock/base/
H A Dmock_subwindow.h69 MOCK_METHOD2(CloseToast, void(int32_t toastId, std::function<void(int32_t)>&& callback));
/foundation/arkui/ace_engine/test/unittest/core/pattern/overlay/
H A Doverlay_test_ng.cpp1285 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 Doverlay_manager_extend_test_ng.cpp937 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 Doverlay_manager_test_ng.cpp222 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 Dsubwindow_manager.cpp757 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 Dsubwindow.h169 virtual void CloseToast(const int32_t toastId, std::function<void(int32_t)>&& callback) = 0;
H A Dsubwindow_manager.h116 const int32_t toastId, const NG::ToastShowMode& showMode, std::function<void(int32_t)>&& callback);
/foundation/arkui/ace_engine/interfaces/napi/kits/promptaction/
H A Dprompt_action.cpp527 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 Ddialog_container.h166 static void CloseToast(int32_t instanceId, const int32_t toastId, std::function<void(int32_t)>&& callback);
H A Ddialog_container.cpp478 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 Dfrontend_delegate.h174 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 Dsubwindow_ohos.h105 void CloseToast(const int32_t toastId, std::function<void(int32_t)>&& callback) override;
H A Dsubwindow_ohos.cpp1401 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 Doverlay_manager.cpp1383 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 Doverlay_manager.h167 void CloseToast(int32_t toastId, const std::function<void(int32_t)>& callback);
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/
H A DjsUIContext.js1090 closeToast(toastId) {
1092 this.ohos_prompt.closeToast(toastId);
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ng/
H A Dfrontend_delegate_declarative_ng.h140 void CloseToast(const int32_t toastId, std::function<void(int32_t)>&& callback = nullptr) override;
H A Dfrontend_delegate_declarative_ng.cpp1056 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 Dfrontend_delegate_declarative.h198 void CloseToast(const int32_t toastId, std::function<void(int32_t)>&& callback = nullptr) override;
H A Dfrontend_delegate_declarative.cpp1568 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()

Completed in 42 milliseconds