Home
last modified time | relevance | path

Searched refs:JSCallbackObject (Results 1 - 17 of 17) sorted by relevance

/base/inputmethod/imf/frameworks/js/napi/common/
H A Djs_callback_object.cpp23 JSCallbackObject::JSCallbackObject(napi_env env, napi_value callback, std::thread::id threadId) in JSCallbackObject() function in OHOS::MiscServices::JSCallbackObject
29 JSCallbackObject::~JSCallbackObject() in ~JSCallbackObject()
45 JSCallbackObject *jsObject = static_cast<JSCallbackObject *>(work->data); in ~JSCallbackObject()
H A Djs_callback_object.h26 class JSCallbackObject { class
28 JSCallbackObject(napi_env env, napi_value callback, std::thread::id threadId);
29 ~JSCallbackObject();
H A Djs_callback_handler.h35 static void Traverse(const std::vector<std::shared_ptr<JSCallbackObject>> &objects, in Traverse()
49 static void Traverse(const std::vector<std::shared_ptr<JSCallbackObject>> &objects, in Traverse()
64 static void Execute(const std::shared_ptr<JSCallbackObject> &object, const ArgContainer &argContainer,
H A Djs_callback_handler.cpp21 void JsCallbackHandler::Execute(const std::shared_ptr<JSCallbackObject> &object, const ArgContainer &argContainer, in Execute()
/base/inputmethod/imf/frameworks/js/napi/inputmethodability/
H A Dpanel_listener_impl.h42 std::shared_ptr<JSCallbackObject> cbCopy;
43 explicit UvEntry(const std::shared_ptr<JSCallbackObject> &cb) : cbCopy(cb) in UvEntry()
52 void Subscribe(uint32_t windowId, const std::string &type, std::shared_ptr<JSCallbackObject> cbObject);
55 std::shared_ptr<JSCallbackObject> GetCallback(uint32_t windowId, const std::string &type);
58 ConcurrentMap<uint32_t, std::map<std::string, std::shared_ptr<JSCallbackObject>>> callbacks_;
H A Dpanel_listener_impl.cpp39 std::shared_ptr<JSCallbackObject> cbObject) in Subscribe()
42 [cbObject, &type](auto windowId, std::map<std::string, std::shared_ptr<JSCallbackObject>> &cbs) { in Subscribe()
56 [&type](auto windowId, std::map<std::string, std::shared_ptr<JSCallbackObject>> &cbs) { in RemoveInfo()
70 std::shared_ptr<JSCallbackObject> callBack = GetCallback(windowId, type); in OnPanelStatus()
91 std::shared_ptr<JSCallbackObject> callBack = GetCallback(windowId, type); in OnSizeChange()
126 std::shared_ptr<JSCallbackObject> PanelListenerImpl::GetCallback(uint32_t windowId, const std::string &type) in GetCallback()
128 std::shared_ptr<JSCallbackObject> callBack = nullptr; in GetCallback()
H A Djs_keyboard_delegate_setting.h58 void RegisterListener(napi_value callback, std::string type, std::shared_ptr<JSCallbackObject> callbackObj);
80 std::vector<std::shared_ptr<JSCallbackObject>> vecCopy;
89 UvEntry(const std::vector<std::shared_ptr<JSCallbackObject>> &cbVec, const std::string &type) in UvEntry()
102 std::map<std::string, std::vector<std::shared_ptr<JSCallbackObject>>> jsCbMap_;
H A Djs_input_method_engine_setting.h95 void RegisterListener(napi_value callback, std::string type, std::shared_ptr<JSCallbackObject> callbackObj);
101 std::vector<std::shared_ptr<JSCallbackObject>> vecCopy;
107 UvEntry(const std::vector<std::shared_ptr<JSCallbackObject>> &cbVec, const std::string &type) in UvEntry()
119 std::map<std::string, std::vector<std::shared_ptr<JSCallbackObject>>> jsCbMap_;
H A Djs_keyboard_delegate_setting.cpp171 std::shared_ptr<JSCallbackObject> callbackObj) in RegisterListener()
179 bool ret = std::any_of(callbacks.begin(), callbacks.end(), [&callback](std::shared_ptr<JSCallbackObject> cb) { in RegisterListener()
238 std::shared_ptr<JSCallbackObject> callback = in Subscribe()
239 std::make_shared<JSCallbackObject>(env, argv[1], std::this_thread::get_id()); in Subscribe()
H A Djs_input_method_engine_setting.cpp283 std::shared_ptr<JSCallbackObject> callbackObj) in RegisterListener()
291 bool ret = std::any_of(callbacks.begin(), callbacks.end(), [&callback](std::shared_ptr<JSCallbackObject> cb) { in RegisterListener()
354 std::shared_ptr<JSCallbackObject> callback = in Subscribe()
355 std::make_shared<JSCallbackObject>(env, argv[ARGC_ONE], std::this_thread::get_id()); in Subscribe()
H A Djs_panel.cpp366 std::shared_ptr<JSCallbackObject> cbObject = in Subscribe()
367 std::make_shared<JSCallbackObject>(env, argv[1], std::this_thread::get_id()); in Subscribe()
/base/inputmethod/imf/frameworks/js/napi/keyboardpanelmanager/
H A Djs_keyboard_panel_manager.h88 void RegisterListener(napi_value callback, std::string type, std::shared_ptr<JSCallbackObject> callbackObj);
92 std::vector<std::shared_ptr<JSCallbackObject>> vecCopy;
97 explicit UvEntry(const std::vector<std::shared_ptr<JSCallbackObject>> &cbVec, const std::string &type) in UvEntry()
111 std::map<std::string, std::vector<std::shared_ptr<JSCallbackObject>>> jsCbMap_;
H A Djs_keyboard_panel_manager.cpp107 std::shared_ptr<JSCallbackObject> callback = in Subscribe()
108 std::make_shared<JSCallbackObject>(env, argv[1], std::this_thread::get_id()); in Subscribe()
142 std::shared_ptr<JSCallbackObject> callbackObj) in RegisterListener()
150 bool ret = std::any_of(callbacks.begin(), callbacks.end(), [&callback](std::shared_ptr<JSCallbackObject> cb) { in RegisterListener()
/base/inputmethod/imf/frameworks/js/napi/inputmethodclient/
H A Djs_get_input_method_setting.h127 int32_t RegisterListener(napi_value callback, std::string type, std::shared_ptr<JSCallbackObject> callbackObj);
131 std::vector<std::shared_ptr<JSCallbackObject>> vecCopy;
136 UvEntry(const std::vector<std::shared_ptr<JSCallbackObject>> &cbVec, const std::string &type) in UvEntry()
149 std::map<std::string, std::vector<std::shared_ptr<JSCallbackObject>>> jsCbMap_;
H A Djs_get_input_method_controller.h196 void RegisterListener(napi_value callback, std::string type, std::shared_ptr<JSCallbackObject> callbackObj);
211 std::vector<std::shared_ptr<JSCallbackObject>> vecCopy;
224 explicit UvEntry(const std::vector<std::shared_ptr<JSCallbackObject>> &cbVec, const std::string &type) in UvEntry()
233 std::map<std::string, std::vector<std::shared_ptr<JSCallbackObject>>> jsCbMap_;
H A Djs_get_input_method_setting.cpp458 std::shared_ptr<JSCallbackObject> callbackObj) in RegisterListener()
467 bool ret = std::any_of(callbacks.begin(), callbacks.end(), [&callback](std::shared_ptr<JSCallbackObject> cb) { in RegisterListener()
504 std::shared_ptr<JSCallbackObject> callback = in Subscribe()
505 std::make_shared<JSCallbackObject>(env, argv[ARGC_ONE], std::this_thread::get_id()); in Subscribe()
H A Djs_get_input_method_controller.cpp297 std::shared_ptr<JSCallbackObject> callbackObj) in RegisterListener()
306 bool ret = std::any_of(callbacks.begin(), callbacks.end(), [&callback](std::shared_ptr<JSCallbackObject> cb) { in RegisterListener()
369 std::shared_ptr<JSCallbackObject> callback = in Subscribe()
370 std::make_shared<JSCallbackObject>(env, argv[ARGC_ONE], std::this_thread::get_id()); in Subscribe()

Completed in 12 milliseconds