Home
last modified time | relevance | path

Searched refs:webTag (Results 1 – 25 of 38) sorted by relevance

12

/ohos5.0/base/web/webview/interfaces/native/
H A Dnative_interface_arkweb.cpp66 WVLOG_I("native RunJavaScript webTag: %{public}s", webTag); in OH_NativeArkWeb_RunJavaScript()
69 WVLOG_E("native RunJavaScript get nweb null: %{public}s", webTag); in OH_NativeArkWeb_RunJavaScript()
108 WVLOG_I("native RegisterDestroyCallback, webTag: %{public}s", webTag); in OH_NativeArkWeb_SetDestroyCallback()
110 g_destroyMap[webTag] = callback; in OH_NativeArkWeb_SetDestroyCallback()
114 nweb->RegisterNativeDestroyCallback(webTag, callback); in OH_NativeArkWeb_SetDestroyCallback()
125 if ((iter = g_destroyMap.find(webTag)) != g_destroyMap.end()) { in OH_NativeArkWeb_GetDestroyCallback()
133 WVLOG_I("native RegisterValidCallback, webTag: %{public}s", webTag); in OH_NativeArkWeb_SetJavaScriptProxyValidCallback()
135 g_validMap[webTag] = callback; in OH_NativeArkWeb_SetJavaScriptProxyValidCallback()
139 nweb->RegisterNativeValideCallback(webTag, callback); in OH_NativeArkWeb_SetJavaScriptProxyValidCallback()
147 WVLOG_I("native OH_Web_GetValidCallback, webTag: %{public}s", webTag); in OH_NativeArkWeb_GetJavaScriptProxyValidCallback()
[all …]
H A Darkweb_type.h84 const char* webTag, const ArkWeb_JavaScriptBridgeData* data, void* userData);
99 typedef void (*ArkWeb_OnComponentCallback)(const char* webTag, void* userData);
177 void (*runJavaScript)(const char* webTag, const ArkWeb_JavaScriptObject* javascriptObject);
179 void (*registerJavaScriptProxy)(const char* webTag, const ArkWeb_ProxyObject* proxyObject);
181 void (*deleteJavaScriptRegister)(const char* webTag, const char* objName);
183 void (*refresh)(const char* webTag);
193 ArkWeb_WebMessagePortPtr* (*createWebMessagePorts)(const char* webTag, size_t* size);
239 void (*onPageBegin)(const char* webTag, ArkWeb_OnComponentCallback callback, void* userData);
241 void (*onPageEnd)(const char* webTag, ArkWeb_OnComponentCallback callback, void* userData);
243 void (*onDestroy)(const char* webTag, ArkWeb_OnComponentCallback callback, void* userData);
[all …]
H A Dnative_interface_arkweb.h78 void OH_NativeArkWeb_RunJavaScript(const char* webTag, const char* jsCode, NativeArkWeb_OnJavaScrip…
93 void OH_NativeArkWeb_RegisterJavaScriptProxy(const char* webTag, const char* objName, const char** …
105 void OH_NativeArkWeb_UnregisterJavaScriptProxy(const char* webTag, const char* objName);
116 void OH_NativeArkWeb_SetJavaScriptProxyValidCallback(const char* webTag, NativeArkWeb_OnValidCallba…
127 NativeArkWeb_OnValidCallback OH_NativeArkWeb_GetJavaScriptProxyValidCallback(const char* webTag);
138 void OH_NativeArkWeb_SetDestroyCallback(const char* webTag, NativeArkWeb_OnDestroyCallback callback…
149 NativeArkWeb_OnDestroyCallback OH_NativeArkWeb_GetDestroyCallback(const char* webTag);
H A Dnative_arkweb_utils.cpp29 void OH_NativeArkWeb_BindWebTagToWebInstance(const char* webTag, std::weak_ptr<OHOS::NWeb::NWeb> nw… in OH_NativeArkWeb_BindWebTagToWebInstance() argument
31 WVLOG_I("native OH_NativeArkWeb_BindWebTagToWebInstance webTag: %{public}s", webTag); in OH_NativeArkWeb_BindWebTagToWebInstance()
32 g_nwebMap[webTag] = nwebPtr; in OH_NativeArkWeb_BindWebTagToWebInstance()
35 std::weak_ptr<OHOS::NWeb::NWeb> OH_NativeArkWeb_GetWebInstanceByWebTag(const char* webTag) in OH_NativeArkWeb_GetWebInstanceByWebTag() argument
37 if (!webTag) { in OH_NativeArkWeb_GetWebInstanceByWebTag()
40 return g_nwebMap[webTag]; in OH_NativeArkWeb_GetWebInstanceByWebTag()
H A Dnative_arkweb_utils.h22 void OH_NativeArkWeb_BindWebTagToWebInstance(const char* webTag, std::weak_ptr<OHOS::NWeb::NWeb> nw…
23 std::weak_ptr<OHOS::NWeb::NWeb> OH_NativeArkWeb_GetWebInstanceByWebTag(const char* webTag);
H A Darkweb_scheme_handler.h565 bool OH_ArkWeb_SetSchemeHandler(const char* scheme, const char* webTag, ArkWeb_SchemeHandler* schem…
584 int32_t OH_ArkWeb_ClearSchemeHandlers(const char* webTag);
H A Darkweb_scheme_handler.cpp432 bool OH_ArkWeb_SetSchemeHandler(const char* scheme, const char* webTag, ArkWeb_SchemeHandler* schem… in OH_ArkWeb_SetSchemeHandler() argument
446 return g_SchemeHandlerApi->impl_OH_ArkWeb_SetSchemeHandler(scheme, webTag, schemeHandler); in OH_ArkWeb_SetSchemeHandler()
466 int32_t OH_ArkWeb_ClearSchemeHandlers(const char* webTag) in OH_ArkWeb_ClearSchemeHandlers() argument
473 return g_SchemeHandlerApi->impl_OH_ArkWeb_ClearSchemeHandlers(webTag); in OH_ArkWeb_ClearSchemeHandlers()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkweb/
H A D_ark_web___controller_a_p_i.md21 | void(\* [runJavaScript](#runjavascript) )(const char \*webTag, const [ArkWeb_JavaScriptObject](_a…
24 | void(\* [refresh](#refresh) )(const char \*webTag) | 刷新当前网页。 |
38 ArkWeb_WebMessagePortPtr*(* ArkWeb_ControllerAPI::createWebMessagePorts) (const char *webTag, size_…
48 | webTag | Web组件名字。 |
59 void(* ArkWeb_ControllerAPI::deleteJavaScriptRegister) (const char *webTag, const char *objName)
112 | webTag | Web组件名字。 |
120 …执行成功。 [ARKWEB_INVALID_PARAM](_web.md) 参数无效。 [ARKWEB_INIT_ERROR](_web.md) 初始化失败,没有找到与webTag绑定的Web组件。
126 void(* ArkWeb_ControllerAPI::refresh) (const char *webTag)
136 void(* ArkWeb_ControllerAPI::registerAsyncJavaScriptProxy) (const char *webTag, const ArkWeb_ProxyO…
146 void(* ArkWeb_ControllerAPI::registerJavaScriptProxy) (const char *webTag, const ArkWeb_ProxyObject…
[all …]
H A D_ark_web___web_message_port_a_p_i.md21 …ePortPtr](_web.md#arkweb_webmessageportptr) webMessagePort, const char \*webTag, const [ArkWeb_Web…
22 …essagePortPtr](_web.md#arkweb_webmessageportptr) webMessagePort, const char \*webTag) | 关闭消息端口。 |
23 …ePortPtr](_web.md#arkweb_webmessageportptr) webMessagePort, const char \*webTag, [ArkWeb_OnMessage…
32 …rkWeb_WebMessagePortAPI::close) (const ArkWeb_WebMessagePortPtr webMessagePort, const char *webTag)
43 | webTag | Web组件名字。 |
49 …postMessage) (const ArkWeb_WebMessagePortPtr webMessagePort, const char *webTag, const ArkWeb_WebM…
60 | webTag | Web组件名字。 |
65 …执行成功。 [ARKWEB_INVALID_PARAM](_web.md) 参数无效。 [ARKWEB_INIT_ERROR](_web.md) 初始化失败,没有找到与webTag绑定的Web组件。
71 …ventHandler) (const ArkWeb_WebMessagePortPtr webMessagePort, const char *webTag, ArkWeb_OnMessageE…
82 | webTag | Web组件名字。 |
H A D_ark_web___component_a_p_i.md21 | void(\* [onControllerAttached](#oncontrollerattached) )(const char \*webTag, [ArkWeb_OnComponentC…
22 | void(\* [onPageBegin](#onpagebegin) )(const char \*webTag, [ArkWeb_OnComponentCallback](_web.md#a…
23 | void(\* [onPageEnd](#onpageend) )(const char \*webTag, [ArkWeb_OnComponentCallback](_web.md#arkwe…
24 | void(\* [onDestroy](#ondestroy) )(const char \*webTag, [ArkWeb_OnComponentCallback](_web.md#arkwe…
33 void(* ArkWeb_ComponentAPI::onControllerAttached) (const char *webTag, ArkWeb_OnComponentCallback c…
43 void(* ArkWeb_ComponentAPI::onDestroy) (const char *webTag, ArkWeb_OnComponentCallback callback, vo…
53 void(* ArkWeb_ComponentAPI::onPageBegin) (const char *webTag, ArkWeb_OnComponentCallback callback, …
63 void(* ArkWeb_ComponentAPI::onPageEnd) (const char *webTag, ArkWeb_OnComponentCallback callback, vo…
H A Dnative__interface__arkweb_8h.md36 | void [OH_NativeArkWeb_RunJavaScript](_web.md#oh_nativearkweb_runjavascript) (const char \*webTag,…
37 …iptProxy](_web.md#oh_nativearkweb_registerjavascriptproxy) (const char \*webTag, const char \*objN…
38 …tProxy](_web.md#oh_nativearkweb_unregisterjavascriptproxy) (const char \*webTag, const char \*objN…
39 …](_web.md#oh_nativearkweb_setjavascriptproxyvalidcallback) (const char \*webTag, [NativeArkWeb_OnV…
40 …](_web.md#oh_nativearkweb_getjavascriptproxyvalidcallback) (const char \*webTag) | 获取已注册的对象可注册时的回调…
41 …stroyCallback](_web.md#oh_nativearkweb_setdestroycallback) (const char \*webTag, [NativeArkWeb_OnD…
42 …stroyCallback](_web.md#oh_nativearkweb_getdestroycallback) (const char \*webTag) | 获取已注册的组件销毁时的回调函…
H A D_web.md356 | webTag | Web组件名字。 |
975 int32_t OH_ArkWeb_ClearSchemeHandlers (const char * webTag)
989 | webTag | Web组件的标签名称,用于标识某个唯一组件,由开发者来保证名称唯一性。 |
1191 | webTag | Web组件的标签名称,用于标识某个唯一组件,由开发者来保证名称唯一性。 |
2454 | webTag | Web组件的名称。 |
2478 | webTag | Web组件的名称。 |
2502 | webTag | Web组件的名称。 |
2527 | webTag | Web组件的名称。 |
2549 | webTag | Web组件的名称。 |
2570 | webTag | Web组件的名称。 |
[all …]
H A Darkweb__type_8h.md51 …nJavaScriptCallback](_web.md#arkweb_onjavascriptcallback)) (const char \*webTag, const [ArkWeb_Jav…
52 …tProxyCallback](_web.md#arkweb_onjavascriptproxycallback)) (const char \*webTag, const [ArkWeb_Jav…
53 …_OnComponentCallback](_web.md#arkweb_oncomponentcallback)) (const char \*webTag, void \*userData) …
55 …essageEventHandler](_web.md#arkweb_onmessageeventhandler)) (const char \*webTag, const [ArkWeb_Web…
/ohos5.0/docs/zh-cn/application-dev/web/
H A Darkweb-ndk-jsbridge.md23 * ArkWeb组件声明在ArkTS侧,需要用户自定义一个标识webTag,并将webTag通过Node-API传至应用Native侧,后续ArkWeb Native接口使用,均需webTag作为对…
28 // 自定义webTag,在WebviewController创建时作为入参传入,建立controller与webTag的映射关系
29 webTag: string = 'ArkWeb1';
44 // 解析存储webTag
50 // 获取第一个参数webTag
58 // 将webTag保存在实例对象中
482 // 解析存储webTag
488 // 获取第一个参数webTag
496 // 将webTag保存在实例对象中
515 // 获取第一个参数webTag
[all …]
H A Darkweb-ndk-page-data-channel.md21 - ArkWeb组件声明在ArkTS侧,需要用户自定义一个标识webTag,并将webTag通过Node-API传至应用C++侧。后续ArkWeb Native接口使用时,均需webTag作为对应组…
27 // 自定义webTag,在WebviewController创建时作为入参传入,建立controller与webTag的映射关系
526 // 获取第一个参数webTag
557 // 获取第一个参数webTag
582 // 获取第一个参数webTag
625 // 获取第一个参数webTag
670 // 获取第一个参数webTag
696 // 获取第一个参数webTag
727 // 获取第一个参数webTag
758 // 获取第一个参数webTag
[all …]
/ohos5.0/docs/en/application-dev/web/
H A Darkweb-ndk-jsbridge.md29 webTag: string = 'ArkWeb1';
36 testNapi.nativeWebInit(this.webTag);
44 // Parse and store the webTag.
50 // Obtain the first parameter webTag.
242 webTag: string = 'ArkWeb1';
249 testNapi.nativeWebInit(this.webTag);
350 …Print(LOG_APP, LOG_INFO, LOG_PRINT_DOMAIN, "ArkWeb", "ndk ProxyMethod1 webTag:%{public}s", webTag);
364 …Print(LOG_APP, LOG_INFO, LOG_PRINT_DOMAIN, "ArkWeb", "ndk ProxyMethod2 webTag:%{public}s", webTag);
482 // Parse and store the webTag.
598 JSBridgeObject::JSBridgeObject(const char *webTag) : webTag_(webTag) {}
[all …]
H A Darkweb-ndk-page-data-channel.md28 webTag: string = 'ArkWeb1';
35 testNapi.nativeWebInit(this.webTag);
200 @State webTag: string = 'postMessage';
207 testNapi.nativeWebInit(this.webTag);
508 "ndk WebMesagePortCallback webTag:%{public}s,messageType:%{public}d", webTag,
526 // Obtain the first parameter webTag.
557 // Obtain the first parameter webTag.
582 // Obtain the first parameter webTag.
624 // Obtain the first parameter webTag.
659 void setHandler(const char *webTag) {
[all …]
/ohos5.0/docs/en/application-dev/reference/apis-arkweb/
H A D_ark_web___controller_a_p_i.md21 | void(\* [runJavaScript](#runjavascript) )(const char \*webTag, const [ArkWeb_JavaScriptObject](_a…
24 | void(\* [refresh](#refresh) )(const char \*webTag) | Pointer to the function used to refresh the …
38 ArkWeb_WebMessagePortPtr*(* ArkWeb_ControllerAPI::createWebMessagePorts) (const char *webTag, size_…
48 | webTag | Name of a **Web** component. |
59 void(* ArkWeb_ControllerAPI::deleteJavaScriptRegister) (const char *webTag, const char *objName)
102 ArkWeb_ErrorCode(* ArkWeb_ControllerAPI::postWebMessage) (const char *webTag, const char *name, Ark…
112 | webTag | Name of a **Web** component. |
126 void(* ArkWeb_ControllerAPI::refresh) (const char *webTag)
136 void(* ArkWeb_ControllerAPI::registerAsyncJavaScriptProxy) (const char *webTag, const ArkWeb_ProxyO…
146 void(* ArkWeb_ControllerAPI::registerJavaScriptProxy) (const char *webTag, const ArkWeb_ProxyObject…
[all …]
H A D_ark_web___web_message_port_a_p_i.md21 …ePortPtr](_web.md#arkweb_webmessageportptr) webMessagePort, const char \*webTag, const [ArkWeb_Web…
22 …ePortPtr](_web.md#arkweb_webmessageportptr) webMessagePort, const char \*webTag) | Pointer to the …
23 …ePortPtr](_web.md#arkweb_webmessageportptr) webMessagePort, const char \*webTag, [ArkWeb_OnMessage…
32 …rkWeb_WebMessagePortAPI::close) (const ArkWeb_WebMessagePortPtr webMessagePort, const char *webTag)
43 | webTag | Name of a **Web** component. |
49 …postMessage) (const ArkWeb_WebMessagePortPtr webMessagePort, const char *webTag, const ArkWeb_WebM…
60 | webTag | Name of a **Web** component. |
71 …ventHandler) (const ArkWeb_WebMessagePortPtr webMessagePort, const char *webTag, ArkWeb_OnMessageE…
82 | webTag | Name of a **Web** component. |
H A D_ark_web___component_a_p_i.md21 | void(\* [onControllerAttached](#oncontrollerattached) )(const char \*webTag, [ArkWeb_OnComponentC…
22 | void(\* [onPageBegin](#onpagebegin) )(const char \*webTag, [ArkWeb_OnComponentCallback](_web.md#a…
23 | void(\* [onPageEnd](#onpageend) )(const char \*webTag, [ArkWeb_OnComponentCallback](_web.md#arkwe…
24 | void(\* [onDestroy](#ondestroy) )(const char \*webTag, [ArkWeb_OnComponentCallback](_web.md#arkwe…
33 void(* ArkWeb_ComponentAPI::onControllerAttached) (const char *webTag, ArkWeb_OnComponentCallback c…
43 void(* ArkWeb_ComponentAPI::onDestroy) (const char *webTag, ArkWeb_OnComponentCallback callback, vo…
53 void(* ArkWeb_ComponentAPI::onPageBegin) (const char *webTag, ArkWeb_OnComponentCallback callback, …
63 void(* ArkWeb_ComponentAPI::onPageEnd) (const char *webTag, ArkWeb_OnComponentCallback callback, vo…
H A Dnative__interface__arkweb_8h.md36 | void [OH_NativeArkWeb_RunJavaScript](_web.md#oh_nativearkweb_runjavascript) (const char \*webTag,…
37 …iptProxy](_web.md#oh_nativearkweb_registerjavascriptproxy) (const char \*webTag, const char \*objN…
38 …tProxy](_web.md#oh_nativearkweb_unregisterjavascriptproxy) (const char \*webTag, const char \*objN…
39 …](_web.md#oh_nativearkweb_setjavascriptproxyvalidcallback) (const char \*webTag, [NativeArkWeb_OnV…
40 …](_web.md#oh_nativearkweb_getjavascriptproxyvalidcallback) (const char \*webTag) | Obtains the cal…
41 …stroyCallback](_web.md#oh_nativearkweb_setdestroycallback) (const char \*webTag, [NativeArkWeb_OnD…
42 …stroyCallback](_web.md#oh_nativearkweb_getdestroycallback) (const char \*webTag) | Obtains the cal…
H A Darkweb__type_8h.md51 …nJavaScriptCallback](_web.md#arkweb_onjavascriptcallback)) (const char \*webTag, const [ArkWeb_Jav…
52 …tProxyCallback](_web.md#arkweb_onjavascriptproxycallback)) (const char \*webTag, const [ArkWeb_Jav…
53 …_OnComponentCallback](_web.md#arkweb_oncomponentcallback)) (const char \*webTag, void \*userData) …
55 …essageEventHandler](_web.md#arkweb_onmessageeventhandler)) (const char \*webTag, const [ArkWeb_Web…
H A D_web.md308 typedef void(* ArkWeb_OnComponentCallback) (const char *webTag, void *userData)
356 | webTag | Name of a **Web** component. |
975 int32_t OH_ArkWeb_ClearSchemeHandlers (const char * webTag)
2440 NativeArkWeb_OnDestroyCallback OH_NativeArkWeb_GetDestroyCallback (const char * webTag)
2454 | webTag | The name of a **Web** component. |
2478 | webTag | The name of a **Web** component. |
2502 | webTag | The name of a **Web** component. |
2527 | webTag | The name of a **Web** component. |
2549 | webTag | The name of a **Web** component. |
2570 | webTag | The name of a **Web** component. |
[all …]
/ohos5.0/docs/zh-cn/application-dev/performance/
H A Dperformance-web-import.md679 webTag: string = 'ArkWeb1';
686 testNapi.nativeWebInit(this.webTag);
723 // 获取第一个参数 webTag
1129 static void ProxyMethod1(const char* webTag, void* userData) {
1130 … OH_LOG_Print(LOG_APP, LOG_INFO, LOG_PRINT_DOMAIN, "ArkWeb", "Method1 webTag :%{public}s",webTag);
1133 static void ProxyMethod2(const char* webTag, void* userData) {
1134 … OH_LOG_Print(LOG_APP, LOG_INFO, LOG_PRINT_DOMAIN, "ArkWeb", "Method2 webTag :%{public}s",webTag);
1138 … OH_LOG_Print(LOG_APP, LOG_INFO, LOG_PRINT_DOMAIN, "ArkWeb", "Method3 webTag :%{public}s",webTag);
1141 void RegisterCallback(const char *webTag) {
1172 ctrlApi->registerJavaScriptProxy(webTag, &obj);
[all …]
/ohos5.0/base/web/webview/interfaces/kits/cj/include/
H A Dwebview_controller_impl.h60 explicit WebviewControllerImpl(const std::string& webTag) : webTag_(webTag) in WebviewControllerImpl() argument

12