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

Side by Side Diff: ui/base/ime/chromeos/mock_input_method_manager.h

Issue 2891263002: chromeos: Remove some IME methods from ash::SystemTrayDelegate (Closed)
Patch Set: cleanup Created 3 years, 7 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
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 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;
James Cook 2017/05/23 00:01:44 I'm not using Clone(). This method has to exist so
24 void AddInputMethodExtension( 25 void AddInputMethodExtension(
25 const std::string& extension_id, 26 const std::string& extension_id,
26 const InputMethodDescriptors& descriptors, 27 const InputMethodDescriptors& descriptors,
27 ui::IMEEngineHandlerInterface* instance) override; 28 ui::IMEEngineHandlerInterface* instance) override;
28 void RemoveInputMethodExtension(const std::string& extension_id) override; 29 void RemoveInputMethodExtension(const std::string& extension_id) override;
29 void ChangeInputMethod(const std::string& input_method_id, 30 void ChangeInputMethod(const std::string& input_method_id,
30 bool show_message) override; 31 bool show_message) override;
31 bool EnableInputMethod( 32 bool EnableInputMethod(
32 const std::string& new_active_input_method_id) override; 33 const std::string& new_active_input_method_id) override;
33 void EnableLoginLayouts( 34 void EnableLoginLayouts(
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 bool IsEmojiHandwritingVoiceOnImeMenuEnabled() override; 110 bool IsEmojiHandwritingVoiceOnImeMenuEnabled() override;
110 111
111 private: 112 private:
112 DISALLOW_COPY_AND_ASSIGN(MockInputMethodManager); 113 DISALLOW_COPY_AND_ASSIGN(MockInputMethodManager);
113 }; 114 };
114 115
115 } // namespace input_method 116 } // namespace input_method
116 } // namespace chromeos 117 } // namespace chromeos
117 118
118 #endif // UI_BASE_IME_CHROMEOS_MOCK_INPUT_METHOD_MANAGER_H_ 119 #endif // UI_BASE_IME_CHROMEOS_MOCK_INPUT_METHOD_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/system_tray_delegate_chromeos.cc ('k') | ui/base/ime/chromeos/mock_input_method_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698