| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_BASE_IME_CHROMEOS_FAKE_IME_KEYBOARD_H_ | 5 #ifndef UI_BASE_IME_CHROMEOS_FAKE_IME_KEYBOARD_H_ |
| 6 #define UI_BASE_IME_CHROMEOS_FAKE_IME_KEYBOARD_H_ | 6 #define UI_BASE_IME_CHROMEOS_FAKE_IME_KEYBOARD_H_ |
| 7 | 7 |
| 8 #include "ui/base/ime/chromeos/ime_keyboard.h" | 8 #include "ui/base/ime/chromeos/ime_keyboard.h" |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 | 13 |
| 14 namespace chromeos { | 14 namespace chromeos { |
| 15 namespace input_method { | 15 namespace input_method { |
| 16 | 16 |
| 17 class UI_BASE_EXPORT FakeImeKeyboard : public ImeKeyboard { | 17 class UI_BASE_IME_EXPORT FakeImeKeyboard : public ImeKeyboard { |
| 18 public: | 18 public: |
| 19 FakeImeKeyboard(); | 19 FakeImeKeyboard(); |
| 20 ~FakeImeKeyboard() override; | 20 ~FakeImeKeyboard() override; |
| 21 | 21 |
| 22 bool SetCurrentKeyboardLayoutByName(const std::string& layout_name) override; | 22 bool SetCurrentKeyboardLayoutByName(const std::string& layout_name) override; |
| 23 bool SetAutoRepeatRate(const AutoRepeatRate& rate) override; | 23 bool SetAutoRepeatRate(const AutoRepeatRate& rate) override; |
| 24 bool SetAutoRepeatEnabled(bool enabled) override; | 24 bool SetAutoRepeatEnabled(bool enabled) override; |
| 25 bool GetAutoRepeatEnabled() override; | 25 bool GetAutoRepeatEnabled() override; |
| 26 bool ReapplyCurrentKeyboardLayout() override; | 26 bool ReapplyCurrentKeyboardLayout() override; |
| 27 void ReapplyCurrentModifierLockStatus() override; | 27 void ReapplyCurrentModifierLockStatus() override; |
| 28 void DisableNumLock() override; | 28 void DisableNumLock() override; |
| 29 bool IsISOLevel5ShiftAvailable() const override; | 29 bool IsISOLevel5ShiftAvailable() const override; |
| 30 bool IsAltGrAvailable() const override; | 30 bool IsAltGrAvailable() const override; |
| 31 | 31 |
| 32 int set_current_keyboard_layout_by_name_count_; | 32 int set_current_keyboard_layout_by_name_count_; |
| 33 AutoRepeatRate last_auto_repeat_rate_; | 33 AutoRepeatRate last_auto_repeat_rate_; |
| 34 // TODO(yusukes): Add more variables for counting the numbers of the API calls | 34 // TODO(yusukes): Add more variables for counting the numbers of the API calls |
| 35 bool auto_repeat_is_enabled_; | 35 bool auto_repeat_is_enabled_; |
| 36 | 36 |
| 37 private: | 37 private: |
| 38 DISALLOW_COPY_AND_ASSIGN(FakeImeKeyboard); | 38 DISALLOW_COPY_AND_ASSIGN(FakeImeKeyboard); |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 } // namespace input_method | 41 } // namespace input_method |
| 42 } // namespace chromeos | 42 } // namespace chromeos |
| 43 | 43 |
| 44 #endif // UI_BASE_IME_CHROMEOS_FAKE_IME_KEYBOARD_H_ | 44 #endif // UI_BASE_IME_CHROMEOS_FAKE_IME_KEYBOARD_H_ |
| OLD | NEW |