Home
last modified time | relevance | path

Searched refs:callbackImpl (Results 1 – 8 of 8) 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/webcookiemanager/
Dnapi_web_cookie_manager.cpp133 …auto callbackImpl = std::make_shared<OHOS::NWeb::NWebFetchCookieCallbackImpl>(env, jsCallback, nul… in FetchCookieAsyncCallback() local
134 cookieManager->ReturnCookie(url, callbackImpl); in FetchCookieAsyncCallback()
146 …auto callbackImpl = std::make_shared<OHOS::NWeb::NWebFetchCookieCallbackImpl>(env, nullptr, deferr… in FetchCookieAsyncPromise() local
147 cookieManager->ReturnCookie(url, callbackImpl); in FetchCookieAsyncPromise()
296 …auto callbackImpl = std::make_shared<OHOS::NWeb::NWebConfigCookieCallbackImpl>(env, jsCallback, nu… in ConfigCookieAsyncCallback() local
297 cookieManager->ConfigCookie(url, value, callbackImpl); in ConfigCookieAsyncCallback()
309 …auto callbackImpl = std::make_shared<OHOS::NWeb::NWebConfigCookieCallbackImpl>(env, nullptr, defer… in ConfigCookieAsyncPromise() local
310 cookieManager->ConfigCookie(url, value, callbackImpl); in ConfigCookieAsyncPromise()
483 …auto callbackImpl = std::make_shared<OHOS::NWeb::NWebCookieCallbackImpl>(env, jsCallback, nullptr); in ClearAllCookiesAsyncCallback() local
484 cookieManager->DeleteCookieEntirely(callbackImpl, false); in ClearAllCookiesAsyncCallback()
[all …]
/base/web/webview/interfaces/kits/napi/webviewcontroller/
Dwebview_controller.cpp365 auto callbackImpl = std::make_shared<OHOS::NWeb::NWebStoreWebArchiveCallback>(); in StoreWebArchiveCallback() local
366 callbackImpl->SetCallBack([env, jCallback = std::move(jsCallback)](std::string result) { in StoreWebArchiveCallback()
393 nweb_ptr->StoreWebArchive(baseName, autoName, callbackImpl); in StoreWebArchiveCallback()
412 auto callbackImpl = std::make_shared<OHOS::NWeb::NWebStoreWebArchiveCallback>(); in StoreWebArchivePromise() local
413 callbackImpl->SetCallBack([env, deferred](std::string result) { in StoreWebArchivePromise()
434 nweb_ptr->StoreWebArchive(baseName, autoName, callbackImpl); in StoreWebArchivePromise()
865 …auto callbackImpl = std::make_shared<WebviewJavaScriptExecuteCallback>(env, jsCallback, nullptr, e… in RunJavaScriptCallback() local
866 nweb_ptr->ExecuteJavaScript(script, callbackImpl, extention); in RunJavaScriptCallback()
884 …auto callbackImpl = std::make_shared<WebviewJavaScriptExecuteCallback>(env, nullptr, deferred, ext… in RunJavaScriptPromise() local
885 nweb_ptr->ExecuteJavaScript(script, callbackImpl, extention); in RunJavaScriptPromise()
[all …]
Dnapi_webview_controller.cpp1714 auto callbackImpl = std::make_shared<NWebValueCallbackImpl>(env, onMsgEventFunc, true); in OnMessageEventExt() local
1722 ErrCode ret = msgPort->SetPortMessageCallback(callbackImpl); in OnMessageEventExt()
1929 auto callbackImpl = std::make_shared<NWebValueCallbackImpl>(env, onMsgEventFunc, false); in OnMessageEvent() local
1937 ErrCode ret = msgPort->SetPortMessageCallback(callbackImpl); in OnMessageEvent()
4010 WebPrintWriteResultCallback callbackImpl = in ParseWebPrintWriteResultCallback() local
4031 return callbackImpl; in ParseWebPrintWriteResultCallback()
/base/web/webview/interfaces/native/
Dnative_interface_arkweb.cpp39 auto callbackImpl = std::make_shared<OHOS::NWeb::NativeJavaScriptExecuteCallback>(callback); in OH_NativeArkWeb_RunJavaScript() local
41 nweb->ExecuteJavaScript(jsCode, callbackImpl, false); in OH_NativeArkWeb_RunJavaScript()
/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);