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

Side by Side Diff: chrome/browser/chromeos/input_method/mock_input_method_manager.h

Issue 169033003: try 3 of: Split out InputMethodMenuManager from InputMethodManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re-uploaded with the fix Created 6 years, 10 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 | Annotate | Revision Log
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 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/fake_xkeyboard.h" 10 #include "chromeos/ime/fake_xkeyboard.h"
(...skipping 26 matching lines...) Expand all
37 virtual const InputMethodDescriptor* GetInputMethodFromId( 37 virtual const InputMethodDescriptor* GetInputMethodFromId(
38 const std::string& input_method_id) const OVERRIDE; 38 const std::string& input_method_id) const OVERRIDE;
39 virtual void EnableLoginLayouts( 39 virtual void EnableLoginLayouts(
40 const std::string& language_code, 40 const std::string& language_code,
41 const std::vector<std::string>& initial_layout) OVERRIDE; 41 const std::vector<std::string>& initial_layout) OVERRIDE;
42 virtual bool ReplaceEnabledInputMethods( 42 virtual bool ReplaceEnabledInputMethods(
43 const std::vector<std::string>& new_active_input_method_ids) OVERRIDE; 43 const std::vector<std::string>& new_active_input_method_ids) OVERRIDE;
44 virtual bool EnableInputMethod( 44 virtual bool EnableInputMethod(
45 const std::string& new_active_input_method_id) OVERRIDE; 45 const std::string& new_active_input_method_id) OVERRIDE;
46 virtual void ChangeInputMethod(const std::string& input_method_id) OVERRIDE; 46 virtual void ChangeInputMethod(const std::string& input_method_id) OVERRIDE;
47 virtual void ActivateInputMethodProperty(const std::string& key) OVERRIDE; 47 virtual void ActivateInputMethodMenuItem(const std::string& key) OVERRIDE;
48 virtual void AddInputMethodExtension( 48 virtual void AddInputMethodExtension(
49 const std::string& id, 49 const std::string& id,
50 InputMethodEngineInterface* instance) OVERRIDE; 50 InputMethodEngineInterface* instance) OVERRIDE;
51 virtual void RemoveInputMethodExtension(const std::string& id) OVERRIDE; 51 virtual void RemoveInputMethodExtension(const std::string& id) OVERRIDE;
52 virtual void GetInputMethodExtensions( 52 virtual void GetInputMethodExtensions(
53 InputMethodDescriptors* result) OVERRIDE; 53 InputMethodDescriptors* result) OVERRIDE;
54 virtual void SetEnabledExtensionImes(std::vector<std::string>* ids) OVERRIDE; 54 virtual void SetEnabledExtensionImes(std::vector<std::string>* ids) OVERRIDE;
55 virtual void SetInputMethodLoginDefault() OVERRIDE; 55 virtual void SetInputMethodLoginDefault() OVERRIDE;
56 virtual bool SwitchToNextInputMethod() OVERRIDE; 56 virtual bool SwitchToNextInputMethod() OVERRIDE;
57 virtual bool SwitchToPreviousInputMethod( 57 virtual bool SwitchToPreviousInputMethod(
58 const ui::Accelerator& accelerator) OVERRIDE; 58 const ui::Accelerator& accelerator) OVERRIDE;
59 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) OVERRIDE; 59 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) OVERRIDE;
60 virtual InputMethodDescriptor GetCurrentInputMethod() const OVERRIDE; 60 virtual InputMethodDescriptor GetCurrentInputMethod() const OVERRIDE;
61 virtual InputMethodPropertyList
62 GetCurrentInputMethodProperties() const OVERRIDE;
63 virtual void SetCurrentInputMethodProperties(
64 const InputMethodPropertyList& property_list) OVERRIDE;
65 virtual XKeyboard* GetXKeyboard() OVERRIDE; 61 virtual XKeyboard* GetXKeyboard() OVERRIDE;
66 virtual InputMethodUtil* GetInputMethodUtil() OVERRIDE; 62 virtual InputMethodUtil* GetInputMethodUtil() OVERRIDE;
67 virtual ComponentExtensionIMEManager* 63 virtual ComponentExtensionIMEManager*
68 GetComponentExtensionIMEManager() OVERRIDE; 64 GetComponentExtensionIMEManager() OVERRIDE;
69 virtual bool IsLoginKeyboard(const std::string& layout) const OVERRIDE; 65 virtual bool IsLoginKeyboard(const std::string& layout) const OVERRIDE;
70 66
71 // Sets an input method ID which will be returned by GetCurrentInputMethod(). 67 // Sets an input method ID which will be returned by GetCurrentInputMethod().
72 void SetCurrentInputMethodId(const std::string& input_method_id) { 68 void SetCurrentInputMethodId(const std::string& input_method_id) {
73 current_input_method_id_ = input_method_id; 69 current_input_method_id_ = input_method_id;
74 } 70 }
(...skipping 17 matching lines...) Expand all
92 // The active input method ids cache (actually default only) 88 // The active input method ids cache (actually default only)
93 std::vector<std::string> active_input_method_ids_; 89 std::vector<std::string> active_input_method_ids_;
94 90
95 DISALLOW_COPY_AND_ASSIGN(MockInputMethodManager); 91 DISALLOW_COPY_AND_ASSIGN(MockInputMethodManager);
96 }; 92 };
97 93
98 } // namespace input_method 94 } // namespace input_method
99 } // namespace chromeos 95 } // namespace chromeos
100 96
101 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_MANAGER_H_ 97 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698