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_INPUT_METHOD_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 // Gets the list of input method properties. The list could be empty(). | 131 // Gets the list of input method properties. The list could be empty(). |
132 virtual InputMethodPropertyList GetCurrentInputMethodProperties() const = 0; | 132 virtual InputMethodPropertyList GetCurrentInputMethodProperties() const = 0; |
133 | 133 |
134 // Returns an X keyboard object which could be used to change the current XKB | 134 // Returns an X keyboard object which could be used to change the current XKB |
135 // layout, change the caps lock status, and set the auto repeat rate/interval. | 135 // layout, change the caps lock status, and set the auto repeat rate/interval. |
136 virtual XKeyboard* GetXKeyboard() = 0; | 136 virtual XKeyboard* GetXKeyboard() = 0; |
137 | 137 |
138 // Returns an InputMethodUtil object. | 138 // Returns an InputMethodUtil object. |
139 virtual InputMethodUtil* GetInputMethodUtil() = 0; | 139 virtual InputMethodUtil* GetInputMethodUtil() = 0; |
140 | 140 |
141 // Enables all input method hotkeys such as Alt+Shift. Note that all hotkeys | |
142 // are enabled on startup. | |
143 virtual void EnableHotkeys() = 0; | |
144 | |
145 // Disables all input method hotkeys. | |
146 virtual void DisableHotkeys() = 0; | |
147 | |
148 // Switches the current input method (or keyboard layout) to the next one. | 141 // Switches the current input method (or keyboard layout) to the next one. |
149 virtual bool SwitchToNextInputMethod() = 0; | 142 virtual bool SwitchToNextInputMethod() = 0; |
150 | 143 |
151 // Switches the current input method (or keyboard layout) to the previous one. | 144 // Switches the current input method (or keyboard layout) to the previous one. |
152 virtual bool SwitchToPreviousInputMethod() = 0; | 145 virtual bool SwitchToPreviousInputMethod() = 0; |
153 | 146 |
154 // Switches to an input method (or keyboard layout) which is associated with | 147 // Switches to an input method (or keyboard layout) which is associated with |
155 // the |accelerator|. | 148 // the |accelerator|. |
156 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) = 0; | 149 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) = 0; |
157 | 150 |
(...skipping 13 matching lines...) Expand all Loading... |
171 | 164 |
172 // Gets the global instance. Initialize() or InitializeForTesting() must be | 165 // Gets the global instance. Initialize() or InitializeForTesting() must be |
173 // called first. | 166 // called first. |
174 static InputMethodManager* GetInstance(); | 167 static InputMethodManager* GetInstance(); |
175 }; | 168 }; |
176 | 169 |
177 } // namespace input_method | 170 } // namespace input_method |
178 } // namespace chromeos | 171 } // namespace chromeos |
179 | 172 |
180 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_H_ | 173 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_H_ |
OLD | NEW |