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

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

Issue 467073002: Only initialize the input method list for once, no need to re-initialize for each profile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « chrome/browser/extensions/component_loader.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 // Sets the global instance. |instance| will be owned by the internal pointer 70 // Sets the global instance. |instance| will be owned by the internal pointer
71 // and deleted by Shutdown(). 71 // and deleted by Shutdown().
72 // TODO(nona): Instanciate InputMethodManagerImpl inside of this function once 72 // TODO(nona): Instanciate InputMethodManagerImpl inside of this function once
73 // crbug.com/164375 is fixed. 73 // crbug.com/164375 is fixed.
74 static CHROMEOS_EXPORT void Initialize(InputMethodManager* instance); 74 static CHROMEOS_EXPORT void Initialize(InputMethodManager* instance);
75 75
76 // Destroy the global instance. 76 // Destroy the global instance.
77 static CHROMEOS_EXPORT void Shutdown(); 77 static CHROMEOS_EXPORT void Shutdown();
78 78
79 // Initialize component extensions.
80 virtual void InitializeComponentExtension() = 0;
81
82 // Get the current UI session state (e.g. login screen, lock screen, etc.). 79 // Get the current UI session state (e.g. login screen, lock screen, etc.).
83 virtual State GetState() = 0; 80 virtual State GetState() = 0;
84 81
85 // Adds an observer to receive notifications of input method related 82 // Adds an observer to receive notifications of input method related
86 // changes as desribed in the Observer class above. 83 // changes as desribed in the Observer class above.
87 virtual void AddObserver(Observer* observer) = 0; 84 virtual void AddObserver(Observer* observer) = 0;
88 virtual void AddCandidateWindowObserver( 85 virtual void AddCandidateWindowObserver(
89 CandidateWindowObserver* observer) = 0; 86 CandidateWindowObserver* observer) = 0;
90 virtual void RemoveObserver(Observer* observer) = 0; 87 virtual void RemoveObserver(Observer* observer) = 0;
91 virtual void RemoveCandidateWindowObserver( 88 virtual void RemoveCandidateWindowObserver(
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 198
202 // Migrates the input method id to extension-based input method id. 199 // Migrates the input method id to extension-based input method id.
203 virtual bool MigrateInputMethods( 200 virtual bool MigrateInputMethods(
204 std::vector<std::string>* input_method_ids) = 0; 201 std::vector<std::string>* input_method_ids) = 0;
205 }; 202 };
206 203
207 } // namespace input_method 204 } // namespace input_method
208 } // namespace chromeos 205 } // namespace chromeos
209 206
210 #endif // CHROMEOS_IME_INPUT_METHOD_MANAGER_H_ 207 #endif // CHROMEOS_IME_INPUT_METHOD_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/component_loader.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698