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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 // system input method framework as needed. | 124 // system input method framework as needed. |
125 virtual bool EnableInputMethods( | 125 virtual bool EnableInputMethods( |
126 const std::vector<std::string>& new_active_input_method_ids) = 0; | 126 const std::vector<std::string>& new_active_input_method_ids) = 0; |
127 | 127 |
128 // Remaps old input methods like "mozc" to new input methods. Return true if | 128 // Remaps old input methods like "mozc" to new input methods. Return true if |
129 // at least one IME is migrated. | 129 // at least one IME is migrated. |
130 // TODO(nona): Remove this function after few milestones are passed. | 130 // TODO(nona): Remove this function after few milestones are passed. |
131 // (http://crbug.com/236747) | 131 // (http://crbug.com/236747) |
132 virtual bool MigrateOldInputMethods( | 132 virtual bool MigrateOldInputMethods( |
133 std::vector<std::string>* input_method_ids) = 0; | 133 std::vector<std::string>* input_method_ids) = 0; |
| 134 virtual bool MigrateKoreanKeyboard( |
| 135 const std::string& keyboard_id, |
| 136 std::vector<std::string>* input_method_ids) = 0; |
134 | 137 |
135 // Updates a configuration of a system input method engine with |value|. | 138 // Updates a configuration of a system input method engine with |value|. |
136 // Returns true if the configuration is correctly set. | 139 // Returns true if the configuration is correctly set. |
137 virtual bool SetInputMethodConfig(const std::string& section, | 140 virtual bool SetInputMethodConfig(const std::string& section, |
138 const std::string& config_name, | 141 const std::string& config_name, |
139 const InputMethodConfigValue& value) = 0; | 142 const InputMethodConfigValue& value) = 0; |
140 | 143 |
141 // Adds an input method extension. This function does not takes ownership of | 144 // Adds an input method extension. This function does not takes ownership of |
142 // |instance|. | 145 // |instance|. |
143 virtual void AddInputMethodExtension( | 146 virtual void AddInputMethodExtension( |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 | 184 |
182 // Switches to an input method (or keyboard layout) which is associated with | 185 // Switches to an input method (or keyboard layout) which is associated with |
183 // the |accelerator|. | 186 // the |accelerator|. |
184 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) = 0; | 187 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) = 0; |
185 }; | 188 }; |
186 | 189 |
187 } // namespace input_method | 190 } // namespace input_method |
188 } // namespace chromeos | 191 } // namespace chromeos |
189 | 192 |
190 #endif // CHROMEOS_IME_INPUT_METHOD_MANAGER_H_ | 193 #endif // CHROMEOS_IME_INPUT_METHOD_MANAGER_H_ |
OLD | NEW |