/base/web/webview/interfaces/kits/cj/src/ |
H A D | webview_javascript_result_callback.cpp | 99 const std::vector<std::string>& methodList, const std::string& objName) in AddNamedObject() 102 NamedObjectMap::iterator iter = namedObjects_.find(objName); in AddNamedObject() 116 namedObjects_[objName] = objectId; in AddNamedObject() 138 const std::string& objName, const std::vector<std::string>& methodList) in RegisterJavaScriptProxy() 140 JavaScriptOb::ObjectID objId = AddNamedObject(cjFuncs, methodList, objName); in RegisterJavaScriptProxy() 142 if (namedObjects_.find(objName) != namedObjects_.end() && objects_[namedObjects_[objName]]) { in RegisterJavaScriptProxy() 143 objects_[namedObjects_[objName]]->SetMethods(methodList); in RegisterJavaScriptProxy() 164 std::vector<std::shared_ptr<NWebValue>> args, const std::string& method, const std::string& objName, in GetJavaScriptResultSelf() 194 std::vector<std::shared_ptr<NWebValue>> args, const std::string& method, const std::string& objName, in GetJavaScriptResult() 97 AddNamedObject( const std::vector<std::function<char*(const char*)>>& cjFuncs, const std::vector<std::string>& methodList, const std::string& objName) AddNamedObject() argument 136 RegisterJavaScriptProxy( const std::vector<std::function<char*(const char*)>>& cjFuncs, const std::string& objName, const std::vector<std::string>& methodList) RegisterJavaScriptProxy() argument 163 GetJavaScriptResultSelf( std::vector<std::shared_ptr<NWebValue>> args, const std::string& method, const std::string& objName, int32_t routingId, int32_t objectId) GetJavaScriptResultSelf() argument 193 GetJavaScriptResult( std::vector<std::shared_ptr<NWebValue>> args, const std::string& method, const std::string& objName, int32_t routingId, int32_t objectId) GetJavaScriptResult() argument 314 GetJavaScriptResultSelfFlowbuf( std::vector<std::shared_ptr<NWebValue>> args, const std::string& method, const std::string& objName, int fd, int32_t routingId, int32_t objectId) GetJavaScriptResultSelfFlowbuf() argument 339 GetJavaScriptResultFlowbuf( std::vector<std::shared_ptr<NWebValue>> args, const std::string& method, const std::string& objName, int fd, int32_t routingId, int32_t objectId) GetJavaScriptResultFlowbuf() argument 383 DeleteJavaScriptRegister(const std::string &objName) DeleteJavaScriptRegister() argument [all...] |
H A D | webview_controller_impl.cpp | 760 const std::string& objName, const std::vector<std::string>& methodList) in RegisterJavaScriptProxy() 780 objId = javaScriptResultCb_->RegisterJavaScriptProxy(cjFuncs, objName, methodList); in RegisterJavaScriptProxy() 782 nweb_ptr->RegisterArkJSfunction(objName, methodList, objId); in RegisterJavaScriptProxy() 867 ErrCode WebviewControllerImpl::DeleteJavaScriptRegister(const std::string& objName, in DeleteJavaScriptRegister() argument 872 nweb_ptr->UnregisterArkJSfunction(objName, methodList); in DeleteJavaScriptRegister() 875 bool ret = javaScriptResultCb_->DeleteJavaScriptRegister(objName); in DeleteJavaScriptRegister() 759 RegisterJavaScriptProxy(const std::vector<std::function<char*(const char*)>>& cjFuncs, const std::string& objName, const std::vector<std::string>& methodList) RegisterJavaScriptProxy() argument
|
/base/web/webview/interfaces/kits/cj/include/ |
H A D | webview_javascript_result_callback.h | 131 const std::string& method, const std::string& objName, int32_t routingId, int32_t objectId) override; 134 const std::string& method, const std::string& objName, int fd, int32_t routingId, int32_t objectId) override; 150 const std::string& objName, const std::vector<std::string>& methodList); 156 bool DeleteJavaScriptRegister(const std::string &objName); 167 const std::vector<std::string>& methodList, const std::string& objName); 170 const std::string& method, const std::string& objName, int32_t routingId, int32_t objectId); 181 const std::string& method, const std::string& objName, int fd, int32_t routingId, int32_t objectId);
|
H A D | webview_controller_impl.h | 112 ErrCode DeleteJavaScriptRegister(const std::string& objName, 198 const std::string& objName, const std::vector<std::string>& methodList);
|
/base/time/time_service/framework/js/napi/system_timer/src/ |
H A D | timer_type.cpp | 22 void SetNamedPropertyByInteger(napi_env env, napi_value dstObj, int32_t objName, const char *propName) in SetNamedPropertyByInteger() argument 25 if (napi_create_int32(env, objName, &prop) == napi_ok) { in SetNamedPropertyByInteger()
|
/base/web/webview/interfaces/native/ |
H A D | native_interface_arkweb.h | 84 * @param objName The name of the registered object. 93 void OH_NativeArkWeb_RegisterJavaScriptProxy(const char* webTag, const char* objName, const char** methodList, 100 * @param objName The name of the registered object. 105 void OH_NativeArkWeb_UnregisterJavaScriptProxy(const char* webTag, const char* objName);
|
H A D | native_interface_arkweb.cpp | 73 void OH_NativeArkWeb_RegisterJavaScriptProxy(const char* webTag, const char* objName, const char** methodList, in OH_NativeArkWeb_RegisterJavaScriptProxy() argument 86 nweb->RegisterNativeArkJSFunction(objName, proxyCallbacks); in OH_NativeArkWeb_RegisterJavaScriptProxy() 95 void OH_NativeArkWeb_UnregisterJavaScriptProxy(const char* webTag, const char* objName) in OH_NativeArkWeb_UnregisterJavaScriptProxy() argument 100 nweb->UnRegisterNativeArkJSFunction(objName); in OH_NativeArkWeb_UnregisterJavaScriptProxy()
|
H A D | arkweb_type.h | 158 const char* objName; member 181 void (*deleteJavaScriptRegister)(const char* webTag, const char* objName);
|
/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webview/ |
H A D | ark_web_file_selector_params_wrapper.cpp | 59 std::string objName = ArkWebStringStructToClass(stName); in DefaultFilename() local 61 return objName; in DefaultFilename()
|
H A D | ark_web_preference_wrapper.cpp | 227 std::string objName = ArkWebStringStructToClass(stName); in FixedFontFamilyName() local 229 return objName; in FixedFontFamilyName() 245 std::string objName = ArkWebStringStructToClass(stName); in SerifFontFamilyName() local 247 return objName; in SerifFontFamilyName() 303 std::string objName = ArkWebStringStructToClass(stName); in CursiveFontFamilyName() local 305 return objName; in CursiveFontFamilyName() 321 std::string objName = ArkWebStringStructToClass(stName); in FantasyFontFamilyName() local 323 return objName; in FantasyFontFamilyName() 359 std::string objName = ArkWebStringStructToClass(stName); in StandardFontFamilyName() local 361 return objName; in StandardFontFamilyName() 377 std::string objName = ArkWebStringStructToClass(stName); SansSerifFontFamilyName() local [all...] |
H A D | ark_web_drag_data_wrapper.cpp | 116 std::string objName = ArkWebStringStructToClass(stName); in GetImageFileName() local 118 return objName; in GetImageFileName()
|
H A D | ark_web_nweb_wrapper.cpp | 901 const char* objName, const std::vector<std::shared_ptr<OHOS::NWeb::NWebJsProxyCallback>>& callbacks) in RegisterNativeArkJSFunction() 905 ark_web_nweb_->RegisterNativeArkJSFunction(objName, stJsProxyCallbackVector); in RegisterNativeArkJSFunction() 910 void ArkWebNWebWrapper::UnRegisterNativeArkJSFunction(const char* objName) in UnRegisterNativeArkJSFunction() argument 912 ark_web_nweb_->UnRegisterNativeArkJSFunction(objName); in UnRegisterNativeArkJSFunction() 900 RegisterNativeArkJSFunction( const char* objName, const std::vector<std::shared_ptr<OHOS::NWeb::NWebJsProxyCallback>>& callbacks) RegisterNativeArkJSFunction() argument
|
H A D | ark_web_nweb_wrapper.h | 839 const char* objName, const std::vector<std::shared_ptr<OHOS::NWeb::NWebJsProxyCallback>>& callbacks) override; 844 void UnRegisterNativeArkJSFunction(const char* objName) override;
|
/base/web/webview/interfaces/kits/napi/webviewcontroller/ |
H A D | webview_javascript_result_callback.h | 40 std::string objName; member 419 std::string objName; member 457 const std::string& method, const std::string& objName, int32_t routingId, int32_t objectId) override; 460 const std::string& method, const std::string& objName, int fd, int32_t routingId, int32_t objectId) override; 486 bool DeleteJavaScriptRegister(const std::string& objName); 499 JavaScriptOb::ObjectID AddNamedObject(napi_env env, napi_value& obj, const std::string& objName); 502 const std::string& method, const std::string& objName, int32_t routingId, int32_t objectId); 510 const std::string& method, const std::string& objName, int32_t routingId, int32_t objectId); 521 const std::string& method, const std::string& objName, int fd, int32_t routingId, int32_t objectId);
|
H A D | webview_javascript_result_callback.cpp | 947 std::vector<std::shared_ptr<NWebValue>> args, const std::string& method, const std::string& objName, in GetJavaScriptResultSelf() 1001 std::vector<std::shared_ptr<NWebValue>> args, const std::string& method, const std::string& objName, in GetJavaScriptResult() 1004 (void)objName; // to be compatible with older webcotroller, classname may be empty in GetJavaScriptResult() 1006 "GetJavaScriptResult objName = %{public}s, method = %{public}s, " in GetJavaScriptResult() 1008 objName.c_str(), method.c_str(), routingId, objectId); in GetJavaScriptResult() 1021 return GetJavaScriptResultSelf(args, method, objName, routingId, objectId); in GetJavaScriptResult() 1024 return PostGetJavaScriptResultToJsThread(args, method, objName, routingId, objectId); in GetJavaScriptResult() 1161 std::vector<std::shared_ptr<NWebValue>> args, const std::string& method, const std::string& objName, int fd, in GetJavaScriptResultSelfFlowbuf() 1197 std::vector<std::shared_ptr<NWebValue>> args, const std::string& method, const std::string& objName, int fd, in GetJavaScriptResultFlowbuf() 1200 (void)objName; // t in GetJavaScriptResultFlowbuf() 946 GetJavaScriptResultSelf( std::vector<std::shared_ptr<NWebValue>> args, const std::string& method, const std::string& objName, int32_t routingId, int32_t objectId) GetJavaScriptResultSelf() argument 1000 GetJavaScriptResult( std::vector<std::shared_ptr<NWebValue>> args, const std::string& method, const std::string& objName, int32_t routingId, int32_t objectId) GetJavaScriptResult() argument 1160 GetJavaScriptResultSelfFlowbuf( std::vector<std::shared_ptr<NWebValue>> args, const std::string& method, const std::string& objName, int fd, int32_t routingId, int32_t objectId) GetJavaScriptResultSelfFlowbuf() argument 1196 GetJavaScriptResultFlowbuf( std::vector<std::shared_ptr<NWebValue>> args, const std::string& method, const std::string& objName, int fd, int32_t routingId, int32_t objectId) GetJavaScriptResultFlowbuf() argument 1246 PostGetJavaScriptResultToJsThread( std::vector<std::shared_ptr<NWebValue>> args, const std::string& method, const std::string& objName, int32_t routingId, int32_t objectId) PostGetJavaScriptResultToJsThread() argument 1707 AddNamedObject( napi_env env, napi_value& obj, const std::string& objName) AddNamedObject() argument 1787 DeleteJavaScriptRegister(const std::string& objName) DeleteJavaScriptRegister() argument [all...] |
H A D | webview_controller.cpp | 192 param.objName = it->first; in InnerCompleteWindowNew() 888 ErrCode WebviewController::DeleteJavaScriptRegister(const std::string& objName, in DeleteJavaScriptRegister() argument 893 nweb_ptr->UnregisterArkJSfunction(objName, methodList); in DeleteJavaScriptRegister() 897 bool ret = javaScriptResultCb_->DeleteJavaScriptRegister(objName); in DeleteJavaScriptRegister() 951 param_tmp.objName = param.objName; in RegisterJavaScriptProxy() 957 nweb_ptr->RegisterArkJSfunction(param_tmp.objName, param_tmp.syncMethodList, in RegisterJavaScriptProxy()
|
/base/time/time_service/framework/js/napi/common/src/ |
H A D | napi_utils.cpp | 46 napi_value NapiUtils::CreateNapiNumber(napi_env env, int32_t objName) in CreateNapiNumber() argument 49 napi_create_int32(env, objName, &prop); in CreateNapiNumber()
|
/base/time/time_service/framework/js/napi/common/include/ |
H A D | napi_utils.h | 145 static napi_value CreateNapiNumber(napi_env env, int32_t objName);
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/ |
H A D | constant.cpp | 22 void SetNamedPropertyByInteger(napi_env env, napi_value dstObj, int32_t objName, const char *propName) in SetNamedPropertyByInteger() argument 25 if (napi_create_int32(env, objName, &prop) == napi_ok) { in SetNamedPropertyByInteger()
|
/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/include/ |
H A D | ark_web_nweb.h | 964 virtual void RegisterNativeArkJSFunction(const char* objName, const ArkWebJsProxyCallbackVector& callbacks) = 0; 970 virtual void UnRegisterNativeArkJSFunction(const char* objName) = 0;
|
/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webcore/ |
H A D | ark_web_nweb_impl.h | 827 void RegisterNativeArkJSFunction(const char* objName, const ArkWebJsProxyCallbackVector& callbacks) override; 832 void UnRegisterNativeArkJSFunction(const char* objName) override;
|
H A D | ark_web_nweb_impl.cpp | 768 void ArkWebNWebImpl::RegisterNativeArkJSFunction(const char* objName, const ArkWebJsProxyCallbackVector& callbacks) in RegisterNativeArkJSFunction() argument 770 nweb_nweb_->RegisterNativeArkJSFunction(objName, ArkWebJsProxyCallbackVectorStructToClass(callbacks)); in RegisterNativeArkJSFunction() 773 void ArkWebNWebImpl::UnRegisterNativeArkJSFunction(const char* objName) in UnRegisterNativeArkJSFunction() argument 775 nweb_nweb_->UnRegisterNativeArkJSFunction(objName); in UnRegisterNativeArkJSFunction()
|
/base/notification/common_event_service/interfaces/kits/napi/support/src/ |
H A D | support.cpp | 21 void SetNamedPropertyByStr(napi_env env, napi_value dstObj, const std::string &objName, const char *propName) in SetNamedPropertyByStr() argument 24 if (napi_create_string_utf8(env, objName.c_str(), NAPI_AUTO_LENGTH, &prop) == napi_ok) { in SetNamedPropertyByStr()
|
/base/web/webview/ohos_interface/include/ohos_nweb/ |
H A D | nweb.h | 1052 const char* objName, const std::vector<std::shared_ptr<NWebJsProxyCallback>>& callbacks) = 0; 1057 virtual void UnRegisterNativeArkJSFunction(const char* objName) = 0;
|
/base/account/os_account/interfaces/kits/napi/appaccount/include/ |
H A D | napi_app_account_common.h | 252 void SetNamedProperty(napi_env env, napi_value dstObj, const char *objName, const char *propName);
|