Home
last modified time | relevance | path

Searched refs:dialogEventType (Results 1 – 15 of 15) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/web/
H A Dweb_event_hub.h54 DialogEventType dialogEventType) in SetOnCommonDialogEvent() argument
56 switch (dialogEventType) { in SetOnCommonDialogEvent()
74 …ommonDialogEvent(const std::shared_ptr<BaseEventInfo>& info, DialogEventType dialogEventType) const in FireOnCommonDialogEvent() argument
76 if (dialogEventType == DialogEventType::DIALOG_EVENT_ALERT && onAlertImpl_) { in FireOnCommonDialogEvent()
79 if (dialogEventType == DialogEventType::DIALOG_EVENT_CONFIRM && onConfirmImpl_) { in FireOnCommonDialogEvent()
82 if (dialogEventType == DialogEventType::DIALOG_EVENT_PROMPT && onPromptImpl_) { in FireOnCommonDialogEvent()
85 if (dialogEventType == DialogEventType::DIALOG_EVENT_BEFORE_UNLOAD && onBeforeUnloadImpl_) { in FireOnCommonDialogEvent()
H A Dweb_model.h44 std::function<bool(const BaseEventInfo* info)>&& jsCallback, int dialogEventType) = 0;
H A Dweb_model_ng.h44 …nDialog(std::function<bool(const BaseEventInfo* info)>&& jsCallback, int dialogEventType) override;
H A Dweb_model_ng.cpp103 …SetOnCommonDialog(std::function<bool(const BaseEventInfo* info)>&& jsCallback, int dialogEventType) in SetOnCommonDialog() argument
109 …tHub->SetOnCommonDialogEvent(std::move(uiCallback), static_cast<DialogEventType>(dialogEventType)); in SetOnCommonDialog()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/web/
H A Dweb_component.h663 bool OnCommonDialog(const BaseEventInfo* info, DialogEventType dialogEventType) const in OnCommonDialog() argument
665 if (dialogEventType == DialogEventType::DIALOG_EVENT_ALERT && onAlertImpl_) { in OnCommonDialog()
668 if (dialogEventType == DialogEventType::DIALOG_EVENT_CONFIRM && onConfirmImpl_) { in OnCommonDialog()
671 if (dialogEventType == DialogEventType::DIALOG_EVENT_PROMPT && onPromptImpl_) { in OnCommonDialog()
674 if (dialogEventType == DialogEventType::DIALOG_EVENT_BEFORE_UNLOAD && onBeforeUnloadImpl_) { in OnCommonDialog()
679 …oid SetOnCommonDialogImpl(OnCommonDialogImpl&& onCommonDialogImpl, DialogEventType dialogEventType) in SetOnCommonDialogImpl() argument
685 switch (dialogEventType) { in SetOnCommonDialogImpl()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/web/cross_platform/
H A Dweb_delegate_cross.h93 …ialogResult(void* object, DialogEventType dialogEventType) : object_(object), dialogEventType_(dia… in DialogResult() argument
421 bool OnCommonDialog(void* object, DialogEventType dialogEventType);
H A Dweb_delegate_cross.cpp1328 bool WebDelegateCross::OnCommonDialog(void* object, DialogEventType dialogEventType) in OnCommonDialog() argument
1339 …auto value = dialogEventType == DialogEventType::DIALOG_EVENT_PROMPT ? webCommonDialog->GetValue()… in OnCommonDialog()
1340 auto dialogResult = AceType::MakeRefPtr<DialogResult>(object, dialogEventType); in OnCommonDialog()
1342 [weak = WeakClaim(this), url, message, value, dialogResult, dialogEventType, &result]() { in OnCommonDialog()
1350 …o eventParam = std::make_shared<WebDialogEvent>(url, message, value, dialogEventType, dialogResult… in OnCommonDialog()
1351 result = webEventHub->FireOnCommonDialogEvent(eventParam, dialogEventType); in OnCommonDialog()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_web_ffi.cpp391 void OnCommonDialog(bool (*callback)(FfiWebEvent event), int64_t dialogEventType) in OnCommonDialog() argument
409 WebModel::GetInstance()->SetOnCommonDialog(std::move(onDialog), dialogEventType); in OnCommonDialog()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_web.h171 static void OnCommonDialog(const JSCallbackInfo& args, int dialogEventType);
H A Djs_web.cpp2496 void JSWeb::OnCommonDialog(const JSCallbackInfo& args, int dialogEventType) in OnCommonDialog() argument
2520 WebModel::GetInstance()->SetOnCommonDialog(jsCallback, dialogEventType); in OnCommonDialog()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/web/resource/
H A Dweb_client_impl.cpp96 DialogEventType dialogEventType, in OnJsCommonDialog() argument
103 auto param = std::make_shared<WebDialogEvent>(url, message, value, dialogEventType, in OnJsCommonDialog()
110 [&webClientImpl, dialogEventType, &param, &jsResult] { in OnJsCommonDialog()
116 jsResult = delegate->OnCommonDialog(param, dialogEventType); in OnJsCommonDialog()
H A Dweb_delegate.cpp4645 …legate::OnCommonDialog(const std::shared_ptr<BaseEventInfo>& info, DialogEventType dialogEventType) in OnCommonDialog() argument
4651 jsTaskExecutor.PostSyncTask([weak = WeakClaim(this), info, dialogEventType, &result]() { in OnCommonDialog()
4659 result = webEventHub->FireOnCommonDialogEvent(info, dialogEventType); in OnCommonDialog()
4667 result = webEventHub->FireOnCommonDialogEvent(info, dialogEventType); in OnCommonDialog()
4672 result = webCom->OnCommonDialog(info.get(), dialogEventType); in OnCommonDialog()
H A Dweb_delegate.h832 … bool OnCommonDialog(const std::shared_ptr<BaseEventInfo>& info, DialogEventType dialogEventType);
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/
H A Dweb_model_impl.h38 …nDialog(std::function<bool(const BaseEventInfo* info)>&& jsCallback, int dialogEventType) override;
H A Dweb_model_impl.cpp83 …SetOnCommonDialog(std::function<bool(const BaseEventInfo* info)>&& jsCallback, int dialogEventType) in SetOnCommonDialog() argument
87 …onent->SetOnCommonDialogImpl(std::move(jsCallback), static_cast<DialogEventType>(dialogEventType)); in SetOnCommonDialog()