Home
last modified time | relevance | path

Searched refs:objName (Results 1 – 13 of 13) sorted by relevance

/base/web/webview/interfaces/kits/napi/webviewcontroller/
Dwebview_javascript_result_callback.cpp73 const std::string& objName) in GetJavaScriptResult() argument
76 method.c_str(), objName.c_str()); in GetJavaScriptResult()
79 if (objectMap_.find(objName) == objectMap_.end()) { in GetJavaScriptResult()
82 JavaScriptObj jsObj = objectMap_[objName]; in GetJavaScriptResult()
128 const std::string& objName, const std::vector<std::string>& methodList) in RegisterJavaScriptProxy() argument
130 if (objectMap_.find(objName) != objectMap_.end()) { in RegisterJavaScriptProxy()
131 WVLOG_I("object already exists, objName = %{public}s", objName.c_str()); in RegisterJavaScriptProxy()
157 objectMap_[objName] = jsObj; in RegisterJavaScriptProxy()
160 bool WebviewJavaScriptResultCallBack::DeleteJavaScriptRegister(const std::string& objName) in DeleteJavaScriptRegister() argument
162 if (objectMap_.find(objName) == objectMap_.end()) { in DeleteJavaScriptRegister()
[all …]
Dwebview_javascript_result_callback.h45 const std::string& method, const std::string& objName) override;
47 void RegisterJavaScriptProxy(napi_env env, napi_value obj, const std::string& objName,
50 bool DeleteJavaScriptRegister(const std::string& objName);
Dwebview_controller.h142 const std::string& objName, const std::vector<std::string>& methodList);
144 ErrCode DeleteJavaScriptRegister(const std::string& objName,
Dwebview_controller.cpp631 ErrCode WebviewController::DeleteJavaScriptRegister(const std::string& objName, in DeleteJavaScriptRegister() argument
636 nweb_ptr->UnregisterArkJSfunction(objName, methodList); in DeleteJavaScriptRegister()
640 bool ret = javaScriptResultCb_->DeleteJavaScriptRegister(objName); in DeleteJavaScriptRegister()
661 const std::string& objName, const std::vector<std::string>& methodList) in RegisterJavaScriptProxy() argument
668 javaScriptResultCb_->RegisterJavaScriptProxy(env, obj, objName, methodList); in RegisterJavaScriptProxy()
670 nweb_ptr->RegisterArkJSfunction(objName, methodList); in RegisterJavaScriptProxy()
Dnapi_webview_controller.cpp309 std::string objName; in InnerJsProxy() local
311 if (!NapiParseUtils::ParseString(env, argv[INTEGER_ONE], objName) || in InnerJsProxy()
324 controller->RegisterJavaScriptProxy(env, argv[INTEGER_ZERO], objName, methodList); in InnerJsProxy()
1575 std::string objName; in RegisterJavaScriptProxy() local
1576 if (!NapiParseUtils::ParseString(env, argv[INTEGER_ONE], objName)) { in RegisterJavaScriptProxy()
1594 controller->RegisterJavaScriptProxy(env, argv[INTEGER_ZERO], objName, methodList); in RegisterJavaScriptProxy()
1611 std::string objName; in DeleteJavaScriptRegister() local
1612 if (!NapiParseUtils::ParseString(env, argv[INTEGER_ZERO], objName)) { in DeleteJavaScriptRegister()
1623 ErrCode ret = controller->DeleteJavaScriptRegister(objName, {}); in DeleteJavaScriptRegister()
/base/time/time_service/framework/js/napi/system_timer/src/
Dtimer_type.cpp22 void SetNamedPropertyByInteger(napi_env env, napi_value dstObj, int32_t objName, const char *propNa… in SetNamedPropertyByInteger() argument
25 if (napi_create_int32(env, objName, &prop) == napi_ok) { in SetNamedPropertyByInteger()
/base/time/time_service/framework/js/napi/common/src/
Dnapi_utils.cpp42 napi_value NapiUtils::CreateNapiNumber(napi_env env, int32_t objName) in CreateNapiNumber() argument
45 napi_create_int32(env, objName, &prop); in CreateNapiNumber()
/base/notification/distributed_notification_service/frameworks/js/napi/src/
Dconstant.cpp22 void SetNamedPropertyByInteger(napi_env env, napi_value dstObj, int32_t objName, const char *propNa… in SetNamedPropertyByInteger() argument
25 if (napi_create_int32(env, objName, &prop) == napi_ok) { in SetNamedPropertyByInteger()
/base/time/time_service/framework/js/napi/common/include/
Dnapi_utils.h141 static napi_value CreateNapiNumber(napi_env env, int32_t objName);
/base/notification/common_event_service/interfaces/kits/napi/common_event/src/
Dsupport.cpp21 void SetNamedPropertyByStr(napi_env env, napi_value dstObj, const std::string &objName, const char … in SetNamedPropertyByStr() argument
24 if (napi_create_string_utf8(env, objName.c_str(), NAPI_AUTO_LENGTH, &prop) == napi_ok) { in SetNamedPropertyByStr()
/base/notification/common_event_service/interfaces/kits/napi/napi_common_event/src/
Dsupport.cpp21 void SetNamedPropertyByStr(napi_env env, napi_value dstObj, const std::string &objName, const char … in SetNamedPropertyByStr() argument
24 if (napi_create_string_utf8(env, objName.c_str(), NAPI_AUTO_LENGTH, &prop) == napi_ok) { in SetNamedPropertyByStr()
/base/account/os_account/interfaces/kits/napi/appaccount/include/
Dnapi_app_account_common.h232 void SetNamedProperty(napi_env env, napi_value dstObj, const char *objName, const char *propName);
/base/account/os_account/interfaces/kits/napi/appaccount/src/
Dnapi_app_account_common.cpp340 void SetNamedProperty(napi_env env, napi_value dstObj, const char *objName, const char *propName) in SetNamedProperty() argument
343 napi_create_string_utf8(env, objName, NAPI_AUTO_LENGTH, &prop); in SetNamedProperty()