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_IME_KEYBOARD_OZONE_H_ | 5 #ifndef UI_BASE_IME_CHROMEOS_IME_KEYBOARD_OZONE_H_ |
6 #define UI_BASE_IME_CHROMEOS_IME_KEYBOARD_OZONE_H_ | 6 #define UI_BASE_IME_CHROMEOS_IME_KEYBOARD_OZONE_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 #include "ui/base/ui_base_export.h" | 13 #include "ui/base/ui_base_export.h" |
14 | 14 |
15 namespace ui { | 15 namespace ui { |
16 class InputController; | 16 class InputController; |
17 } | 17 } |
18 | 18 |
19 namespace chromeos { | 19 namespace chromeos { |
20 namespace input_method { | 20 namespace input_method { |
21 | 21 |
22 class UI_BASE_EXPORT ImeKeyboardOzone : public ImeKeyboard { | 22 class UI_BASE_EXPORT ImeKeyboardOzone : public ImeKeyboard { |
23 public: | 23 public: |
24 ImeKeyboardOzone(ui::InputController* controller); | 24 ImeKeyboardOzone(ui::InputController* controller); |
25 virtual ~ImeKeyboardOzone(); | 25 ~ImeKeyboardOzone() override; |
26 | 26 |
27 virtual bool SetCurrentKeyboardLayoutByName(const std::string& layout_name) | 27 bool SetCurrentKeyboardLayoutByName(const std::string& layout_name) override; |
28 override; | 28 bool SetAutoRepeatRate(const AutoRepeatRate& rate) override; |
29 virtual bool SetAutoRepeatRate(const AutoRepeatRate& rate) override; | 29 bool SetAutoRepeatEnabled(bool enabled) override; |
30 virtual bool SetAutoRepeatEnabled(bool enabled) override; | 30 bool GetAutoRepeatEnabled() override; |
31 virtual bool GetAutoRepeatEnabled() override; | 31 bool ReapplyCurrentKeyboardLayout() override; |
32 virtual bool ReapplyCurrentKeyboardLayout() override; | 32 void ReapplyCurrentModifierLockStatus() override; |
33 virtual void ReapplyCurrentModifierLockStatus() override; | 33 void DisableNumLock() override; |
34 virtual void DisableNumLock() override; | 34 void SetCapsLockEnabled(bool enable_caps_lock) override; |
35 virtual void SetCapsLockEnabled(bool enable_caps_lock) override; | 35 bool CapsLockIsEnabled() override; |
36 virtual bool CapsLockIsEnabled() override; | |
37 | 36 |
38 private: | 37 private: |
39 ui::InputController* input_controller_; | 38 ui::InputController* input_controller_; |
40 | 39 |
41 DISALLOW_COPY_AND_ASSIGN(ImeKeyboardOzone); | 40 DISALLOW_COPY_AND_ASSIGN(ImeKeyboardOzone); |
42 }; | 41 }; |
43 | 42 |
44 } // namespace input_method | 43 } // namespace input_method |
45 } // namespace chromeos | 44 } // namespace chromeos |
46 | 45 |
47 #endif // UI_BASE_IME_CHROMEOS_IME_KEYBOARD_OZONE_H_ | 46 #endif // UI_BASE_IME_CHROMEOS_IME_KEYBOARD_OZONE_H_ |
OLD | NEW |