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 14 matching lines...) Expand all Loading... |
25 kEnableLock, | 25 kEnableLock, |
26 kDontChange, | 26 kDontChange, |
27 }; | 27 }; |
28 | 28 |
29 enum ModifierKey { | 29 enum ModifierKey { |
30 kSearchKey = 0, // Customizable. | 30 kSearchKey = 0, // Customizable. |
31 kControlKey, // Customizable. | 31 kControlKey, // Customizable. |
32 kAltKey, // Customizable. | 32 kAltKey, // Customizable. |
33 kVoidKey, | 33 kVoidKey, |
34 kCapsLockKey, | 34 kCapsLockKey, |
| 35 kEscapeKey, |
35 // IMPORTANT: You should update kCustomizableKeys[] in .cc file, if you | 36 // IMPORTANT: You should update kCustomizableKeys[] in .cc file, if you |
36 // add a customizable key. | 37 // add a customizable key. |
37 kNumModifierKeys, | 38 kNumModifierKeys, |
38 }; | 39 }; |
39 | 40 |
40 class InputMethodUtil; | 41 class InputMethodUtil; |
41 | 42 |
42 class CHROMEOS_EXPORT XKeyboard { | 43 class CHROMEOS_EXPORT XKeyboard { |
43 public: | 44 public: |
44 virtual ~XKeyboard() {} | 45 virtual ~XKeyboard() {} |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 | 125 |
125 // Note: At this moment, classes other than InputMethodManager should not | 126 // Note: At this moment, classes other than InputMethodManager should not |
126 // instantiate the XKeyboard class. | 127 // instantiate the XKeyboard class. |
127 static XKeyboard* Create(); | 128 static XKeyboard* Create(); |
128 }; | 129 }; |
129 | 130 |
130 } // namespace input_method | 131 } // namespace input_method |
131 } // namespace chromeos | 132 } // namespace chromeos |
132 | 133 |
133 #endif // CHROMEOS_IME_XKEYBOARD_H_ | 134 #endif // CHROMEOS_IME_XKEYBOARD_H_ |
OLD | NEW |