Home
last modified time | relevance | path

Searched refs:JsShortKeyContext (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/foundation/multimodalinput/input/frameworks/napi/short_key/src/
H A Djs_short_key_context.cpp39 JsShortKeyContext::JsShortKeyContext() : mgr_(std::make_shared<JsShortKeyManager>()) {} in JsShortKeyContext() function in OHOS::MMI::JsShortKeyContext
41 napi_value JsShortKeyContext::CreateInstance(napi_env env) in CreateInstance()
61 JsShortKeyContext *jsContext = nullptr; in CreateInstance()
81 JsShortKeyContext *jsContext = new (std::nothrow) JsShortKeyContext(); in CreateJsObject()
85 JsShortKeyContext *context = static_cast<JsShortKeyContext*>(data); in CreateJsObject()
96 JsShortKeyContext* JsShortKeyContext::GetInstance(napi_env env) in GetInstance()
116 JsShortKeyContext *instance = nullptr; in GetInstance()
125 std::shared_ptr<JsShortKeyManager> JsShortKeyContext::GetJsShortKeyMgr() const in GetJsShortKeyMgr()
169 JsShortKeyContext *jsShortKey = JsShortKeyContext::GetInstance(env); in SetKeyDownDuration()
183 napi_value JsShortKeyContext::GetNapiInt32(napi_env env, int32_t code) in GetNapiInt32()
[all …]
H A Dnative_register_module.cpp24 .nm_register_func = JsShortKeyContext::Export,
/ohos5.0/foundation/multimodalinput/input/frameworks/napi/short_key/include/
H A Djs_short_key_context.h22 class JsShortKeyContext {
24 JsShortKeyContext();
25 DISALLOW_COPY_AND_MOVE(JsShortKeyContext);
26 ~JsShortKeyContext() = default;
35 static JsShortKeyContext* GetInstance(napi_env env);