/base/inputmethod/imf/frameworks/js/napi/common/ |
H A D | js_callback_object.cpp | 23 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 D | js_callback_object.h | 26 class JSCallbackObject { class 28 JSCallbackObject(napi_env env, napi_value callback, std::thread::id threadId); 29 ~JSCallbackObject();
|
H A D | js_callback_handler.h | 35 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 D | js_callback_handler.cpp | 21 void JsCallbackHandler::Execute(const std::shared_ptr<JSCallbackObject> &object, const ArgContainer &argContainer, in Execute()
|
/base/inputmethod/imf/frameworks/js/napi/inputmethodability/ |
H A D | panel_listener_impl.h | 42 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 D | panel_listener_impl.cpp | 39 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 D | js_keyboard_delegate_setting.h | 58 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 D | js_input_method_engine_setting.h | 95 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 D | js_keyboard_delegate_setting.cpp | 171 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 D | js_input_method_engine_setting.cpp | 283 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 D | js_panel.cpp | 366 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 D | js_keyboard_panel_manager.h | 88 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 D | js_keyboard_panel_manager.cpp | 107 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 D | js_get_input_method_setting.h | 127 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 D | js_get_input_method_controller.h | 196 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 D | js_get_input_method_setting.cpp | 458 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 D | js_get_input_method_controller.cpp | 297 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()
|