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

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

Issue 10907196: Add the ability to filter out extension IMEs from the language settings page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix mock input manager Created 8 years, 3 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_manager.h" 8 #include "chrome/browser/chromeos/input_method/input_method_manager.h"
9 #include "chrome/browser/chromeos/input_method/input_method_util.h" 9 #include "chrome/browser/chromeos/input_method/input_method_util.h"
10 #include "chrome/browser/chromeos/input_method/input_method_whitelist.h" 10 #include "chrome/browser/chromeos/input_method/input_method_whitelist.h"
(...skipping 29 matching lines...) Expand all
40 const InputMethodConfigValue& value) OVERRIDE; 40 const InputMethodConfigValue& value) OVERRIDE;
41 virtual void ChangeInputMethod(const std::string& input_method_id) OVERRIDE; 41 virtual void ChangeInputMethod(const std::string& input_method_id) OVERRIDE;
42 virtual void ActivateInputMethodProperty(const std::string& key) OVERRIDE; 42 virtual void ActivateInputMethodProperty(const std::string& key) OVERRIDE;
43 virtual void AddInputMethodExtension( 43 virtual void AddInputMethodExtension(
44 const std::string& id, 44 const std::string& id,
45 const std::string& name, 45 const std::string& name,
46 const std::vector<std::string>& layouts, 46 const std::vector<std::string>& layouts,
47 const std::string& language, 47 const std::string& language,
48 InputMethodEngine* instance) OVERRIDE; 48 InputMethodEngine* instance) OVERRIDE;
49 virtual void RemoveInputMethodExtension(const std::string& id) OVERRIDE; 49 virtual void RemoveInputMethodExtension(const std::string& id) OVERRIDE;
50 virtual void GetInputMethodExtensions(
51 InputMethodDescriptors* result) OVERRIDE;
52 virtual void SetFilteredExtensionImes(std::vector<std::string>* ids) OVERRIDE;
50 virtual bool SwitchToNextInputMethod() OVERRIDE; 53 virtual bool SwitchToNextInputMethod() OVERRIDE;
51 virtual bool SwitchToPreviousInputMethod() OVERRIDE; 54 virtual bool SwitchToPreviousInputMethod() OVERRIDE;
52 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) OVERRIDE; 55 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) OVERRIDE;
53 virtual InputMethodDescriptor GetCurrentInputMethod() const OVERRIDE; 56 virtual InputMethodDescriptor GetCurrentInputMethod() const OVERRIDE;
54 virtual InputMethodPropertyList 57 virtual InputMethodPropertyList
55 GetCurrentInputMethodProperties() const OVERRIDE; 58 GetCurrentInputMethodProperties() const OVERRIDE;
56 virtual XKeyboard* GetXKeyboard() OVERRIDE; 59 virtual XKeyboard* GetXKeyboard() OVERRIDE;
57 virtual InputMethodUtil* GetInputMethodUtil() OVERRIDE; 60 virtual InputMethodUtil* GetInputMethodUtil() OVERRIDE;
58 61
59 // Sets an input method ID which will be returned by GetCurrentInputMethod(). 62 // Sets an input method ID which will be returned by GetCurrentInputMethod().
(...skipping 15 matching lines...) Expand all
75 InputMethodUtil util_; 78 InputMethodUtil util_;
76 MockXKeyboard xkeyboard_; 79 MockXKeyboard xkeyboard_;
77 80
78 DISALLOW_COPY_AND_ASSIGN(MockInputMethodManager); 81 DISALLOW_COPY_AND_ASSIGN(MockInputMethodManager);
79 }; 82 };
80 83
81 } // namespace input_method 84 } // namespace input_method
82 } // namespace chromeos 85 } // namespace chromeos
83 86
84 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_MANAGER_H_ 87 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698