/base/web/webview/ohos_adapter/display_manager_adapter/src/ |
D | display_manager_adapter_impl.cpp | 22 using namespace OHOS::NWeb; 24 namespace OHOS::NWeb { namespace 50 OHOS::NWeb::RotationType DisplayAdapterImpl::ConvertRotationType(OHOS::Rosen::Rotation type) in ConvertRotationType() 54 return OHOS::NWeb::RotationType::ROTATION_0; in ConvertRotationType() 56 return OHOS::NWeb::RotationType::ROTATION_90; in ConvertRotationType() 58 return OHOS::NWeb::RotationType::ROTATION_180; in ConvertRotationType() 60 return OHOS::NWeb::RotationType::ROTATION_270; in ConvertRotationType() 62 return OHOS::NWeb::RotationType::ROTATION_BUTT; in ConvertRotationType() 66 OHOS::NWeb::OrientationType DisplayAdapterImpl::ConvertOrientationType(OHOS::Rosen::Orientation typ… in ConvertOrientationType() 70 return OHOS::NWeb::OrientationType::UNSPECIFIED; in ConvertOrientationType() [all …]
|
/base/web/webview/test/unittest/display_manager_adapter_impl_test/ |
D | display_manager_adapter_impl_test.cpp | 27 using namespace OHOS::NWeb; 50 namespace NWeb { namespace 134 OHOS::NWeb::RotationType retType; 136 EXPECT_EQ(retType, OHOS::NWeb::RotationType::ROTATION_0); 140 EXPECT_EQ(retType, OHOS::NWeb::RotationType::ROTATION_90); 144 EXPECT_EQ(retType, OHOS::NWeb::RotationType::ROTATION_180); 148 EXPECT_EQ(retType, OHOS::NWeb::RotationType::ROTATION_270); 153 EXPECT_EQ(retType, OHOS::NWeb::RotationType::ROTATION_BUTT); 168 OHOS::NWeb::OrientationType retType; 170 EXPECT_EQ(retType, OHOS::NWeb::OrientationType::UNSPECIFIED); [all …]
|
/base/web/webview/ohos_nweb/include/ |
D | nweb_adapter_helper.h | 26 namespace OHOS::NWeb { 32 std::shared_ptr<NWeb> CreateNWeb(Rosen::Window *window, const NWebInitArgs &initArgs); 33 std::shared_ptr<NWeb> CreateNWeb(sptr<Surface> surface, 37 std::shared_ptr<NWeb> CreateNWeb(void *enhanceSurfaceInfo,
|
D | nweb_window_adapter.h | 28 namespace OHOS::NWeb { 33 void RegistEventCb(Rosen::Window *window, std::shared_ptr<NWeb> nweb); 34 void RequestVsync(Rosen::Window *window, std::shared_ptr<NWeb> nweb); 39 void VsyncCb(Rosen::Window *window, std::shared_ptr<NWeb> nweb);
|
D | nweb_helper.h | 28 namespace OHOS::NWeb { 36 std::shared_ptr<NWeb> CreateNWeb(const NWebCreateInfo &create_info); 40 std::weak_ptr<NWeb> GetNWeb(int32_t nweb_id);
|
D | nweb_input_event_consumer.h | 27 namespace OHOS::NWeb { 30 explicit NWebInputEventConsumer(std::shared_ptr<NWeb> nweb); 41 std::weak_ptr<NWeb> nwebweak_;
|
D | nweb_adapter_common.h | 23 namespace OHOS::NWeb { 31 std::weak_ptr<NWeb> nwebWeak;
|
D | nweb_save_cookie_callback.h | 21 namespace OHOS::NWeb { 22 class NWebSaveCookieCallback : public OHOS::NWeb::NWebValueCallback<bool> {
|
/base/web/webview/test/ohos_nweb/ |
D | nweb_javascript_result_callback_test.h | 28 namespace OHOS::NWeb { 29 class NWebJavaScriptResultCallBackTest : public OHOS::NWeb::NWebJavaScriptResultCallBack { 33 std::shared_ptr<OHOS::NWeb::NWebValue> 34 GetJavaScriptResult(std::vector<std::shared_ptr<OHOS::NWeb::NWebValue>> args,
|
D | nweb_handler_impl_test_for_intercept.h | 21 namespace OHOS::NWeb { 26 void SetNWeb(std::shared_ptr<NWeb> nweb) override; 30 std::weak_ptr<NWeb> nwebweak_;
|
D | nweb_input_event_consumer_test.h | 26 namespace OHOS::NWeb { 29 explicit NWebInputEventConsumerTest(std::shared_ptr<NWeb> nweb); 40 std::weak_ptr<NWeb> nwebweak_;
|
D | ohos_nweb_test.cpp | 50 std::shared_ptr<OHOS::NWeb::NWeb> g_nweb = nullptr; 51 std::shared_ptr<OHOS::NWeb::NWeb> g_nweb2 = nullptr; 52 std::shared_ptr<OHOS::NWeb::NWebPreference> g_webSettings = nullptr; 148 OHOS::NWeb::NWebInitArgs GetInitArgs() in GetInitArgs() 150 OHOS::NWeb::NWebInitArgs initArgs = { in GetInitArgs() 174 void RegistEventCb(sptr<Rosen::Window> window, std::shared_ptr<OHOS::NWeb::NWeb> nweb) in RegistEventCb() 181 std::make_shared<NWeb::NWebInputEventConsumerTest>(nweb); in RegistEventCb() 189 OHOS::NWeb::NWebHelper::Instance().SetBundlePath(MOCK_INSTALLATION_DIR); in TestPrepare() 190 if (!OHOS::NWeb::NWebAdapterHelper::Instance().Init(false)) { in TestPrepare() 199 g_nweb = NWeb::NWebAdapterHelper::Instance().CreateNWeb( in TestPrepare() [all …]
|
D | nweb_js_dialog_impl_test.h | 21 namespace OHOS::NWeb { 31 void SetNWeb(std::shared_ptr<NWeb> nweb) override; 47 std::weak_ptr<NWeb> nwebweak_;
|
/base/web/webview/interfaces/kits/napi/webcookiemanager/ |
D | napi_web_cookie_manager.cpp | 32 namespace NWeb { namespace 129 …OHOS::NWeb::NWebCookieManager* cookieManager = OHOS::NWeb::NWebHelper::Instance().GetCookieManager… in JsGetCookie() 168 …OHOS::NWeb::NWebCookieManager* cookieManager = OHOS::NWeb::NWebHelper::Instance().GetCookieManager… in JsSetCookie() 188 …OHOS::NWeb::NWebCookieManager* cookieManager = OHOS::NWeb::NWebHelper::Instance().GetCookieManager… in JsIsCookieAllowed() 216 …OHOS::NWeb::NWebCookieManager* cookieManager = OHOS::NWeb::NWebHelper::Instance().GetCookieManager… in JsPutAcceptCookieEnabled() 229 …OHOS::NWeb::NWebCookieManager* cookieManager = OHOS::NWeb::NWebHelper::Instance().GetCookieManager… in JsIsThirdPartyCookieAllowed() 257 …OHOS::NWeb::NWebCookieManager* cookieManager = OHOS::NWeb::NWebHelper::Instance().GetCookieManager… in JsPutAcceptThirdPartyCookieEnabled() 270 …OHOS::NWeb::NWebCookieManager* cookieManager = OHOS::NWeb::NWebHelper::Instance().GetCookieManager… in JsExistCookie() 282 …OHOS::NWeb::NWebCookieManager* cookieManager = OHOS::NWeb::NWebHelper::Instance().GetCookieManager… in JsDeleteEntireCookie() 294 …OHOS::NWeb::NWebCookieManager* cookieManager = OHOS::NWeb::NWebHelper::Instance().GetCookieManager… in JsDeleteSessionCookie() [all …]
|
/base/web/webview/test/fuzztest/executejavascriptcode_fuzzer/ |
D | executejavascriptcode_fuzzer.cpp | 40 std::shared_ptr<OHOS::NWeb::NWeb> g_nweb = nullptr; 98 OHOS::NWeb::NWebInitArgs GetInitArgs() in GetInitArgs() 100 OHOS::NWeb::NWebInitArgs initArgs = { in GetInitArgs() 132 g_nweb = NWeb::NWebAdapterHelper::Instance().CreateNWeb( in DoSomethingInterestingWithMyAPI() 138 std::shared_ptr<NWeb::NWebValueCallback<std::string>> callback; in DoSomethingInterestingWithMyAPI()
|
/base/web/webview/test/unittest/net_connect_adapter_test/ |
D | net_connect_adapter_test.cpp | 24 namespace OHOS::NWeb { namespace 73 NetConnectType actualType = OHOS::NWeb::NetConnectUtils::ConvertToConnectTypeInner(type); 77 OHOS::NWeb::NetConnectUtils::ConvertToConnectTypeInner(static_cast<RadioTech>(-1))); 105 NetConnectSubtype actualType = OHOS::NWeb::NetConnectUtils::ConvertToConnectsubtype(type); 108 …EXPECT_EQ(NetConnectSubtype::SUBTYPE_UNKNOWN, OHOS::NWeb::NetConnectUtils::ConvertToConnectsubtype( 120 std::unordered_map<NetBearType, OHOS::NWeb::NetConnectType> typeMap; 131 NetConnectType actualType = OHOS::NWeb::NetConnectUtils::ConvertToConnectType( 136 EXPECT_EQ(NetConnectType::CONNECTION_UNKNOWN, OHOS::NWeb::NetConnectUtils::ConvertToConnectType( 148 std::unordered_map<OHOS::NWeb::NetConnectType, std::string> typeMap; 159 OHOS::NWeb::NetConnectType connectType = iter.first; [all …]
|
/base/web/webview/ohos_nweb/src/ |
D | nweb_helper.cpp | 54 namespace OHOS::NWeb { namespace 205 using CreateNWebFuncType = void(*)(const NWebCreateInfo &, std::shared_ptr<NWeb> &); 206 std::shared_ptr<NWeb> NWebHelper::CreateNWeb(const NWebCreateInfo &create_info) in CreateNWeb() 219 std::shared_ptr<NWeb> nweb; in CreateNWeb() 246 using GetNWebFunc = void(*)(int32_t, std::weak_ptr<NWeb> &); 247 std::weak_ptr<NWeb> NWebHelper::GetNWeb(int32_t nweb_id) in GetNWeb() 249 std::weak_ptr<OHOS::NWeb::NWeb> nweb; in GetNWeb() 310 std::shared_ptr<NWeb> NWebAdapterHelper::CreateNWeb(Rosen::Window *window, const NWebInitArgs &init… in CreateNWeb() 327 std::shared_ptr<NWeb> NWebAdapterHelper::CreateNWeb(sptr<Surface> surface, const NWebInitArgs &init… in CreateNWeb() 346 std::shared_ptr<NWeb> NWebAdapterHelper::CreateNWeb(void *enhanceSurfaceInfo, in CreateNWeb()
|
/base/web/webview/ohos_adapter/pre_dns_adapter/src/ |
D | nweb_pre_dns_adapter.cpp | 24 namespace OHOS::NWeb { namespace 36 OHOS::NWeb::OhosWebDnsDataBaseAdapter &dnsDatabaseAdapter = in PreDnsInThread() 37 OHOS::NWeb::OhosAdapterHelper::GetInstance().GetWebDnsDataBaseInstance(); in PreDnsInThread()
|
/base/web/webview/ |
D | .gitattributes | 1 ohos_nweb/prebuilts/arm/NWeb.hap filter=lfs diff=lfs merge=lfs -text 2 ohos_nweb/prebuilts/arm64/NWeb.hap filter=lfs diff=lfs merge=lfs -text
|
/base/web/webview/test/fuzztest/loadurl_fuzzer/ |
D | loadurl_fuzzer.cpp | 32 std::shared_ptr<OHOS::NWeb::NWeb> g_nweb = nullptr; 90 OHOS::NWeb::NWebInitArgs GetInitArgs() in GetInitArgs() 92 OHOS::NWeb::NWebInitArgs initArgs = { in GetInitArgs() 124 g_nweb = NWeb::NWebAdapterHelper::Instance().CreateNWeb( in DoSomethingInterestingWithMyAPI()
|
/base/web/webview/test/fuzztest/unregisterarkjsfunction_fuzzer/ |
D | unregisterarkjsfunction_fuzzer.cpp | 32 std::shared_ptr<OHOS::NWeb::NWeb> g_nweb = nullptr; 90 OHOS::NWeb::NWebInitArgs GetInitArgs() in GetInitArgs() 92 OHOS::NWeb::NWebInitArgs initArgs = { in GetInitArgs() 124 g_nweb = NWeb::NWebAdapterHelper::Instance().CreateNWeb( in DoSomethingInterestingWithMyAPI()
|
/base/web/webview/test/fuzztest/executejavascript_fuzzer/ |
D | executejavascript_fuzzer.cpp | 39 std::shared_ptr<OHOS::NWeb::NWeb> g_nweb = nullptr; 97 OHOS::NWeb::NWebInitArgs GetInitArgs() in GetInitArgs() 99 OHOS::NWeb::NWebInitArgs initArgs = { in GetInitArgs() 131 g_nweb = NWeb::NWebAdapterHelper::Instance().CreateNWeb( in DoSomethingInterestingWithMyAPI()
|
/base/web/webview/test/fuzztest/cannavigatebackorforward_fuzzer/ |
D | cannavigatebackorforward_fuzzer.cpp | 32 std::shared_ptr<OHOS::NWeb::NWeb> g_nweb = nullptr; 90 OHOS::NWeb::NWebInitArgs GetInitArgs() in GetInitArgs() 92 OHOS::NWeb::NWebInitArgs initArgs = { in GetInitArgs() 124 g_nweb = NWeb::NWebAdapterHelper::Instance().CreateNWeb( in DoSomethingInterestingWithMyAPI()
|
/base/web/webview/test/fuzztest/load_fuzzer/ |
D | load_fuzzer.cpp | 32 std::shared_ptr<OHOS::NWeb::NWeb> g_nweb = nullptr; 90 OHOS::NWeb::NWebInitArgs GetInitArgs() in GetInitArgs() 92 OHOS::NWeb::NWebInitArgs initArgs = { in GetInitArgs() 124 g_nweb = NWeb::NWebAdapterHelper::Instance().CreateNWeb( in DoSomethingInterestingWithMyAPI()
|
/base/web/webview/test/fuzztest/putbackgroundcolor_fuzzer/ |
D | putbackgroundcolor_fuzzer.cpp | 32 std::shared_ptr<OHOS::NWeb::NWeb> g_nweb = nullptr; 90 OHOS::NWeb::NWebInitArgs GetInitArgs() in GetInitArgs() 92 OHOS::NWeb::NWebInitArgs initArgs = { in GetInitArgs() 124 g_nweb = NWeb::NWebAdapterHelper::Instance().CreateNWeb( in DoSomethingInterestingWithMyAPI()
|