| 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 CHROMEOS_IME_IME_KEYBOARD_H_ | 5 #ifndef CHROMEOS_IME_IME_KEYBOARD_H_ |
| 6 #define CHROMEOS_IME_IME_KEYBOARD_H_ | 6 #define CHROMEOS_IME_IME_KEYBOARD_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 // Returns false otherwise. This function is protected: for testability. | 104 // Returns false otherwise. This function is protected: for testability. |
| 105 static CHROMEOS_EXPORT bool GetAutoRepeatRateForTesting( | 105 static CHROMEOS_EXPORT bool GetAutoRepeatRateForTesting( |
| 106 AutoRepeatRate* out_rate); | 106 AutoRepeatRate* out_rate); |
| 107 | 107 |
| 108 // Returns false if |layout_name| contains a bad character. | 108 // Returns false if |layout_name| contains a bad character. |
| 109 static CHROMEOS_EXPORT bool CheckLayoutNameForTesting( | 109 static CHROMEOS_EXPORT bool CheckLayoutNameForTesting( |
| 110 const std::string& layout_name); | 110 const std::string& layout_name); |
| 111 | 111 |
| 112 // Note: At this moment, classes other than InputMethodManager should not | 112 // Note: At this moment, classes other than InputMethodManager should not |
| 113 // instantiate the ImeKeyboard class. | 113 // instantiate the ImeKeyboard class. |
| 114 static ImeKeyboard* Create(); | 114 static CHROMEOS_EXPORT ImeKeyboard* Create(); |
| 115 | 115 |
| 116 bool caps_lock_is_enabled_; | 116 bool caps_lock_is_enabled_; |
| 117 std::string last_layout_; | 117 std::string last_layout_; |
| 118 | 118 |
| 119 private: | 119 private: |
| 120 ObserverList<Observer> observers_; | 120 ObserverList<Observer> observers_; |
| 121 }; | 121 }; |
| 122 | 122 |
| 123 } // namespace input_method | 123 } // namespace input_method |
| 124 } // namespace chromeos | 124 } // namespace chromeos |
| 125 | 125 |
| 126 #endif // CHROMEOS_IME_IME_KEYBOARD_H_ | 126 #endif // CHROMEOS_IME_IME_KEYBOARD_H_ |
| OLD | NEW |