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 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 28 matching lines...) Expand all Loading... |
39 const std::string& config_name, | 39 const std::string& config_name, |
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) OVERRIDE; | 47 const std::string& language) OVERRIDE; |
48 virtual void RemoveInputMethodExtension(const std::string& id) OVERRIDE; | 48 virtual void RemoveInputMethodExtension(const std::string& id) OVERRIDE; |
49 virtual void EnableHotkeys() OVERRIDE; | |
50 virtual void DisableHotkeys() OVERRIDE; | |
51 virtual bool SwitchToNextInputMethod() OVERRIDE; | 49 virtual bool SwitchToNextInputMethod() OVERRIDE; |
52 virtual bool SwitchToPreviousInputMethod() OVERRIDE; | 50 virtual bool SwitchToPreviousInputMethod() OVERRIDE; |
53 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) OVERRIDE; | 51 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) OVERRIDE; |
54 virtual InputMethodDescriptor GetCurrentInputMethod() const OVERRIDE; | 52 virtual InputMethodDescriptor GetCurrentInputMethod() const OVERRIDE; |
55 virtual InputMethodPropertyList | 53 virtual InputMethodPropertyList |
56 GetCurrentInputMethodProperties() const OVERRIDE; | 54 GetCurrentInputMethodProperties() const OVERRIDE; |
57 virtual XKeyboard* GetXKeyboard() OVERRIDE; | 55 virtual XKeyboard* GetXKeyboard() OVERRIDE; |
58 virtual InputMethodUtil* GetInputMethodUtil() OVERRIDE; | 56 virtual InputMethodUtil* GetInputMethodUtil() OVERRIDE; |
59 | 57 |
60 // Sets an input method ID which will be returned by GetCurrentInputMethod(). | 58 // Sets an input method ID which will be returned by GetCurrentInputMethod(). |
(...skipping 15 matching lines...) Expand all Loading... |
76 InputMethodUtil util_; | 74 InputMethodUtil util_; |
77 MockXKeyboard xkeyboard_; | 75 MockXKeyboard xkeyboard_; |
78 | 76 |
79 DISALLOW_COPY_AND_ASSIGN(MockInputMethodManager); | 77 DISALLOW_COPY_AND_ASSIGN(MockInputMethodManager); |
80 }; | 78 }; |
81 | 79 |
82 } // namespace input_method | 80 } // namespace input_method |
83 } // namespace chromeos | 81 } // namespace chromeos |
84 | 82 |
85 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_MANAGER_H_ | 83 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_MANAGER_H_ |
OLD | NEW |