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

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

Powered by Google App Engine
This is Rietveld 408576698