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

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

Issue 433163005: Refactoring for InputMethodEngine and InputMethodEventRouter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed browser_tests: ExtensionApiTest.InputImeApiBasic Created 6 years, 4 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 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 30 matching lines...) Expand all
41 virtual void EnableLoginLayouts( 41 virtual void EnableLoginLayouts(
42 const std::string& language_code, 42 const std::string& language_code,
43 const std::vector<std::string>& initial_layout) OVERRIDE; 43 const std::vector<std::string>& initial_layout) OVERRIDE;
44 virtual bool ReplaceEnabledInputMethods( 44 virtual bool ReplaceEnabledInputMethods(
45 const std::vector<std::string>& new_active_input_method_ids) OVERRIDE; 45 const std::vector<std::string>& new_active_input_method_ids) OVERRIDE;
46 virtual bool EnableInputMethod( 46 virtual bool EnableInputMethod(
47 const std::string& new_active_input_method_id) OVERRIDE; 47 const std::string& new_active_input_method_id) OVERRIDE;
48 virtual void ChangeInputMethod(const std::string& input_method_id) OVERRIDE; 48 virtual void ChangeInputMethod(const std::string& input_method_id) OVERRIDE;
49 virtual void ActivateInputMethodMenuItem(const std::string& key) OVERRIDE; 49 virtual void ActivateInputMethodMenuItem(const std::string& key) OVERRIDE;
50 virtual void AddInputMethodExtension( 50 virtual void AddInputMethodExtension(
51 Profile* profile, 51 const std::string& extension_id,
52 const std::string& id, 52 const InputMethodDescriptors& descriptors,
53 InputMethodEngineInterface* instance) OVERRIDE; 53 InputMethodEngineInterface* instance) OVERRIDE;
54 virtual void RemoveInputMethodExtension(Profile* profile, 54 virtual void RemoveInputMethodExtension(
55 const std::string& id) OVERRIDE; 55 const std::string& extension_id) OVERRIDE;
56 virtual void GetInputMethodExtensions( 56 virtual void GetInputMethodExtensions(
57 InputMethodDescriptors* result) OVERRIDE; 57 InputMethodDescriptors* result) OVERRIDE;
58 virtual void SetEnabledExtensionImes(std::vector<std::string>* ids) OVERRIDE; 58 virtual void SetEnabledExtensionImes(std::vector<std::string>* ids) OVERRIDE;
59 virtual void SetInputMethodLoginDefault() OVERRIDE; 59 virtual void SetInputMethodLoginDefault() OVERRIDE;
60 virtual void SetInputMethodLoginDefaultFromVPD( 60 virtual void SetInputMethodLoginDefaultFromVPD(
61 const std::string& locale, const std::string& layout) OVERRIDE; 61 const std::string& locale, const std::string& layout) OVERRIDE;
62 virtual bool SwitchToNextInputMethod() OVERRIDE; 62 virtual bool SwitchToNextInputMethod() OVERRIDE;
63 virtual bool SwitchToPreviousInputMethod( 63 virtual bool SwitchToPreviousInputMethod(
64 const ui::Accelerator& accelerator) OVERRIDE; 64 const ui::Accelerator& accelerator) OVERRIDE;
65 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) OVERRIDE; 65 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) OVERRIDE;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 // The active input method ids cache (actually default only) 105 // The active input method ids cache (actually default only)
106 std::vector<std::string> active_input_method_ids_; 106 std::vector<std::string> active_input_method_ids_;
107 107
108 DISALLOW_COPY_AND_ASSIGN(MockInputMethodManager); 108 DISALLOW_COPY_AND_ASSIGN(MockInputMethodManager);
109 }; 109 };
110 110
111 } // namespace input_method 111 } // namespace input_method
112 } // namespace chromeos 112 } // namespace chromeos
113 113
114 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_MANAGER_H_ 114 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698