| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 const std::vector<std::string>& new_active_input_method_ids) = 0; | 137 const std::vector<std::string>& new_active_input_method_ids) = 0; |
| 138 | 138 |
| 139 // Adds one entry to the list of active input method IDs, and then starts or | 139 // Adds one entry to the list of active input method IDs, and then starts or |
| 140 // stops the system input method framework as needed. | 140 // stops the system input method framework as needed. |
| 141 virtual bool EnableInputMethod( | 141 virtual bool EnableInputMethod( |
| 142 const std::string& new_active_input_method_id) = 0; | 142 const std::string& new_active_input_method_id) = 0; |
| 143 | 143 |
| 144 // 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 |
| 145 // |instance|. | 145 // |instance|. |
| 146 virtual void AddInputMethodExtension( | 146 virtual void AddInputMethodExtension( |
| 147 Profile* profile, | 147 const std::string& extension_id, |
| 148 const std::string& imm_id, | 148 const InputMethodDescriptors& descriptors, |
| 149 InputMethodEngineInterface* instance) = 0; | 149 InputMethodEngineInterface* instance) = 0; |
| 150 | 150 |
| 151 // Removes an input method extension. | 151 // Removes an input method extension. |
| 152 virtual void RemoveInputMethodExtension(Profile* profile, | 152 virtual void RemoveInputMethodExtension(const std::string& extension_id) = 0; |
| 153 const std::string& id) = 0; | |
| 154 | 153 |
| 155 // Returns a list of descriptors for all Input Method Extensions. | 154 // Returns a list of descriptors for all Input Method Extensions. |
| 156 virtual void GetInputMethodExtensions(InputMethodDescriptors* result) = 0; | 155 virtual void GetInputMethodExtensions(InputMethodDescriptors* result) = 0; |
| 157 | 156 |
| 158 // Sets the list of extension IME ids which should be enabled. | 157 // Sets the list of extension IME ids which should be enabled. |
| 159 virtual void SetEnabledExtensionImes(std::vector<std::string>* ids) = 0; | 158 virtual void SetEnabledExtensionImes(std::vector<std::string>* ids) = 0; |
| 160 | 159 |
| 161 // Sets current input method to login default (first owners, then hardware). | 160 // Sets current input method to login default (first owners, then hardware). |
| 162 virtual void SetInputMethodLoginDefault() = 0; | 161 virtual void SetInputMethodLoginDefault() = 0; |
| 163 | 162 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 | 198 |
| 200 // Migrates the input method id to extension-based input method id. | 199 // Migrates the input method id to extension-based input method id. |
| 201 virtual bool MigrateInputMethods( | 200 virtual bool MigrateInputMethods( |
| 202 std::vector<std::string>* input_method_ids) = 0; | 201 std::vector<std::string>* input_method_ids) = 0; |
| 203 }; | 202 }; |
| 204 | 203 |
| 205 } // namespace input_method | 204 } // namespace input_method |
| 206 } // namespace chromeos | 205 } // namespace chromeos |
| 207 | 206 |
| 208 #endif // CHROMEOS_IME_INPUT_METHOD_MANAGER_H_ | 207 #endif // CHROMEOS_IME_INPUT_METHOD_MANAGER_H_ |
| OLD | NEW |