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

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

Issue 306053005: Adds whitelisted non-extension-based input methods if no component extensions are at present (e.g. … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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 | « no previous file | chrome/browser/chromeos/input_method/input_method_manager_impl.cc » ('j') | 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 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 // input_method_ids[N+1]. 135 // input_method_ids[N+1].
136 void SwitchToNextInputMethodInternal( 136 void SwitchToNextInputMethodInternal(
137 const std::vector<std::string>& input_method_ids, 137 const std::vector<std::string>& input_method_ids,
138 const std::string& current_input_method_id); 138 const std::string& current_input_method_id);
139 139
140 // Change system input method. 140 // Change system input method.
141 // Returns true if the system input method is changed. 141 // Returns true if the system input method is changed.
142 bool ChangeInputMethodInternal(const std::string& input_method_id, 142 bool ChangeInputMethodInternal(const std::string& input_method_id,
143 bool show_message); 143 bool show_message);
144 144
145 // Gets whether the XKB extension is loaded successfully by checking the XKB
146 // input methods in input methods in |component_extension_ime_manager_|.
147 bool IsXkbComponentExtensionAvailable() const;
148
145 // Called when the ComponentExtensionIMEManagerDelegate is initialized. 149 // Called when the ComponentExtensionIMEManagerDelegate is initialized.
146 void OnComponentExtensionInitialized( 150 void OnComponentExtensionInitialized(
147 scoped_ptr<ComponentExtensionIMEManagerDelegate> delegate); 151 scoped_ptr<ComponentExtensionIMEManagerDelegate> delegate);
148 void InitializeComponentExtension(); 152 void InitializeComponentExtension();
149 153
150 // Loads necessary component extensions. 154 // Loads necessary component extensions.
151 // TODO(nona): Support dynamical unloading. 155 // TODO(nona): Support dynamical unloading.
152 void LoadNecessaryComponentExtensions(); 156 void LoadNecessaryComponentExtensions();
153 157
154 // Adds new input method to given list if possible 158 // Adds new input method to given list if possible
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 typedef std::map<Profile*, EngineMap, ProfileCompare> ProfileEngineMap; 227 typedef std::map<Profile*, EngineMap, ProfileCompare> ProfileEngineMap;
224 ProfileEngineMap profile_engine_map_; 228 ProfileEngineMap profile_engine_map_;
225 229
226 DISALLOW_COPY_AND_ASSIGN(InputMethodManagerImpl); 230 DISALLOW_COPY_AND_ASSIGN(InputMethodManagerImpl);
227 }; 231 };
228 232
229 } // namespace input_method 233 } // namespace input_method
230 } // namespace chromeos 234 } // namespace chromeos
231 235
232 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_ 236 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/input_method/input_method_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698