/base/web/webview/interfaces/native/ |
H A D | native_interface_arkweb.cpp | 25 #include "nweb.h" 64 if (auto nweb = nwebWeak.lock()) { in OH_NativeArkWeb_RunJavaScript() 67 nweb->ExecuteJavaScript(jsCode, callbackImpl, false); in OH_NativeArkWeb_RunJavaScript() 69 WVLOG_E("native RunJavaScript get nweb null: %{public}s", webTag); in OH_NativeArkWeb_RunJavaScript() 85 if (auto nweb = nwebWeak.lock()) { in OH_NativeArkWeb_RegisterJavaScriptProxy() 86 nweb->RegisterNativeArkJSFunction(objName, proxyCallbacks); in OH_NativeArkWeb_RegisterJavaScriptProxy() 88 nweb->Reload(); in OH_NativeArkWeb_RegisterJavaScriptProxy() 91 WVLOG_E("native RegisterJavaScriptProxy get nweb null: %{public}s", webTag); in OH_NativeArkWeb_RegisterJavaScriptProxy() 99 if (auto nweb = nwebWeak.lock()) { in OH_NativeArkWeb_UnregisterJavaScriptProxy() 100 nweb in OH_NativeArkWeb_UnregisterJavaScriptProxy() [all...] |
/base/web/webview/test/fuzztest/ohos_nweb/nwebhelper_fuzzer/ |
H A D | nwebhelper_fuzzer.cpp | 25 #include "nweb.h" 45 const std::string MOCK_INSTALLATION_DIR = "/data/app/el1/bundle/public/com.ohos.nweb"; 178 std::shared_ptr<NWeb> nweb = NWebHelper::Instance().CreateNWeb(create_info); in NWebHelperFuzzTest() local 179 (void)nweb; in NWebHelperFuzzTest() 238 std::shared_ptr<NWeb> nweb = in NWebHelperFuzzTest_003() local 240 (void)nweb; in NWebHelperFuzzTest_003() 242 nweb = NWebAdapterHelper::Instance().CreateNWeb(enhanceSurfaceInfo, GetInitArgs(), DEFAULT_WIDTH, DEFAULT_HEIGHT); in NWebHelperFuzzTest_003() 243 (void)nweb; in NWebHelperFuzzTest_003() 244 nweb = NWebAdapterHelper::Instance().CreateNWeb(enhanceSurfaceInfo, GetInitArgs(), DEFAULT_WIDTH, NWEB_MAX_WIDTH); in NWebHelperFuzzTest_003() 245 (void)nweb; in NWebHelperFuzzTest_003() [all...] |
/base/web/webview/test/unittest/nweb_helper_test/ |
H A D | nweb_helper_test.cpp | 24 #include "nweb.h" 191 std::shared_ptr<NWeb> nweb = NWebHelper::Instance().CreateNWeb(create_info); in HWTEST_F() local 192 EXPECT_EQ(nweb, nullptr); in HWTEST_F() 270 std::shared_ptr<NWeb> nweb = in HWTEST_F() local 273 EXPECT_EQ(nweb, nullptr); in HWTEST_F() 275 nweb = NWebAdapterHelper::Instance().CreateNWeb(enhanceSurfaceInfo, GetInitArgs(), in HWTEST_F() 277 EXPECT_EQ(nweb, nullptr); in HWTEST_F() 278 nweb = NWebAdapterHelper::Instance().CreateNWeb(enhanceSurfaceInfo, GetInitArgs(), in HWTEST_F() 280 EXPECT_EQ(nweb, nullptr); in HWTEST_F() 281 nweb in HWTEST_F() 306 std::shared_ptr<NWeb> nweb = HWTEST_F() local 368 std::shared_ptr<NWeb> nweb = NWebHelper::Instance().CreateNWeb(create_info); HWTEST_F() local 479 std::shared_ptr<NWeb> nweb = NWebHelper::Instance().CreateNWeb(create_info); HWTEST_F() local 630 std::shared_ptr<NWeb> nweb = NWebHelper::Instance().CreateNWeb(create_info); HWTEST_F() local [all...] |
/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webcore/ |
H A D | ark_web_engine_impl.cpp | 52 std::shared_ptr<OHOS::NWeb::NWeb> nweb = nweb_engine_->CreateNWeb(nweb_create_info); in CreateNWeb() local 53 if (CHECK_SHARED_PTR_IS_NULL(nweb)) { in CreateNWeb() 57 return new ArkWebNWebImpl(nweb); in CreateNWeb() 62 std::shared_ptr<OHOS::NWeb::NWeb> nweb = nweb_engine_->GetNWeb(nweb_id); in GetNWeb() local 63 if (CHECK_SHARED_PTR_IS_NULL(nweb)) { in GetNWeb() 67 return new ArkWebNWebImpl(nweb); in GetNWeb()
|
H A D | ark_web_handler_wrapper.cpp | 67 void ArkWebHandlerWrapper::SetNWeb(std::shared_ptr<OHOS::NWeb::NWeb> nweb) in SetNWeb() argument 69 if (CHECK_SHARED_PTR_IS_NULL(nweb)) { in SetNWeb() 74 ark_web_handler_->SetNWeb(new ArkWebNWebImpl(nweb)); in SetNWeb()
|
H A D | ark_web_handler_wrapper.h | 41 void SetNWeb(std::shared_ptr<OHOS::NWeb::NWeb> nweb) override; 44 * @brief Request display and focus for a new nweb. 52 * @brief Notify the SDK that the nweb will load the resource specified by the 368 * of this callback should attempt to clean up the specific nweb that
|
/base/web/webview/interfaces/kits/napi/webasynccontroller/ |
H A D | napi_web_async_controller.cpp | 17 #include "nweb.h" 197 std::shared_ptr<NWeb> nweb = NWebHelper::Instance().GetNWeb(nwebId_); in StoreWebArchiveCallback() local 198 if (!nweb) { in StoreWebArchiveCallback() 199 HILOG_ERROR(LOG_APP, "not found a valid nweb"); in StoreWebArchiveCallback() 241 nweb->StoreWebArchive(baseName, autoName, callbackImpl); in StoreWebArchiveCallback() 249 std::shared_ptr<NWeb> nweb = NWebHelper::Instance().GetNWeb(nwebId_); in StoreWebArchivePromise() local 250 if (!nweb) { in StoreWebArchivePromise() 251 HILOG_ERROR(LOG_APP, "not found a valid nweb"); in StoreWebArchivePromise() 283 nweb->StoreWebArchive(baseName, autoName, callbackImpl); in StoreWebArchivePromise()
|
/base/web/webview/test/unittest/ohos_adapter_helper/ |
H A D | ohos_adapter_helper_test.cpp | 104 auto nweb = helper.GetNWeb(nweb_id); in HWTEST_F() local 105 EXPECT_EQ(nweb, nullptr); in HWTEST_F() 160 auto nweb = NWebAdapterHelper::Instance().CreateNWeb(surface, initArgs, width, height); in HWTEST_F() local 161 EXPECT_EQ(nweb, nullptr); in HWTEST_F() 185 auto nweb = helper.GetNWeb(nweb_id); in HWTEST_F() local 186 EXPECT_EQ(nweb, nullptr); in HWTEST_F()
|
/base/web/webview/ohos_nweb/src/ |
H A D | nweb_helper.cpp | 593 WVLOG_D("first time startup, need to wait until the nweb init stage"); in TryPreReadLib() 643 WVLOG_E("failed to init arkweb nweb bridge helper"); in GetWebEngine() 1051 WVLOG_E("fail to create nweb, input surface is nullptr"); in CreateNWeb() 1069 auto nweb = NWebHelper::Instance().CreateNWeb(createInfo); in CreateNWeb() local 1070 if (nweb == nullptr) { in CreateNWeb() 1071 WVLOG_E("fail to create nweb instance"); in CreateNWeb() 1075 EventReport::ReportCreateWebInstanceTime(nweb->GetWebId(), endTime - startTime); in CreateNWeb() 1076 return nweb; in CreateNWeb() 1084 WVLOG_E("fail to create nweb, input surface is nullptr"); in CreateNWeb() 1093 auto nweb in CreateNWeb() local [all...] |
/base/web/webview/ |
H A D | prepare.sh | 87 handle_copy_files nweb
|
/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webview/ |
H A D | ark_web_handler_impl.cpp | 77 void ArkWebHandlerImpl::SetNWeb(ArkWebRefPtr<ArkWebNWeb> nweb) in SetNWeb() argument 79 if (CHECK_REF_PTR_IS_NULL(nweb)) { in SetNWeb() 84 nweb_handler_->SetNWeb(std::make_shared<ArkWebNWebWrapper>(nweb)); in SetNWeb()
|
H A D | ark_web_handler_impl.h | 32 void SetNWeb(ArkWebRefPtr<ArkWebNWeb> nweb) override; 35 * @brief Request display and focus for a new nweb. 43 * @brief Notify the SDK that the nweb will load the resource specified by the 356 * of this callback should attempt to clean up the specific nweb that
|
/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/include/ |
H A D | ark_web_handler.h | 66 virtual void SetNWeb(ArkWebRefPtr<ArkWebNWeb> nweb) = 0; 69 * @brief Request display and focus for a new nweb. 79 * @brief Notify the SDK that the nweb will load the resource specified by the 437 * of this callback should attempt to clean up the specific nweb that 701 * @brief Request display and focus for a new nweb.
|
/base/web/webview/ohos_interface/include/ohos_nweb/ |
H A D | nweb_handler.h | 23 #include "nweb.h" 304 virtual void SetNWeb(std::shared_ptr<NWeb> nweb) {} in SetNWeb() argument 351 * @brief Notify the SDK that the nweb will load the resource specified by 373 * @brief Request display and focus for a new nweb. 562 * should attempt to clean up the specific nweb that was set by SetNWeb interface. 921 * @brief Request display and focus for a new nweb.
|