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 UI_BASE_IME_CHROMEOS_MOCK_INPUT_METHOD_MANAGER_H_ | 5 #ifndef UI_BASE_IME_CHROMEOS_MOCK_INPUT_METHOD_MANAGER_H_ |
6 #define UI_BASE_IME_CHROMEOS_MOCK_INPUT_METHOD_MANAGER_H_ | 6 #define UI_BASE_IME_CHROMEOS_MOCK_INPUT_METHOD_MANAGER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "ui/base/ime/chromeos/input_method_manager.h" | 9 #include "ui/base/ime/chromeos/input_method_manager.h" |
10 | 10 |
11 namespace chromeos { | 11 namespace chromeos { |
12 namespace input_method { | 12 namespace input_method { |
13 class InputMethodUtil; | 13 class InputMethodUtil; |
14 class ImeKeyboard; | 14 class ImeKeyboard; |
15 | 15 |
16 // The mock InputMethodManager for testing. | 16 // The mock InputMethodManager for testing. |
17 class UI_BASE_IME_EXPORT MockInputMethodManager : public InputMethodManager { | 17 class UI_BASE_IME_EXPORT MockInputMethodManager : public InputMethodManager { |
18 public: | 18 public: |
19 public: | 19 public: |
20 class State : public InputMethodManager::State { | 20 class State : public InputMethodManager::State { |
21 public: | 21 public: |
22 State(); | 22 State(); |
23 | 23 |
24 scoped_refptr<InputMethodManager::State> Clone() const override; | |
25 void AddInputMethodExtension( | 24 void AddInputMethodExtension( |
26 const std::string& extension_id, | 25 const std::string& extension_id, |
27 const InputMethodDescriptors& descriptors, | 26 const InputMethodDescriptors& descriptors, |
28 ui::IMEEngineHandlerInterface* instance) override; | 27 ui::IMEEngineHandlerInterface* instance) override; |
29 void RemoveInputMethodExtension(const std::string& extension_id) override; | 28 void RemoveInputMethodExtension(const std::string& extension_id) override; |
30 void ChangeInputMethod(const std::string& input_method_id, | 29 void ChangeInputMethod(const std::string& input_method_id, |
31 bool show_message) override; | 30 bool show_message) override; |
32 bool EnableInputMethod( | 31 bool EnableInputMethod( |
33 const std::string& new_active_input_method_id) override; | 32 const std::string& new_active_input_method_id) override; |
34 void EnableLoginLayouts( | 33 void EnableLoginLayouts( |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 bool IsEmojiHandwritingVoiceOnImeMenuEnabled() override; | 109 bool IsEmojiHandwritingVoiceOnImeMenuEnabled() override; |
111 | 110 |
112 private: | 111 private: |
113 DISALLOW_COPY_AND_ASSIGN(MockInputMethodManager); | 112 DISALLOW_COPY_AND_ASSIGN(MockInputMethodManager); |
114 }; | 113 }; |
115 | 114 |
116 } // namespace input_method | 115 } // namespace input_method |
117 } // namespace chromeos | 116 } // namespace chromeos |
118 | 117 |
119 #endif // UI_BASE_IME_CHROMEOS_MOCK_INPUT_METHOD_MANAGER_H_ | 118 #endif // UI_BASE_IME_CHROMEOS_MOCK_INPUT_METHOD_MANAGER_H_ |
OLD | NEW |