mirror of
https://gitee.com/openharmony/inputmethod_imf
synced 2025-02-17 05:38:18 +00:00
mod
Signed-off-by: cy7717 <chenyu301@huawei.com>
This commit is contained in:
parent
e35cc6368f
commit
8199c3f5de
@ -45,12 +45,12 @@
|
||||
"os_account",
|
||||
"hisysevent",
|
||||
"hitrace",
|
||||
"ffrt",
|
||||
"graphic_2d",
|
||||
"config_policy",
|
||||
"data_share",
|
||||
"resource_schedule_service",
|
||||
"memmgr",
|
||||
"ffrt"
|
||||
"memmgr"
|
||||
],
|
||||
"third_party": [
|
||||
"cJSON"
|
||||
|
@ -221,7 +221,7 @@ napi_status JsTextInputClientEngine::GetSelectMovement(
|
||||
|
||||
napi_value JsTextInputClientEngine::SendKeyFunction(napi_env env, napi_callback_info info)
|
||||
{
|
||||
auto ctxt = std::make_shared<SendKeyFunctionContext>();
|
||||
auto ctxt = std::make_shared<SendKeyFunctionContext>();
|
||||
auto input = [ctxt](napi_env env, size_t argc, napi_value *argv, napi_value self) -> napi_status {
|
||||
PARAM_CHECK_RETURN(env, argc > 0, "at least one paramster is required", TYPE_NONE, napi_generic_failure);
|
||||
napi_status ret = JsUtils::GetValue(env, argv[0], ctxt->action);
|
||||
@ -1119,11 +1119,5 @@ bool JsInputAttribute::Read(napi_env env, napi_value jsObject, InputAttribute &n
|
||||
&& JsUtil::Object::ReadProperty(env, jsObject, "isTextPreviewSupported", nativeObject.isTextPreviewSupported);
|
||||
return ret;
|
||||
}
|
||||
|
||||
std::string JsTextInputClientEngine::GenerateTraceId()
|
||||
{
|
||||
auto traceId = traceId_++;
|
||||
return std::to_string(traceId);
|
||||
}
|
||||
} // namespace MiscServices
|
||||
} // namespace OHOS
|
||||
|
@ -449,7 +449,11 @@ private:
|
||||
static constexpr std::int32_t MAX_VALUE_LEN = 4096;
|
||||
static FFRTBlockQueue<EditorEventInfo> editorQueue_;
|
||||
static BlockQueue<PrivateCommandInfo> privateCommandQueue_;
|
||||
static std::string GenerateTraceId();
|
||||
static std::string GenerateTraceId()
|
||||
{
|
||||
auto traceId = traceId_++;
|
||||
return std::to_string(traceId);
|
||||
}
|
||||
static uint32_t traceId_;
|
||||
};
|
||||
} // namespace MiscServices
|
||||
|
Loading…
x
Reference in New Issue
Block a user