OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROMEOS_IME_XKEYBOARD_H_ | 5 #ifndef CHROMEOS_IME_XKEYBOARD_H_ |
6 #define CHROMEOS_IME_XKEYBOARD_H_ | 6 #define CHROMEOS_IME_XKEYBOARD_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 virtual void DisableNumLock() = 0; | 63 virtual void DisableNumLock() = 0; |
64 | 64 |
65 // Sets the caps lock status to |enable_caps_lock|. Do not call the function | 65 // Sets the caps lock status to |enable_caps_lock|. Do not call the function |
66 // from non-UI threads. | 66 // from non-UI threads. |
67 virtual void SetCapsLockEnabled(bool enable_caps_lock) = 0; | 67 virtual void SetCapsLockEnabled(bool enable_caps_lock) = 0; |
68 | 68 |
69 // Returns true if caps lock is enabled. Do not call the function from non-UI | 69 // Returns true if caps lock is enabled. Do not call the function from non-UI |
70 // threads. | 70 // threads. |
71 virtual bool CapsLockIsEnabled() = 0; | 71 virtual bool CapsLockIsEnabled() = 0; |
72 | 72 |
| 73 // Returns true if the current layout supports ISO Level 5 shift. |
| 74 virtual bool IsISOLevel5ShiftAvailable() const = 0; |
| 75 |
| 76 // Returns true if the current layout supports alt gr. |
| 77 virtual bool IsAltGrAvailable() const = 0; |
| 78 |
73 // Turns on and off the auto-repeat of the keyboard. Returns true on success. | 79 // Turns on and off the auto-repeat of the keyboard. Returns true on success. |
74 // Do not call the function from non-UI threads. | 80 // Do not call the function from non-UI threads. |
75 virtual bool SetAutoRepeatEnabled(bool enabled) = 0; | 81 virtual bool SetAutoRepeatEnabled(bool enabled) = 0; |
76 | 82 |
77 // Sets the auto-repeat rate of the keyboard, initial delay in ms, and repeat | 83 // Sets the auto-repeat rate of the keyboard, initial delay in ms, and repeat |
78 // interval in ms. Returns true on success. Do not call the function from | 84 // interval in ms. Returns true on success. Do not call the function from |
79 // non-UI threads. | 85 // non-UI threads. |
80 virtual bool SetAutoRepeatRate(const AutoRepeatRate& rate) = 0; | 86 virtual bool SetAutoRepeatRate(const AutoRepeatRate& rate) = 0; |
81 | 87 |
82 // Returns true if auto repeat is enabled. This function is protected: for | 88 // Returns true if auto repeat is enabled. This function is protected: for |
(...skipping 11 matching lines...) Expand all Loading... |
94 | 100 |
95 // Note: At this moment, classes other than InputMethodManager should not | 101 // Note: At this moment, classes other than InputMethodManager should not |
96 // instantiate the XKeyboard class. | 102 // instantiate the XKeyboard class. |
97 static XKeyboard* Create(); | 103 static XKeyboard* Create(); |
98 }; | 104 }; |
99 | 105 |
100 } // namespace input_method | 106 } // namespace input_method |
101 } // namespace chromeos | 107 } // namespace chromeos |
102 | 108 |
103 #endif // CHROMEOS_IME_XKEYBOARD_H_ | 109 #endif // CHROMEOS_IME_XKEYBOARD_H_ |
OLD | NEW |