mirror of
https://gitee.com/openharmony/inputmethod_imf
synced 2024-11-27 17:01:21 +00:00
modify code
Signed-off-by: zhaolinglan <zhaolinglan@huawei.com>
This commit is contained in:
parent
1457c9d80f
commit
5920f48b1b
@ -424,8 +424,8 @@ napi_value JsGetInputMethodSetting::IsPanelShown(napi_env env, napi_callback_inf
|
||||
// 1 means least param num
|
||||
PARAM_CHECK_RETURN(env, argc >= 1, "should has 1 parameters!", TYPE_NONE, JsUtil::Const::Null(env));
|
||||
// 0 means parameter of info<PanelInfo>
|
||||
napi_typeof(env, argv[0], &valueType);
|
||||
napi_valuetype valueType = napi_undefined;
|
||||
napi_typeof(env, argv[0], &valueType);
|
||||
PARAM_CHECK_RETURN(env, valueType == napi_object, " panelInfo: ", TYPE_OBJECT, JsUtil::Const::Null(env));
|
||||
|
||||
PanelInfo panelInfo;
|
||||
|
@ -132,7 +132,7 @@ int32_t InputMethodCoreStub::StopInputOnRemote(MessageParcel &data, MessageParce
|
||||
IMSA_HILOGE("failed to read message parcel");
|
||||
return ErrorCode::ERROR_EX_PARCELABLE;
|
||||
}
|
||||
auto ret = StopInput(channel);
|
||||
auto ret = InputMethodAbility::GetInstance()->StopInput(channel);
|
||||
return ITypesUtil::Marshal(reply, ret) ? ErrorCode::NO_ERROR : ErrorCode::ERROR_EX_PARCELABLE;
|
||||
}
|
||||
|
||||
@ -189,7 +189,7 @@ int32_t InputMethodCoreStub::SetSubtype(const SubProperty &property)
|
||||
|
||||
int32_t InputMethodCoreStub::StopInput(const sptr<IInputDataChannel> &channel)
|
||||
{
|
||||
return InputMethodAbility::GetInstance()->StopInput(channel);
|
||||
return ErrorCode::NO_ERROR;
|
||||
}
|
||||
|
||||
bool InputMethodCoreStub::IsEnable()
|
||||
|
@ -67,7 +67,7 @@ public:
|
||||
virtual bool IsInputTypeSupported(InputType type) = 0;
|
||||
virtual int32_t StartInputType(InputType type) = 0;
|
||||
virtual int32_t ExitCurrentInputType() = 0;
|
||||
virtual int32_t IsPanelShown(const PanelInfo &panelInfo, bool &isShown);
|
||||
virtual int32_t IsPanelShown(const PanelInfo &panelInfo, bool &isShown) = 0;
|
||||
|
||||
// Deprecated because of no permission check, and keep for compatibility
|
||||
virtual int32_t HideCurrentInputDeprecated() = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user