Home
last modified time | relevance | path

Searched refs:objectId (Results 1 - 4 of 4) sorted by relevance

/base/web/webview/interfaces/kits/cj/src/
H A Dwebview_javascript_result_callback.cpp63 const std::vector<std::string>& methodList, JavaScriptOb::ObjectID& objectId) in FindObjectIdInJsTd()
65 objectId = static_cast<JavaScriptOb::ObjectID>(JavaScriptOb::JavaScriptObjIdErrorCode::WEBVIEWCONTROLLERERROR); in FindObjectIdInJsTd()
75 objectId = pair.first; in FindObjectIdInJsTd()
85 JavaScriptOb::ObjectID objectId; in AddObject() local
88 objectId = nextObjectId_++; in AddObject()
89 WEBVIEWLOGD("WebviewJavaScriptResultCallBackImpl::AddObject objectId = " in AddObject()
91 static_cast<int32_t>(objectId)); in AddObject()
92 objects_[objectId] = new_object; in AddObject()
94 return objectId; in AddObject()
101 JavaScriptOb::ObjectID objectId; in AddNamedObject() local
61 FindObjectIdInJsTd( const std::vector<std::function<char*(const char*)>>& cjFuncs, const std::vector<std::string>& methodList, JavaScriptOb::ObjectID& objectId) FindObjectIdInJsTd() argument
151 FindObject(JavaScriptOb::ObjectID objectId) FindObject() 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
353 GetJavaScriptObjectMethods(int32_t objectId) GetJavaScriptObjectMethods() argument
367 HasJavaScriptObjectMethods(int32_t objectId, const std::string& methodName) HasJavaScriptObjectMethods() argument
388 RemoveJavaScriptObjectHolder(int32_t holder, JavaScriptOb::ObjectID objectId) RemoveJavaScriptObjectHolder() argument
[all...]
/base/web/webview/interfaces/kits/cj/include/
H A Dwebview_javascript_result_callback.h131 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;
136 bool HasJavaScriptObjectMethods(int32_t objectId, const std::string& methodName) override;
138 std::shared_ptr<NWeb::NWebValue> GetJavaScriptObjectMethods(int32_t objectId) override;
140 std::shared_ptr<JavaScriptOb> FindObject(JavaScriptOb::ObjectID objectId);
144 const std::vector<std::string>& methodList, JavaScriptOb::ObjectID& objectId);
152 void RemoveJavaScriptObjectHolder(int32_t holder, JavaScriptOb::ObjectID objectId) override;
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);
/base/web/webview/interfaces/kits/napi/webviewcontroller/
H A Dwebview_javascript_result_callback.cpp851 std::shared_ptr<JavaScriptOb> WebviewJavaScriptResultCallBack::FindObject(JavaScriptOb::ObjectID objectId) in FindObject() argument
853 auto iter = objects_.find(objectId); in FindObject()
857 WVLOG_E("WebviewJavaScriptResultCallBack::FindObject Unknown object: objectId = " in FindObject()
859 objectId); in FindObject()
948 int32_t routingId, int32_t objectId) in GetJavaScriptResultSelf()
951 std::shared_ptr<JavaScriptOb> jsObj = FindObject(objectId); in GetJavaScriptResultSelf()
1002 int32_t routingId, int32_t objectId) in GetJavaScriptResult()
1007 "routingId = %{public}d, objectId = %{public}d", in GetJavaScriptResult()
1008 objName.c_str(), method.c_str(), routingId, objectId); in GetJavaScriptResult()
1010 std::shared_ptr<JavaScriptOb> jsObj = FindObject(objectId); in GetJavaScriptResult()
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
1289 FindObjectIdInJsTd( napi_env env, napi_value object, JavaScriptOb::ObjectID* objectId) FindObjectIdInJsTd() argument
1342 PostHasJavaScriptObjectMethodsToJsThread( int32_t objectId, const std::string& methodName) PostHasJavaScriptObjectMethodsToJsThread() argument
1376 HasJavaScriptObjectMethods(int32_t objectId, const std::string& methodName) HasJavaScriptObjectMethods() argument
1455 PostGetJavaScriptObjectMethodsToJsThread(int32_t objectId) PostGetJavaScriptObjectMethodsToJsThread() argument
1487 GetJavaScriptObjectMethods(int32_t objectId) GetJavaScriptObjectMethods() argument
1529 RemoveJavaScriptObjectHolderInJsTd( int32_t holder, JavaScriptOb::ObjectID objectId) RemoveJavaScriptObjectHolderInJsTd() argument
1575 PostRemoveJavaScriptObjectHolderToJsThread( int32_t holder, JavaScriptOb::ObjectID objectId) PostRemoveJavaScriptObjectHolderToJsThread() argument
1609 RemoveJavaScriptObjectHolder(int32_t holder, JavaScriptOb::ObjectID objectId) RemoveJavaScriptObjectHolder() argument
1691 JavaScriptOb::ObjectID objectId; AddObject() local
1710 JavaScriptOb::ObjectID objectId; AddNamedObject() local
[all...]
H A Dwebview_javascript_result_callback.h457 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;
462 bool HasJavaScriptObjectMethods(int32_t objectId, const std::string& methodName) override;
464 std::shared_ptr<NWebValue> GetJavaScriptObjectMethods(int32_t objectId) override;
466 std::shared_ptr<JavaScriptOb> FindObject(JavaScriptOb::ObjectID objectId);
468 void RemoveJavaScriptObjectHolder(int32_t holder, JavaScriptOb::ObjectID objectId) override;
470 void RemoveJavaScriptObjectHolderInJsTd(int32_t holder, JavaScriptOb::ObjectID objectId);
474 bool FindObjectIdInJsTd(napi_env env, napi_value object, JavaScriptOb::ObjectID* objectId);
502 const std::string& method, const std::string& objName, int32_t routingId, int32_t objectId);
504 bool PostHasJavaScriptObjectMethodsToJsThread(int32_t objectId, cons
[all...]

Completed in 5 milliseconds