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/component_extension_ime_manager.h" | 9 #include "chromeos/ime/component_extension_ime_manager.h" |
10 #include "chromeos/ime/fake_ime_keyboard.h" | 10 #include "chromeos/ime/fake_ime_keyboard.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 const ui::Accelerator& accelerator) OVERRIDE; | 59 const ui::Accelerator& accelerator) OVERRIDE; |
60 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) OVERRIDE; | 60 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) OVERRIDE; |
61 virtual InputMethodDescriptor GetCurrentInputMethod() const OVERRIDE; | 61 virtual InputMethodDescriptor GetCurrentInputMethod() const OVERRIDE; |
62 virtual bool IsISOLevel5ShiftUsedByCurrentInputMethod() const OVERRIDE; | 62 virtual bool IsISOLevel5ShiftUsedByCurrentInputMethod() const OVERRIDE; |
63 virtual bool IsAltGrUsedByCurrentInputMethod() const OVERRIDE; | 63 virtual bool IsAltGrUsedByCurrentInputMethod() const OVERRIDE; |
64 virtual ImeKeyboard* GetImeKeyboard() OVERRIDE; | 64 virtual ImeKeyboard* GetImeKeyboard() OVERRIDE; |
65 virtual InputMethodUtil* GetInputMethodUtil() OVERRIDE; | 65 virtual InputMethodUtil* GetInputMethodUtil() OVERRIDE; |
66 virtual ComponentExtensionIMEManager* | 66 virtual ComponentExtensionIMEManager* |
67 GetComponentExtensionIMEManager() OVERRIDE; | 67 GetComponentExtensionIMEManager() OVERRIDE; |
68 virtual bool IsLoginKeyboard(const std::string& layout) const OVERRIDE; | 68 virtual bool IsLoginKeyboard(const std::string& layout) const OVERRIDE; |
69 virtual bool MigrateXkbInputMethods( | 69 virtual bool MigrateInputMethods( |
70 std::vector<std::string>* input_method_ids) OVERRIDE; | 70 std::vector<std::string>* input_method_ids) OVERRIDE; |
71 | 71 |
72 // Sets an input method ID which will be returned by GetCurrentInputMethod(). | 72 // Sets an input method ID which will be returned by GetCurrentInputMethod(). |
73 void SetCurrentInputMethodId(const std::string& input_method_id) { | 73 void SetCurrentInputMethodId(const std::string& input_method_id) { |
74 current_input_method_id_ = input_method_id; | 74 current_input_method_id_ = input_method_id; |
75 } | 75 } |
76 | 76 |
77 void SetComponentExtensionIMEManager( | 77 void SetComponentExtensionIMEManager( |
78 scoped_ptr<ComponentExtensionIMEManager> comp_ime_manager); | 78 scoped_ptr<ComponentExtensionIMEManager> comp_ime_manager); |
79 | 79 |
(...skipping 21 matching lines...) Expand all Loading... |
101 // The active input method ids cache (actually default only) | 101 // The active input method ids cache (actually default only) |
102 std::vector<std::string> active_input_method_ids_; | 102 std::vector<std::string> active_input_method_ids_; |
103 | 103 |
104 DISALLOW_COPY_AND_ASSIGN(MockInputMethodManager); | 104 DISALLOW_COPY_AND_ASSIGN(MockInputMethodManager); |
105 }; | 105 }; |
106 | 106 |
107 } // namespace input_method | 107 } // namespace input_method |
108 } // namespace chromeos | 108 } // namespace chromeos |
109 | 109 |
110 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_MANAGER_H_ | 110 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_MANAGER_H_ |
OLD | NEW |