/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/web/ |
H A D | web_event_hub.h | 54 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 D | web_model.h | 44 std::function<bool(const BaseEventInfo* info)>&& jsCallback, int dialogEventType) = 0;
|
H A D | web_model_ng.h | 44 …nDialog(std::function<bool(const BaseEventInfo* info)>&& jsCallback, int dialogEventType) override;
|
H A D | web_model_ng.cpp | 103 …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 D | web_component.h | 663 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 D | web_delegate_cross.h | 93 …ialogResult(void* object, DialogEventType dialogEventType) : object_(object), dialogEventType_(dia… in DialogResult() argument 421 bool OnCommonDialog(void* object, DialogEventType dialogEventType);
|
H A D | web_delegate_cross.cpp | 1328 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 D | cj_web_ffi.cpp | 391 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 D | js_web.h | 171 static void OnCommonDialog(const JSCallbackInfo& args, int dialogEventType);
|
H A D | js_web.cpp | 2496 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 D | web_client_impl.cpp | 96 DialogEventType dialogEventType, in OnJsCommonDialog() argument 103 auto param = std::make_shared<WebDialogEvent>(url, message, value, dialogEventType, in OnJsCommonDialog() 110 [&webClientImpl, dialogEventType, ¶m, &jsResult] { in OnJsCommonDialog() 116 jsResult = delegate->OnCommonDialog(param, dialogEventType); in OnJsCommonDialog()
|
H A D | web_delegate.cpp | 4645 …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 D | web_delegate.h | 832 … bool OnCommonDialog(const std::shared_ptr<BaseEventInfo>& info, DialogEventType dialogEventType);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/ |
H A D | web_model_impl.h | 38 …nDialog(std::function<bool(const BaseEventInfo* info)>&& jsCallback, int dialogEventType) override;
|
H A D | web_model_impl.cpp | 83 …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()
|