Home
last modified time | relevance | path

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

/ohos5.0/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 {
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,
50 …const std::vector<std::shared_ptr<JSCallbackObject>> &objects, const ArgContainer &argContainer, T… in Traverse()
65 …const std::shared_ptr<JSCallbackObject> &object, const ArgContainer &argContainer, napi_value &out…
H A Djs_callback_handler.cpp22 …const std::shared_ptr<JSCallbackObject> &object, const ArgContainer &argContainer, napi_value &out… in Execute()
/ohos5.0/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> cbObj…
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()
127 std::shared_ptr<JSCallbackObject> PanelListenerImpl::GetCallback(uint32_t windowId, const std::stri… in GetCallback()
129 std::shared_ptr<JSCallbackObject> callBack = nullptr; in GetCallback()
H A Djs_keyboard_delegate_setting.h59 …void RegisterListener(napi_value callback, std::string type, std::shared_ptr<JSCallbackObject> cal…
81 std::vector<std::shared_ptr<JSCallbackObject>> vecCopy;
90 … UvEntry(const std::vector<std::shared_ptr<JSCallbackObject>> &cbVec, const std::string &type) in UvEntry()
103 std::map<std::string, std::vector<std::shared_ptr<JSCallbackObject>>> jsCbMap_;
H A Djs_input_method_engine_setting.h97 …void RegisterListener(napi_value callback, std::string type, std::shared_ptr<JSCallbackObject> cal…
103 std::vector<std::shared_ptr<JSCallbackObject>> vecCopy;
109 … UvEntry(const std::vector<std::shared_ptr<JSCallbackObject>> &cbVec, const std::string &type) in UvEntry()
121 std::map<std::string, std::vector<std::shared_ptr<JSCallbackObject>>> jsCbMap_;
H A Djs_keyboard_delegate_setting.cpp171 napi_value callback, std::string type, std::shared_ptr<JSCallbackObject> callbackObj) in RegisterListener()
179 …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 napi_value callback, std::string type, std::shared_ptr<JSCallbackObject> callbackObj) in RegisterListener()
291 …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.cpp363 std::shared_ptr<JSCallbackObject> cbObject = in Subscribe()
364 std::make_shared<JSCallbackObject>(env, argv[1], std::this_thread::get_id()); in Subscribe()
/ohos5.0/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> cal…
92 std::vector<std::shared_ptr<JSCallbackObject>> vecCopy;
97 …explicit UvEntry(const std::vector<std::shared_ptr<JSCallbackObject>> &cbVec, const std::string &t… in UvEntry()
107 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 napi_value callback, std::string type, std::shared_ptr<JSCallbackObject> callbackObj) in RegisterListener()
150 …std::any_of(callbacks.begin(), callbacks.end(), [&callback](std::shared_ptr<JSCallbackObject> cb) { in RegisterListener()
/ohos5.0/base/inputmethod/imf/frameworks/js/napi/inputmethodclient/
H A Djs_get_input_method_setting.h127 …sterListener(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> cal…
211 std::vector<std::shared_ptr<JSCallbackObject>> vecCopy;
224 …explicit UvEntry(const std::vector<std::shared_ptr<JSCallbackObject>> &cbVec, const std::string &t… in UvEntry()
233 std::map<std::string, std::vector<std::shared_ptr<JSCallbackObject>>> jsCbMap_;
H A Djs_get_input_method_setting.cpp454 napi_value callback, std::string type, std::shared_ptr<JSCallbackObject> callbackObj) in RegisterListener()
463 …std::any_of(callbacks.begin(), callbacks.end(), [&callback](std::shared_ptr<JSCallbackObject> cb) { in RegisterListener()
500 std::shared_ptr<JSCallbackObject> callback = in Subscribe()
501 std::make_shared<JSCallbackObject>(env, argv[ARGC_ONE], std::this_thread::get_id()); in Subscribe()
H A Djs_get_input_method_controller.cpp297 napi_value callback, std::string type, std::shared_ptr<JSCallbackObject> callbackObj) in RegisterListener()
306 …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()