Home
last modified time | relevance | path

Searched refs:NWeb (Results 1 – 25 of 313) sorted by relevance

12345678910>>...13

/base/web/webview/ohos_adapter/display_manager_adapter/src/
Ddisplay_manager_adapter_impl.cpp22 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/
Ddisplay_manager_adapter_impl_test.cpp27 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/
Dnweb_adapter_helper.h26 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,
Dnweb_window_adapter.h28 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);
Dnweb_helper.h28 namespace OHOS::NWeb {
36 std::shared_ptr<NWeb> CreateNWeb(const NWebCreateInfo &create_info);
40 std::weak_ptr<NWeb> GetNWeb(int32_t nweb_id);
Dnweb_input_event_consumer.h27 namespace OHOS::NWeb {
30 explicit NWebInputEventConsumer(std::shared_ptr<NWeb> nweb);
41 std::weak_ptr<NWeb> nwebweak_;
Dnweb_adapter_common.h23 namespace OHOS::NWeb {
31 std::weak_ptr<NWeb> nwebWeak;
Dnweb_save_cookie_callback.h21 namespace OHOS::NWeb {
22 class NWebSaveCookieCallback : public OHOS::NWeb::NWebValueCallback<bool> {
/base/web/webview/test/ohos_nweb/
Dnweb_javascript_result_callback_test.h28 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,
Dnweb_handler_impl_test_for_intercept.h21 namespace OHOS::NWeb {
26 void SetNWeb(std::shared_ptr<NWeb> nweb) override;
30 std::weak_ptr<NWeb> nwebweak_;
Dnweb_input_event_consumer_test.h26 namespace OHOS::NWeb {
29 explicit NWebInputEventConsumerTest(std::shared_ptr<NWeb> nweb);
40 std::weak_ptr<NWeb> nwebweak_;
Dohos_nweb_test.cpp50 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 …]
Dnweb_js_dialog_impl_test.h21 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/
Dnapi_web_cookie_manager.cpp32 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/
Dexecutejavascriptcode_fuzzer.cpp40 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/
Dnet_connect_adapter_test.cpp24 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/
Dnweb_helper.cpp54 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/
Dnweb_pre_dns_adapter.cpp24 namespace OHOS::NWeb { namespace
36 OHOS::NWeb::OhosWebDnsDataBaseAdapter &dnsDatabaseAdapter = in PreDnsInThread()
37 OHOS::NWeb::OhosAdapterHelper::GetInstance().GetWebDnsDataBaseInstance(); in PreDnsInThread()
/base/web/webview/
D.gitattributes1 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/
Dloadurl_fuzzer.cpp32 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/
Dunregisterarkjsfunction_fuzzer.cpp32 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/
Dexecutejavascript_fuzzer.cpp39 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/
Dcannavigatebackorforward_fuzzer.cpp32 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/
Dload_fuzzer.cpp32 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/
Dputbackgroundcolor_fuzzer.cpp32 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()

12345678910>>...13