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_MOCK_INPUT_METHOD_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_MANAGER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_MANAGER_H_ |
7 | 7 |
8 #include "chrome/browser/chromeos/input_method/input_method_util.h" | 8 #include "chrome/browser/chromeos/input_method/input_method_util.h" |
9 #include "chromeos/ime/fake_input_method_delegate.h" | 9 #include "chromeos/ime/fake_input_method_delegate.h" |
10 #include "chromeos/ime/input_method_manager.h" | 10 #include "chromeos/ime/input_method_manager.h" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 virtual bool SwitchToPreviousInputMethod( | 62 virtual bool SwitchToPreviousInputMethod( |
63 const ui::Accelerator& accelerator) OVERRIDE; | 63 const ui::Accelerator& accelerator) OVERRIDE; |
64 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) OVERRIDE; | 64 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) OVERRIDE; |
65 virtual InputMethodDescriptor GetCurrentInputMethod() const OVERRIDE; | 65 virtual InputMethodDescriptor GetCurrentInputMethod() const OVERRIDE; |
66 virtual InputMethodPropertyList | 66 virtual InputMethodPropertyList |
67 GetCurrentInputMethodProperties() const OVERRIDE; | 67 GetCurrentInputMethodProperties() const OVERRIDE; |
68 virtual XKeyboard* GetXKeyboard() OVERRIDE; | 68 virtual XKeyboard* GetXKeyboard() OVERRIDE; |
69 virtual InputMethodUtil* GetInputMethodUtil() OVERRIDE; | 69 virtual InputMethodUtil* GetInputMethodUtil() OVERRIDE; |
70 virtual ComponentExtensionIMEManager* | 70 virtual ComponentExtensionIMEManager* |
71 GetComponentExtensionIMEManager() OVERRIDE; | 71 GetComponentExtensionIMEManager() OVERRIDE; |
72 virtual bool IsFullLatinKeyboard(const std::string& layout) const OVERRIDE; | 72 virtual bool IsLoginKeyboard(const std::string& layout) const OVERRIDE; |
73 | 73 |
74 // Sets an input method ID which will be returned by GetCurrentInputMethod(). | 74 // Sets an input method ID which will be returned by GetCurrentInputMethod(). |
75 void SetCurrentInputMethodId(const std::string& input_method_id) { | 75 void SetCurrentInputMethodId(const std::string& input_method_id) { |
76 current_input_method_id_ = input_method_id; | 76 current_input_method_id_ = input_method_id; |
77 } | 77 } |
78 | 78 |
79 // Set values that will be provided to the InputMethodUtil. | 79 // Set values that will be provided to the InputMethodUtil. |
80 void set_application_locale(const std::string& value); | 80 void set_application_locale(const std::string& value); |
81 void set_hardware_keyboard_layout(const std::string& value); | 81 void set_hardware_keyboard_layout(const std::string& value); |
82 | 82 |
(...skipping 13 matching lines...) Expand all Loading... |
96 // The active input method ids cache (actually default only) | 96 // The active input method ids cache (actually default only) |
97 std::vector<std::string> active_input_method_ids_; | 97 std::vector<std::string> active_input_method_ids_; |
98 | 98 |
99 DISALLOW_COPY_AND_ASSIGN(MockInputMethodManager); | 99 DISALLOW_COPY_AND_ASSIGN(MockInputMethodManager); |
100 }; | 100 }; |
101 | 101 |
102 } // namespace input_method | 102 } // namespace input_method |
103 } // namespace chromeos | 103 } // namespace chromeos |
104 | 104 |
105 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_MANAGER_H_ | 105 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_MANAGER_H_ |
OLD | NEW |