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

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

Issue 2274013003: Keeps the opt-in IME menu in lock screen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments. Created 4 years, 3 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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 void RemoveImeMenuObserver( 164 void RemoveImeMenuObserver(
165 InputMethodManager::ImeMenuObserver* observer) override; 165 InputMethodManager::ImeMenuObserver* observer) override;
166 std::unique_ptr<InputMethodDescriptors> GetSupportedInputMethods() 166 std::unique_ptr<InputMethodDescriptors> GetSupportedInputMethods()
167 const override; 167 const override;
168 void ActivateInputMethodMenuItem(const std::string& key) override; 168 void ActivateInputMethodMenuItem(const std::string& key) override;
169 bool IsISOLevel5ShiftUsedByCurrentInputMethod() const override; 169 bool IsISOLevel5ShiftUsedByCurrentInputMethod() const override;
170 bool IsAltGrUsedByCurrentInputMethod() const override; 170 bool IsAltGrUsedByCurrentInputMethod() const override;
171 void NotifyImeMenuItemsChanged( 171 void NotifyImeMenuItemsChanged(
172 const std::string& engine_id, 172 const std::string& engine_id,
173 const std::vector<InputMethodManager::MenuItem>& items) override; 173 const std::vector<InputMethodManager::MenuItem>& items) override;
174 bool GetImeMenuActivation(Profile* profile) override;
174 175
175 // chromeos::UserAddingScreen: 176 // chromeos::UserAddingScreen:
176 void OnUserAddingStarted() override; 177 void OnUserAddingStarted() override;
177 void OnUserAddingFinished() override; 178 void OnUserAddingFinished() override;
178 179
179 ImeKeyboard* GetImeKeyboard() override; 180 ImeKeyboard* GetImeKeyboard() override;
180 InputMethodUtil* GetInputMethodUtil() override; 181 InputMethodUtil* GetInputMethodUtil() override;
181 ComponentExtensionIMEManager* GetComponentExtensionIMEManager() override; 182 ComponentExtensionIMEManager* GetComponentExtensionIMEManager() override;
182 bool IsLoginKeyboard(const std::string& layout) const override; 183 bool IsLoginKeyboard(const std::string& layout) const override;
183 184
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 std::unique_ptr<ComponentExtensionIMEManager> 278 std::unique_ptr<ComponentExtensionIMEManager>
278 component_extension_ime_manager_; 279 component_extension_ime_manager_;
279 280
280 // An object for switching XKB layouts and keyboard status like caps lock and 281 // An object for switching XKB layouts and keyboard status like caps lock and
281 // auto-repeat interval. 282 // auto-repeat interval.
282 std::unique_ptr<ImeKeyboard> keyboard_; 283 std::unique_ptr<ImeKeyboard> keyboard_;
283 284
284 // Whether load IME extensions. 285 // Whether load IME extensions.
285 bool enable_extension_loading_; 286 bool enable_extension_loading_;
286 287
287 // Whether the expanded IME menu is activated.
288 bool is_ime_menu_activated_;
289
290 // The engine map from extension_id to an engine. 288 // The engine map from extension_id to an engine.
291 typedef std::map<std::string, ui::IMEEngineHandlerInterface*> EngineMap; 289 typedef std::map<std::string, ui::IMEEngineHandlerInterface*> EngineMap;
292 typedef std::map<Profile*, EngineMap, ProfileCompare> ProfileEngineMap; 290 typedef std::map<Profile*, EngineMap, ProfileCompare> ProfileEngineMap;
293 ProfileEngineMap engine_map_; 291 ProfileEngineMap engine_map_;
294 292
293 // The opt-in IME menu activation state of each profile.
294 std::map<Profile*, bool> menu_activated_for_profile_;
295
295 DISALLOW_COPY_AND_ASSIGN(InputMethodManagerImpl); 296 DISALLOW_COPY_AND_ASSIGN(InputMethodManagerImpl);
296 }; 297 };
297 298
298 } // namespace input_method 299 } // namespace input_method
299 } // namespace chromeos 300 } // namespace chromeos
300 301
301 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_ 302 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698