!32 合入控制光标接口

Merge pull request !32 from demon/master
This commit is contained in:
openharmony_ci 2022-01-11 08:38:32 +00:00 committed by Gitee
commit 102139ae9e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 14 additions and 0 deletions

View File

@ -40,6 +40,7 @@ namespace MiscServices {
virtual void SendKeyEventFromInputMethod(const KeyEvent& event) = 0;
virtual void SendKeyboardInfo(const KeyboardInfo& info) = 0;
virtual void SetKeyboardStatus(bool status) = 0;
virtual void MoveCursor(const Direction direction) = 0;
};
class ImsaDeathRecipient : public IRemoteObject::DeathRecipient {

View File

@ -41,6 +41,15 @@ namespace MiscServices {
URL,
VISIBLE_PASSWORD,
};
enum class Direction {
NONE = 0,
UP = 1,
DOWN,
LEFT,
RIGHT,
};
class Configuration {
public:
EnterKeyType GetEnterKeyType() const

View File

@ -64,6 +64,10 @@ namespace MiscServices {
{
IMSA_HILOGI("IMC TEST TextListener SendKeyboardInfo");
}
void MoveCursor(const Direction direction)
{
IMSA_HILOGI("IMC TEST TextListener Direction");
}
};
class InputMethodControllerTest : public testing::Test {
public: