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

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

Issue 22980018: Disable non Latin keyboard layout on Lock screen and Sign-in screen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix typo Created 7 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 | Annotate | Revision Log
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>
11 11
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/observer_list.h" 13 #include "base/observer_list.h"
14 #include "base/threading/thread_checker.h" 14 #include "base/threading/thread_checker.h"
15 #include "chrome/browser/chromeos/input_method/candidate_window_controller.h" 15 #include "chrome/browser/chromeos/input_method/candidate_window_controller.h"
16 #include "chrome/browser/chromeos/input_method/ibus_controller.h" 16 #include "chrome/browser/chromeos/input_method/ibus_controller.h"
17 #include "chrome/browser/chromeos/input_method/input_method_manager_impl_ll.h"
18 #include "chrome/browser/chromeos/input_method/input_method_util.h" 17 #include "chrome/browser/chromeos/input_method/input_method_util.h"
19 #include "chromeos/ime/ibus_daemon_controller.h" 18 #include "chromeos/ime/ibus_daemon_controller.h"
20 #include "chromeos/ime/input_method_manager.h" 19 #include "chromeos/ime/input_method_manager.h"
21 #include "chromeos/ime/input_method_whitelist.h" 20 #include "chromeos/ime/input_method_whitelist.h"
22 21
23 namespace chromeos { 22 namespace chromeos {
24 class ComponentExtensionIMEManager; 23 class ComponentExtensionIMEManager;
25 class ComponentExtensionIMEManagerDelegate; 24 class ComponentExtensionIMEManagerDelegate;
26 class InputMethodEngineIBus; 25 class InputMethodEngineIBus;
27 namespace input_method { 26 namespace input_method {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 virtual bool SwitchToPreviousInputMethod( 93 virtual bool SwitchToPreviousInputMethod(
95 const ui::Accelerator& accelerator) OVERRIDE; 94 const ui::Accelerator& accelerator) OVERRIDE;
96 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) OVERRIDE; 95 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) OVERRIDE;
97 virtual InputMethodDescriptor GetCurrentInputMethod() const OVERRIDE; 96 virtual InputMethodDescriptor GetCurrentInputMethod() const OVERRIDE;
98 virtual InputMethodPropertyList 97 virtual InputMethodPropertyList
99 GetCurrentInputMethodProperties() const OVERRIDE; 98 GetCurrentInputMethodProperties() const OVERRIDE;
100 virtual XKeyboard* GetXKeyboard() OVERRIDE; 99 virtual XKeyboard* GetXKeyboard() OVERRIDE;
101 virtual InputMethodUtil* GetInputMethodUtil() OVERRIDE; 100 virtual InputMethodUtil* GetInputMethodUtil() OVERRIDE;
102 virtual ComponentExtensionIMEManager* 101 virtual ComponentExtensionIMEManager*
103 GetComponentExtensionIMEManager() OVERRIDE; 102 GetComponentExtensionIMEManager() OVERRIDE;
104 virtual bool IsFullLatinKeyboard(const std::string& layout) const OVERRIDE; 103 virtual bool IsLoginKeyboard(const std::string& layout) const OVERRIDE;
105 104
106 // Sets |ibus_controller_|. 105 // Sets |ibus_controller_|.
107 void SetIBusControllerForTesting(IBusController* ibus_controller); 106 void SetIBusControllerForTesting(IBusController* ibus_controller);
108 // Sets |candidate_window_controller_|. 107 // Sets |candidate_window_controller_|.
109 void SetCandidateWindowControllerForTesting( 108 void SetCandidateWindowControllerForTesting(
110 CandidateWindowController* candidate_window_controller); 109 CandidateWindowController* candidate_window_controller);
111 // Sets |xkeyboard_|. 110 // Sets |xkeyboard_|.
112 void SetXKeyboardForTesting(XKeyboard* xkeyboard); 111 void SetXKeyboardForTesting(XKeyboard* xkeyboard);
113 // Initialize |component_extension_manager_|. 112 // Initialize |component_extension_manager_|.
114 void InitializeComponentExtensionForTesting( 113 void InitializeComponentExtensionForTesting(
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 // An object for switching XKB layouts and keyboard status like caps lock and 231 // An object for switching XKB layouts and keyboard status like caps lock and
233 // auto-repeat interval. 232 // auto-repeat interval.
234 scoped_ptr<XKeyboard> xkeyboard_; 233 scoped_ptr<XKeyboard> xkeyboard_;
235 234
236 std::string pending_input_method_; 235 std::string pending_input_method_;
237 236
238 base::ThreadChecker thread_checker_; 237 base::ThreadChecker thread_checker_;
239 238
240 base::WeakPtrFactory<InputMethodManagerImpl> weak_ptr_factory_; 239 base::WeakPtrFactory<InputMethodManagerImpl> weak_ptr_factory_;
241 240
242 // Check if input method id allows full latin input (for entering passwords on
243 // login screen)
244 FullLatinKeyboardLayoutChecker full_latin_keyboard_checker;
245
246 DISALLOW_COPY_AND_ASSIGN(InputMethodManagerImpl); 241 DISALLOW_COPY_AND_ASSIGN(InputMethodManagerImpl);
247 }; 242 };
248 243
249 } // namespace input_method 244 } // namespace input_method
250 } // namespace chromeos 245 } // namespace chromeos
251 246
252 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_ 247 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698