| 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> |
| 11 | 11 |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "chromeos/chromeos_export.h" | 13 #include "chromeos/chromeos_export.h" |
| 14 #include "chromeos/ime/input_method_descriptor.h" | 14 #include "chromeos/ime/input_method_descriptor.h" |
| 15 | 15 |
| 16 class Profile; |
| 17 |
| 16 namespace ui { | 18 namespace ui { |
| 17 class Accelerator; | 19 class Accelerator; |
| 18 } // namespace ui | 20 } // namespace ui |
| 19 | 21 |
| 20 namespace chromeos { | 22 namespace chromeos { |
| 21 class ComponentExtensionIMEManager; | 23 class ComponentExtensionIMEManager; |
| 22 class InputMethodEngineInterface; | 24 class InputMethodEngineInterface; |
| 23 namespace input_method { | 25 namespace input_method { |
| 24 class InputMethodUtil; | 26 class InputMethodUtil; |
| 25 class ImeKeyboard; | 27 class ImeKeyboard; |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 const std::vector<std::string>& new_active_input_method_ids) = 0; | 137 const std::vector<std::string>& new_active_input_method_ids) = 0; |
| 136 | 138 |
| 137 // 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 |
| 138 // stops the system input method framework as needed. | 140 // stops the system input method framework as needed. |
| 139 virtual bool EnableInputMethod( | 141 virtual bool EnableInputMethod( |
| 140 const std::string& new_active_input_method_id) = 0; | 142 const std::string& new_active_input_method_id) = 0; |
| 141 | 143 |
| 142 // 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 |
| 143 // |instance|. | 145 // |instance|. |
| 144 virtual void AddInputMethodExtension( | 146 virtual void AddInputMethodExtension( |
| 147 Profile* profile, |
| 145 const std::string& imm_id, | 148 const std::string& imm_id, |
| 146 InputMethodEngineInterface* instance) = 0; | 149 InputMethodEngineInterface* instance) = 0; |
| 147 | 150 |
| 148 // Removes an input method extension. | 151 // Removes an input method extension. |
| 149 virtual void RemoveInputMethodExtension(const std::string& id) = 0; | 152 virtual void RemoveInputMethodExtension(Profile* profile, |
| 153 const std::string& id) = 0; |
| 150 | 154 |
| 151 // Returns a list of descriptors for all Input Method Extensions. | 155 // Returns a list of descriptors for all Input Method Extensions. |
| 152 virtual void GetInputMethodExtensions(InputMethodDescriptors* result) = 0; | 156 virtual void GetInputMethodExtensions(InputMethodDescriptors* result) = 0; |
| 153 | 157 |
| 154 // Sets the list of extension IME ids which should be enabled. | 158 // Sets the list of extension IME ids which should be enabled. |
| 155 virtual void SetEnabledExtensionImes(std::vector<std::string>* ids) = 0; | 159 virtual void SetEnabledExtensionImes(std::vector<std::string>* ids) = 0; |
| 156 | 160 |
| 157 // Sets current input method to login default (first owners, then hardware). | 161 // Sets current input method to login default (first owners, then hardware). |
| 158 virtual void SetInputMethodLoginDefault() = 0; | 162 virtual void SetInputMethodLoginDefault() = 0; |
| 159 | 163 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 | 199 |
| 196 // Migrates the input method id to extension-based input method id. | 200 // Migrates the input method id to extension-based input method id. |
| 197 virtual bool MigrateInputMethods( | 201 virtual bool MigrateInputMethods( |
| 198 std::vector<std::string>* input_method_ids) = 0; | 202 std::vector<std::string>* input_method_ids) = 0; |
| 199 }; | 203 }; |
| 200 | 204 |
| 201 } // namespace input_method | 205 } // namespace input_method |
| 202 } // namespace chromeos | 206 } // namespace chromeos |
| 203 | 207 |
| 204 #endif // CHROMEOS_IME_INPUT_METHOD_MANAGER_H_ | 208 #endif // CHROMEOS_IME_INPUT_METHOD_MANAGER_H_ |
| OLD | NEW |