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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 // Switches the current input method (or keyboard layout) to the previous one. | 173 // Switches the current input method (or keyboard layout) to the previous one. |
174 virtual bool SwitchToPreviousInputMethod( | 174 virtual bool SwitchToPreviousInputMethod( |
175 const ui::Accelerator& accelerator) = 0; | 175 const ui::Accelerator& accelerator) = 0; |
176 | 176 |
177 // Switches to an input method (or keyboard layout) which is associated with | 177 // Switches to an input method (or keyboard layout) which is associated with |
178 // the |accelerator|. | 178 // the |accelerator|. |
179 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) = 0; | 179 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) = 0; |
180 | 180 |
181 // If keyboard layout can be uset at login screen | 181 // If keyboard layout can be uset at login screen |
182 virtual bool IsLoginKeyboard(const std::string& layout) const = 0; | 182 virtual bool IsLoginKeyboard(const std::string& layout) const = 0; |
| 183 |
| 184 // Migrates the xkb id to extension-xkb id. |
| 185 // TODO(shuchen): Remove this function after few milestones are passed. |
| 186 // See: http://crbug.com/345604 |
| 187 virtual bool MigrateXkbInputMethods( |
| 188 std::vector<std::string>* input_method_ids) = 0; |
183 }; | 189 }; |
184 | 190 |
185 } // namespace input_method | 191 } // namespace input_method |
186 } // namespace chromeos | 192 } // namespace chromeos |
187 | 193 |
188 #endif // CHROMEOS_IME_INPUT_METHOD_MANAGER_H_ | 194 #endif // CHROMEOS_IME_INPUT_METHOD_MANAGER_H_ |
OLD | NEW |