| OLD | NEW |
| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 virtual bool SwitchToPreviousInputMethod( | 89 virtual bool SwitchToPreviousInputMethod( |
| 91 const ui::Accelerator& accelerator) OVERRIDE; | 90 const ui::Accelerator& accelerator) OVERRIDE; |
| 92 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) OVERRIDE; | 91 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) OVERRIDE; |
| 93 virtual InputMethodDescriptor GetCurrentInputMethod() const OVERRIDE; | 92 virtual InputMethodDescriptor GetCurrentInputMethod() const OVERRIDE; |
| 94 virtual InputMethodPropertyList | 93 virtual InputMethodPropertyList |
| 95 GetCurrentInputMethodProperties() const OVERRIDE; | 94 GetCurrentInputMethodProperties() const OVERRIDE; |
| 96 virtual XKeyboard* GetXKeyboard() OVERRIDE; | 95 virtual XKeyboard* GetXKeyboard() OVERRIDE; |
| 97 virtual InputMethodUtil* GetInputMethodUtil() OVERRIDE; | 96 virtual InputMethodUtil* GetInputMethodUtil() OVERRIDE; |
| 98 virtual ComponentExtensionIMEManager* | 97 virtual ComponentExtensionIMEManager* |
| 99 GetComponentExtensionIMEManager() OVERRIDE; | 98 GetComponentExtensionIMEManager() OVERRIDE; |
| 100 virtual bool IsFullLatinKeyboard(const std::string& layout) const OVERRIDE; | 99 virtual bool IsLoginKeyboard(const std::string& layout) const OVERRIDE; |
| 101 | 100 |
| 102 // Sets |ibus_controller_|. | 101 // Sets |ibus_controller_|. |
| 103 void SetIBusControllerForTesting(IBusController* ibus_controller); | 102 void SetIBusControllerForTesting(IBusController* ibus_controller); |
| 104 // Sets |candidate_window_controller_|. | 103 // Sets |candidate_window_controller_|. |
| 105 void SetCandidateWindowControllerForTesting( | 104 void SetCandidateWindowControllerForTesting( |
| 106 CandidateWindowController* candidate_window_controller); | 105 CandidateWindowController* candidate_window_controller); |
| 107 // Sets |xkeyboard_|. | 106 // Sets |xkeyboard_|. |
| 108 void SetXKeyboardForTesting(XKeyboard* xkeyboard); | 107 void SetXKeyboardForTesting(XKeyboard* xkeyboard); |
| 109 // Initialize |component_extension_manager_|. | 108 // Initialize |component_extension_manager_|. |
| 110 void InitializeComponentExtensionForTesting( | 109 void InitializeComponentExtensionForTesting( |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 // An object for switching XKB layouts and keyboard status like caps lock and | 227 // An object for switching XKB layouts and keyboard status like caps lock and |
| 229 // auto-repeat interval. | 228 // auto-repeat interval. |
| 230 scoped_ptr<XKeyboard> xkeyboard_; | 229 scoped_ptr<XKeyboard> xkeyboard_; |
| 231 | 230 |
| 232 std::string pending_input_method_; | 231 std::string pending_input_method_; |
| 233 | 232 |
| 234 base::ThreadChecker thread_checker_; | 233 base::ThreadChecker thread_checker_; |
| 235 | 234 |
| 236 base::WeakPtrFactory<InputMethodManagerImpl> weak_ptr_factory_; | 235 base::WeakPtrFactory<InputMethodManagerImpl> weak_ptr_factory_; |
| 237 | 236 |
| 238 // Check if input method id allows full latin input (for entering passwords on | |
| 239 // login screen) | |
| 240 FullLatinKeyboardLayoutChecker full_latin_keyboard_checker; | |
| 241 | |
| 242 DISALLOW_COPY_AND_ASSIGN(InputMethodManagerImpl); | 237 DISALLOW_COPY_AND_ASSIGN(InputMethodManagerImpl); |
| 243 }; | 238 }; |
| 244 | 239 |
| 245 } // namespace input_method | 240 } // namespace input_method |
| 246 } // namespace chromeos | 241 } // namespace chromeos |
| 247 | 242 |
| 248 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_ | 243 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_ |
| OLD | NEW |