mirror of
https://gitee.com/openharmony/inputmethod_imf
synced 2024-11-23 14:49:59 +00:00
Signed-off-by: ma-shaoyin <mashaoyin1@huawei.com>
Changes to be committed:
This commit is contained in:
parent
e735b72cf3
commit
bfdae8a2b1
@ -54,7 +54,7 @@ private:
|
||||
uv_work_t *GetUVwork(std::string type);
|
||||
uv_work_t *GetStopInputUVwork(std::string type, std::string imeId);
|
||||
uv_work_t *GetWindowIDUVwork(std::string type, uint32_t windowid);
|
||||
static std::string GetStringProperty(napi_env env, napi_value obj);
|
||||
static std::string GetStringProperty(napi_env env, napi_value jsString);
|
||||
static constexpr int32_t MAX_VALUE_LEN = 1024;
|
||||
static const std::string IMES_CLASS_NAME;
|
||||
static thread_local napi_ref IMESRef_;
|
||||
|
@ -196,14 +196,14 @@ public:
|
||||
JsTextInputClientEngine() = default;
|
||||
~JsTextInputClientEngine() = default;
|
||||
static napi_value Init(napi_env env, napi_value info);
|
||||
static napi_value SendKeyFunction(napi_env env, napi_callback_info Info);
|
||||
static napi_value DeleteForward(napi_env env, napi_callback_info Info);
|
||||
static napi_value DeleteBackward(napi_env env, napi_callback_info Info);
|
||||
static napi_value InsertText(napi_env env, napi_callback_info Info);
|
||||
static napi_value GetForward(napi_env env, napi_callback_info Info);
|
||||
static napi_value GetBackward(napi_env env, napi_callback_info Info);
|
||||
static napi_value SendKeyFunction(napi_env env, napi_callback_info info);
|
||||
static napi_value DeleteForward(napi_env env, napi_callback_info info);
|
||||
static napi_value DeleteBackward(napi_env env, napi_callback_info info);
|
||||
static napi_value InsertText(napi_env env, napi_callback_info info);
|
||||
static napi_value GetForward(napi_env env, napi_callback_info info);
|
||||
static napi_value GetBackward(napi_env env, napi_callback_info info);
|
||||
static napi_value MoveCursor(napi_env env, napi_callback_info info);
|
||||
static napi_value GetEditorAttribute(napi_env env, napi_callback_info Info);
|
||||
static napi_value GetEditorAttribute(napi_env env, napi_callback_info info);
|
||||
static napi_value GetTextInputClientInstance(napi_env env);
|
||||
private:
|
||||
static napi_status GetAction(napi_env env, napi_value argv,
|
||||
|
@ -46,7 +46,7 @@ public:
|
||||
JsGetInputMethodController() = default;
|
||||
~JsGetInputMethodController() = default;
|
||||
static napi_value Init(napi_env env, napi_value info);
|
||||
static napi_value GetInputMethodController(napi_env env, napi_callback_info info);
|
||||
static napi_value GetInputMethodController(napi_env env, napi_callback_info cbInfo);
|
||||
static napi_value HandleSoftKeyboard(
|
||||
napi_env env, napi_callback_info info, std::function<int32_t()> callback, bool isOutput);
|
||||
static napi_value HideSoftKeyboard(napi_env env, napi_callback_info info);
|
||||
|
@ -23,7 +23,7 @@
|
||||
namespace OHOS {
|
||||
namespace MiscServices {
|
||||
struct ListInputContext : public AsyncCall::Context {
|
||||
InputMethodStatus inputMethodStatus;
|
||||
InputMethodStatus inputMethodStatus = InputMethodStatus::ALL;
|
||||
std::vector<Property> properties;
|
||||
napi_status status = napi_generic_failure;
|
||||
ListInputContext() : Context(nullptr, nullptr) { };
|
||||
|
@ -56,7 +56,7 @@ public:
|
||||
static napi_value GetJSInputMethodProperties(napi_env env, const std::vector<Property> &properties);
|
||||
|
||||
private:
|
||||
static std::string GetStringProperty(napi_env env, napi_value result);
|
||||
static std::string GetStringProperty(napi_env env, napi_value obj);
|
||||
static napi_status GetInputMethodProperty(napi_env env, napi_value argv,
|
||||
std::shared_ptr<SwitchInputMethodContext> ctxt);
|
||||
static constexpr std::int32_t MAX_VALUE_LEN = 4096;
|
||||
|
Loading…
Reference in New Issue
Block a user