Home
last modified time | relevance | path

Searched refs:callbackImpl (Results 1 – 7 of 7) sorted by relevance

/base/web/webview/ohos_adapter/net_connect_adapter/src/
Dnet_connect_adapter_impl.cpp31 sptr<NetConnectCallbackImpl> callbackImpl = new (std::nothrow) NetConnectCallbackImpl(cb); in RegisterNetConnCallback() local
32 if (callbackImpl == nullptr) { in RegisterNetConnCallback()
37 int32_t ret = NetConnClient::GetInstance().RegisterNetConnCallback(callbackImpl); in RegisterNetConnCallback()
43 netConnCallbackMap_.insert(std::make_pair(cb.get(), callbackImpl)); in RegisterNetConnCallback()
/base/web/webview/test/unittest/ohos_adapter/ohos_init_web_adapter/
Dohos_init_web_adapter_test.cpp56 WebRunInitedCallback* callbackImpl = adapter.GetRunWebInitedCallback(); variable
57 EXPECT_EQ(callbackImpl, nullptr);
/base/web/webview/interfaces/kits/napi/webasynccontroller/
Dnapi_web_async_controller.cpp216 auto callbackImpl = std::make_shared<OHOS::NWeb::NWebStoreWebArchiveCallback>(); in StoreWebArchiveCallback() local
217 callbackImpl->SetCallBack([env, jCallback = std::move(jsCallback)](std::string result) { in StoreWebArchiveCallback()
242 nweb->StoreWebArchive(baseName, autoName, callbackImpl); in StoreWebArchiveCallback()
264 auto callbackImpl = std::make_shared<OHOS::NWeb::NWebStoreWebArchiveCallback>(); in StoreWebArchivePromise() local
265 callbackImpl->SetCallBack([env, deferred](std::string result) { in StoreWebArchivePromise()
285 nweb->StoreWebArchive(baseName, autoName, callbackImpl); in StoreWebArchivePromise()
/base/web/webview/interfaces/kits/napi/webviewcontroller/
Dwebview_controller.cpp257 auto callbackImpl = std::make_shared<OHOS::NWeb::NWebStoreWebArchiveCallback>(); in StoreWebArchiveCallback() local
258 callbackImpl->SetCallBack([env, jCallback = std::move(jsCallback)](std::string result) { in StoreWebArchiveCallback()
285 nweb_ptr->StoreWebArchive(baseName, autoName, callbackImpl); in StoreWebArchiveCallback()
304 auto callbackImpl = std::make_shared<OHOS::NWeb::NWebStoreWebArchiveCallback>(); in StoreWebArchivePromise() local
305 callbackImpl->SetCallBack([env, deferred](std::string result) { in StoreWebArchivePromise()
326 nweb_ptr->StoreWebArchive(baseName, autoName, callbackImpl); in StoreWebArchivePromise()
694 …auto callbackImpl = std::make_shared<WebviewJavaScriptExecuteCallback>(env, jsCallback, nullptr, e… in RunJavaScriptCallback() local
695 nweb_ptr->ExecuteJavaScript(script, callbackImpl, extention); in RunJavaScriptCallback()
713 …auto callbackImpl = std::make_shared<WebviewJavaScriptExecuteCallback>(env, nullptr, deferred, ext… in RunJavaScriptPromise() local
714 nweb_ptr->ExecuteJavaScript(script, callbackImpl, extention); in RunJavaScriptPromise()
[all …]
Dnapi_webview_controller.cpp1567 auto callbackImpl = std::make_shared<NWebValueCallbackImpl>(env, onMsgEventFunc, true); in OnMessageEventExt() local
1575 ErrCode ret = msgPort->SetPortMessageCallback(callbackImpl); in OnMessageEventExt()
1772 auto callbackImpl = std::make_shared<NWebValueCallbackImpl>(env, onMsgEventFunc, false); in OnMessageEvent() local
1780 ErrCode ret = msgPort->SetPortMessageCallback(callbackImpl); in OnMessageEvent()
/base/web/webview/test/unittest/ohos_adapter/media_adapter_test/
Dplayer_framework_adapter_impl_test.cpp161 auto callbackImpl = static_cast<PlayerCallbackTest*>(playerCallback_->callbackAdapter_.get()); variable
163 EXPECT_EQ(callbackImpl->infoType_, PlayerOnInfoType::INFO_TYPE_UNSET);
165 EXPECT_EQ(callbackImpl->errorType_, PlayerAdapterErrorType::INVALID_CODE);
/base/web/webview/interfaces/kits/napi/webcookiemanager/
Dnapi_web_cookie_manager.cpp315 …auto callbackImpl = std::make_shared<OHOS::NWeb::NWebSaveCookieCallbackImpl>(env, jsCallback, null… in SaveCookieAsyncCallback() local
316 cookieManager->Store(callbackImpl); in SaveCookieAsyncCallback()
328 …auto callbackImpl = std::make_shared<OHOS::NWeb::NWebSaveCookieCallbackImpl>(env, nullptr, deferre… in SaveCookieAsyncPromise() local
329 cookieManager->Store(callbackImpl); in SaveCookieAsyncPromise()