| 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_H_ | 5 #ifndef UI_BASE_IME_CHROMEOS_IME_KEYBOARD_H_ |
| 6 #define UI_BASE_IME_CHROMEOS_IME_KEYBOARD_H_ | 6 #define UI_BASE_IME_CHROMEOS_IME_KEYBOARD_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/observer_list.h" | 11 #include "base/observer_list.h" |
| 12 #include "ui/base/ime/ui_base_ime_export.h" | 12 #include "ui/base/ime/ui_base_ime_export.h" |
| 13 | 13 |
| 14 namespace chromeos { | 14 namespace chromeos { |
| 15 namespace input_method { | 15 namespace input_method { |
| 16 | 16 |
| 17 struct AutoRepeatRate { | 17 struct AutoRepeatRate { |
| 18 AutoRepeatRate() : initial_delay_in_ms(0), repeat_interval_in_ms(0) {} | 18 AutoRepeatRate() : initial_delay_in_ms(0), repeat_interval_in_ms(0) {} |
| 19 unsigned int initial_delay_in_ms; | 19 unsigned int initial_delay_in_ms; |
| 20 unsigned int repeat_interval_in_ms; | 20 unsigned int repeat_interval_in_ms; |
| 21 }; | 21 }; |
| 22 | 22 |
| 23 enum ModifierKey { | 23 enum ModifierKey { |
| 24 kSearchKey = 0, // Customizable. | 24 kSearchKey = 0, // Customizable. |
| 25 kControlKey, // Customizable. | 25 kControlKey, // Customizable. |
| 26 kAltKey, // Customizable. | 26 kAltKey, // Customizable. |
| 27 kVoidKey, | 27 kVoidKey, |
| 28 kCapsLockKey, | 28 kCapsLockKey, // Customizable. |
| 29 kEscapeKey, | 29 kEscapeKey, // Customizable. |
| 30 kBackspaceKey, | 30 kBackspaceKey, // Customizable. |
| 31 // IMPORTANT: Add new key to the end, because the keys may have been stored | 31 // IMPORTANT: Add new key to the end, because the keys may have been stored |
| 32 // in user preferences. | 32 // in user preferences. |
| 33 kNumModifierKeys, | 33 kNumModifierKeys, |
| 34 }; | 34 }; |
| 35 | 35 |
| 36 class InputMethodUtil; | 36 class InputMethodUtil; |
| 37 | 37 |
| 38 class UI_BASE_IME_EXPORT ImeKeyboard { | 38 class UI_BASE_IME_EXPORT ImeKeyboard { |
| 39 public: | 39 public: |
| 40 class Observer { | 40 class Observer { |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 std::string last_layout_; | 116 std::string last_layout_; |
| 117 | 117 |
| 118 private: | 118 private: |
| 119 base::ObserverList<Observer> observers_; | 119 base::ObserverList<Observer> observers_; |
| 120 }; | 120 }; |
| 121 | 121 |
| 122 } // namespace input_method | 122 } // namespace input_method |
| 123 } // namespace chromeos | 123 } // namespace chromeos |
| 124 | 124 |
| 125 #endif // UI_BASE_IME_CHROMEOS_IME_KEYBOARD_H_ | 125 #endif // UI_BASE_IME_CHROMEOS_IME_KEYBOARD_H_ |
| OLD | NEW |