/base/web/webview/interfaces/kits/napi/webviewcontroller/ |
D | webview_javascript_result_callback.cpp | 73 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 …]
|
D | webview_javascript_result_callback.h | 45 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);
|
D | webview_controller.h | 142 const std::string& objName, const std::vector<std::string>& methodList); 144 ErrCode DeleteJavaScriptRegister(const std::string& objName,
|
D | webview_controller.cpp | 631 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()
|
D | napi_webview_controller.cpp | 309 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/ |
D | timer_type.cpp | 22 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/ |
D | napi_utils.cpp | 42 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/ |
D | constant.cpp | 22 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/ |
D | napi_utils.h | 141 static napi_value CreateNapiNumber(napi_env env, int32_t objName);
|
/base/notification/common_event_service/interfaces/kits/napi/common_event/src/ |
D | support.cpp | 21 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/ |
D | support.cpp | 21 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/ |
D | napi_app_account_common.h | 232 void SetNamedProperty(napi_env env, napi_value dstObj, const char *objName, const char *propName);
|
/base/account/os_account/interfaces/kits/napi/appaccount/src/ |
D | napi_app_account_common.cpp | 340 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()
|