OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_CHROMEOS_INPUT_METHOD_XKEYBOARD_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_XKEYBOARD_H_ |
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_XKEYBOARD_H_ | 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_XKEYBOARD_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 enum ModifierLockStatus { | 23 enum ModifierLockStatus { |
24 kDisableLock = 0, | 24 kDisableLock = 0, |
25 kEnableLock, | 25 kEnableLock, |
26 kDontChange, | 26 kDontChange, |
27 }; | 27 }; |
28 | 28 |
29 // TODO(yusukes): Remove this enum when crbug.com/115112 is implemented. | 29 // TODO(yusukes): Remove this enum when crbug.com/115112 is implemented. |
30 enum ModifierKey { | 30 enum ModifierKey { |
31 kSearchKey = 0, // Customizable. | 31 kSearchKey = 0, // Customizable. |
32 kLeftControlKey, // Customizable. | 32 kControlKey, // Customizable. |
33 kLeftAltKey, // Customizable. | 33 kAltKey, // Customizable. |
34 kVoidKey, | 34 kVoidKey, |
35 kCapsLockKey, | 35 kCapsLockKey, |
36 // IMPORTANT: You should update kCustomizableKeys[] in .cc file, if you | 36 // IMPORTANT: You should update kCustomizableKeys[] in .cc file, if you |
37 // add a customizable key. | 37 // add a customizable key. |
38 kNumModifierKeys, | 38 kNumModifierKeys, |
39 }; | 39 }; |
40 | 40 |
41 // TODO(yusukes): Remove this struct when crbug.com/115112 is implemented. | 41 // TODO(yusukes): Remove this struct when crbug.com/115112 is implemented. |
42 struct ModifierKeyPair { | 42 struct ModifierKeyPair { |
43 ModifierKeyPair(ModifierKey in_original, ModifierKey in_replacement) | 43 ModifierKeyPair(ModifierKey in_original, ModifierKey in_replacement) |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 | 154 |
155 // Note: At this moment, classes other than InputMethodManager should not | 155 // Note: At this moment, classes other than InputMethodManager should not |
156 // instantiate the XKeyboard class. | 156 // instantiate the XKeyboard class. |
157 static XKeyboard* Create(const InputMethodUtil& util); | 157 static XKeyboard* Create(const InputMethodUtil& util); |
158 }; | 158 }; |
159 | 159 |
160 } // namespace input_method | 160 } // namespace input_method |
161 } // namespace chromeos | 161 } // namespace chromeos |
162 | 162 |
163 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_XKEYBOARD_H_ | 163 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_XKEYBOARD_H_ |
OLD | NEW |