Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(751)

Side by Side Diff: chromeos/ime/input_method_manager.h

Issue 433163005: Refactoring for InputMethodEngine and InputMethodEventRouter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed browser_tests: ExtensionApiTest.InputImeApiBasic Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698