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

Side by Side Diff: chrome/browser/chromeos/input_method/input_method_manager_impl.h

Issue 462383003: Remove the check for loading component IME extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit. 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 CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_ 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 14 matching lines...) Expand all
25 namespace input_method { 25 namespace input_method {
26 class InputMethodDelegate; 26 class InputMethodDelegate;
27 class ImeKeyboard; 27 class ImeKeyboard;
28 28
29 // The implementation of InputMethodManager. 29 // The implementation of InputMethodManager.
30 class InputMethodManagerImpl : public InputMethodManager, 30 class InputMethodManagerImpl : public InputMethodManager,
31 public CandidateWindowController::Observer { 31 public CandidateWindowController::Observer {
32 public: 32 public:
33 // Constructs an InputMethodManager instance. The client is responsible for 33 // Constructs an InputMethodManager instance. The client is responsible for
34 // calling |SetState| in response to relevant changes in browser state. 34 // calling |SetState| in response to relevant changes in browser state.
35 explicit InputMethodManagerImpl(scoped_ptr<InputMethodDelegate> delegate); 35 InputMethodManagerImpl(scoped_ptr<InputMethodDelegate> delegate,
36 bool enable_extension_loading);
36 virtual ~InputMethodManagerImpl(); 37 virtual ~InputMethodManagerImpl();
37 38
38 // Receives notification of an InputMethodManager::State transition. 39 // Receives notification of an InputMethodManager::State transition.
39 void SetState(State new_state); 40 void SetState(State new_state);
40 41
41 // InputMethodManager override: 42 // InputMethodManager override:
42 virtual State GetState() OVERRIDE; 43 virtual State GetState() OVERRIDE;
43 virtual void InitializeComponentExtension() OVERRIDE; 44 virtual void InitializeComponentExtension() OVERRIDE;
44 virtual void AddObserver(InputMethodManager::Observer* observer) OVERRIDE; 45 virtual void AddObserver(InputMethodManager::Observer* observer) OVERRIDE;
45 virtual void AddCandidateWindowObserver( 46 virtual void AddCandidateWindowObserver(
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 // An object which provides component extension ime management functions. 201 // An object which provides component extension ime management functions.
201 scoped_ptr<ComponentExtensionIMEManager> component_extension_ime_manager_; 202 scoped_ptr<ComponentExtensionIMEManager> component_extension_ime_manager_;
202 203
203 // An object for switching XKB layouts and keyboard status like caps lock and 204 // An object for switching XKB layouts and keyboard status like caps lock and
204 // auto-repeat interval. 205 // auto-repeat interval.
205 scoped_ptr<ImeKeyboard> keyboard_; 206 scoped_ptr<ImeKeyboard> keyboard_;
206 207
207 // The engine map from extension_id to an engine. 208 // The engine map from extension_id to an engine.
208 std::map<std::string, InputMethodEngineInterface*> engine_map_; 209 std::map<std::string, InputMethodEngineInterface*> engine_map_;
209 210
211 // Whether load IME extensions.
212 bool enable_extension_loading_;
213
210 DISALLOW_COPY_AND_ASSIGN(InputMethodManagerImpl); 214 DISALLOW_COPY_AND_ASSIGN(InputMethodManagerImpl);
211 }; 215 };
212 216
213 } // namespace input_method 217 } // namespace input_method
214 } // namespace chromeos 218 } // namespace chromeos
215 219
216 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_ 220 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698