| 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 CHROMEOS_IME_INPUT_METHOD_MANAGER_H_ | 5 #ifndef CHROMEOS_IME_INPUT_METHOD_MANAGER_H_ |
| 6 #define CHROMEOS_IME_INPUT_METHOD_MANAGER_H_ | 6 #define CHROMEOS_IME_INPUT_METHOD_MANAGER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 // layout, change the caps lock status, and set the auto repeat rate/interval. | 170 // layout, change the caps lock status, and set the auto repeat rate/interval. |
| 171 virtual ImeKeyboard* GetImeKeyboard() = 0; | 171 virtual ImeKeyboard* GetImeKeyboard() = 0; |
| 172 | 172 |
| 173 // Returns an InputMethodUtil object. | 173 // Returns an InputMethodUtil object. |
| 174 virtual InputMethodUtil* GetInputMethodUtil() = 0; | 174 virtual InputMethodUtil* GetInputMethodUtil() = 0; |
| 175 | 175 |
| 176 // Returns a ComponentExtentionIMEManager object. | 176 // Returns a ComponentExtentionIMEManager object. |
| 177 virtual ComponentExtensionIMEManager* GetComponentExtensionIMEManager() = 0; | 177 virtual ComponentExtensionIMEManager* GetComponentExtensionIMEManager() = 0; |
| 178 | 178 |
| 179 // Switches the current input method (or keyboard layout) to the next one. | 179 // Switches the current input method (or keyboard layout) to the next one. |
| 180 virtual bool SwitchToNextInputMethod() = 0; | 180 virtual void SwitchToNextInputMethod() = 0; |
| 181 | 181 |
| 182 // Switches the current input method (or keyboard layout) to the previous one. | 182 // Switches the current input method (or keyboard layout) to the previous one. |
| 183 virtual bool SwitchToPreviousInputMethod( | 183 virtual bool SwitchToPreviousInputMethod( |
| 184 const ui::Accelerator& accelerator) = 0; | 184 const ui::Accelerator& accelerator) = 0; |
| 185 | 185 |
| 186 // Switches to an input method (or keyboard layout) which is associated with | 186 // Switches to an input method (or keyboard layout) which is associated with |
| 187 // the |accelerator|. | 187 // the |accelerator|. |
| 188 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) = 0; | 188 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) = 0; |
| 189 | 189 |
| 190 // If keyboard layout can be uset at login screen | 190 // If keyboard layout can be uset at login screen |
| 191 virtual bool IsLoginKeyboard(const std::string& layout) const = 0; | 191 virtual bool IsLoginKeyboard(const std::string& layout) const = 0; |
| 192 | 192 |
| 193 // Migrates the input method id to extension-based input method id. | 193 // Migrates the input method id to extension-based input method id. |
| 194 virtual bool MigrateInputMethods( | 194 virtual bool MigrateInputMethods( |
| 195 std::vector<std::string>* input_method_ids) = 0; | 195 std::vector<std::string>* input_method_ids) = 0; |
| 196 }; | 196 }; |
| 197 | 197 |
| 198 } // namespace input_method | 198 } // namespace input_method |
| 199 } // namespace chromeos | 199 } // namespace chromeos |
| 200 | 200 |
| 201 #endif // CHROMEOS_IME_INPUT_METHOD_MANAGER_H_ | 201 #endif // CHROMEOS_IME_INPUT_METHOD_MANAGER_H_ |
| OLD | NEW |