输入法联调Ace

Signed-off-by: jiangdayuan <jiangdayuan@huawei.com>
Change-Id: I1b7337395d7bdc198054f09beacaee0b7bde6d19
This commit is contained in:
jiangdayuan
2021-12-25 19:58:40 +08:00
parent 8081ef8e6f
commit 98a576bd20
5 changed files with 117 additions and 42 deletions
@@ -30,13 +30,15 @@
namespace OHOS {
namespace MiscServices {
class InputDataChannelStub;
class InputMethodSystemAbilityProxy;
class OnTextChangedListener : public virtual RefBase {
public:
virtual void InsertText(const std::u16string& text) = 0;
virtual void DeleteForward(int32_t length) = 0;
virtual void DeleteBackward(int32_t length) = 0;
virtual void sendKeyEventFromInputMethod(KeyEvent event) = 0;
virtual void sendKeyboardStatus(KeyboardStatus status) = 0;
virtual void SendKeyEventFromInputMethod(const KeyEvent& event) = 0;
virtual void SendKeyboardInfo(const KeyboardInfo& info) = 0;
virtual void SetKeyboardStatus(bool status) = 0;
};
@@ -56,9 +58,9 @@ namespace MiscServices {
void HideTextInput();
void Close();
void OnRemoteSaDied(const wptr<IRemoteObject> &object);
void onCursorUpdate(CursorInfo cursorInfo);
void OnCursorUpdate(CursorInfo cursorInfo);
void OnSelectionChange(std::u16string text, int start, int end);
void onConfigurationChange(Configuration info);
void OnConfigurationChange(Configuration info);
private:
InputMethodController();
~InputMethodController();
@@ -91,4 +93,4 @@ namespace MiscServices {
};
}
}
#endif
#endif