From eafade8741e747b06cbef918611f192620fddf4c Mon Sep 17 00:00:00 2001 From: zhouyongfei Date: Fri, 3 Dec 2021 12:00:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=9D=99=E6=80=81=E6=A3=80?= =?UTF-8?q?=E6=9F=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhouyongfei --- .../include/input_method_utils.h | 33 +++++++++++++------ .../src/input_method_utils.cpp | 17 ++++++++-- 2 files changed, 37 insertions(+), 13 deletions(-) diff --git a/frameworks/inputmethod_controller/include/input_method_utils.h b/frameworks/inputmethod_controller/include/input_method_utils.h index bbb1593..332e78e 100644 --- a/frameworks/inputmethod_controller/include/input_method_utils.h +++ b/frameworks/inputmethod_controller/include/input_method_utils.h @@ -1,14 +1,24 @@ -// -// Created by OpenHarmonyUser on 2021/11/30. -// +/* + * Copyright (C) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ #ifndef FM_IMC_PROJECT_INPUT_METHOD_UTILS_H #define FM_IMC_PROJECT_INPUT_METHOD_UTILS_H -#endif //FM_IMC_PROJECT_INPUT_METHOD_UTILS_H namespace OHOS { namespace MiscServices { - class Configuration{ + class Configuration { public: enum { TEXT_FIELD_ACTION_UNSPECIFIED = 0, @@ -22,15 +32,18 @@ namespace OHOS { }; int mTextFieldAction; }; - class CursorInfo{}; - class KeyEvent{}; - class KeyboardStatus{ + class CursorInfo { + }; + class KeyEvent { + }; + class KeyboardStatus { public: - enum{ + enum { KEYBOARD_STATUS_HIDE = 0, KEYBOARD_STATUS_SHOW }; int mKeyboardStatus; }; } -} \ No newline at end of file +} +#endif // FM_IMC_PROJECT_INPUT_METHOD_UTILS_H \ No newline at end of file diff --git a/frameworks/inputmethod_controller/src/input_method_utils.cpp b/frameworks/inputmethod_controller/src/input_method_utils.cpp index 6d1dfc1..f7626c7 100644 --- a/frameworks/inputmethod_controller/src/input_method_utils.cpp +++ b/frameworks/inputmethod_controller/src/input_method_utils.cpp @@ -1,4 +1,15 @@ -// -// Created by OpenHarmonyUser on 2021/11/30. -// +/* + * Copyright (C) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */