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_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/input_method_manager.h" | 10 #include "chromeos/ime/input_method_manager.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 virtual void EnableLayouts(const std::string& language_code, | 37 virtual void EnableLayouts(const std::string& language_code, |
38 const std::string& initial_layout) OVERRIDE; | 38 const std::string& initial_layout) OVERRIDE; |
39 virtual bool EnableInputMethods( | 39 virtual bool EnableInputMethods( |
40 const std::vector<std::string>& new_active_input_method_ids) OVERRIDE; | 40 const std::vector<std::string>& new_active_input_method_ids) OVERRIDE; |
41 virtual bool EnableInputMethod( | 41 virtual bool EnableInputMethod( |
42 const std::string& new_active_input_method_id) OVERRIDE; | 42 const std::string& new_active_input_method_id) OVERRIDE; |
43 virtual void ChangeInputMethod(const std::string& input_method_id) OVERRIDE; | 43 virtual void ChangeInputMethod(const std::string& input_method_id) OVERRIDE; |
44 virtual void ActivateInputMethodProperty(const std::string& key) OVERRIDE; | 44 virtual void ActivateInputMethodProperty(const std::string& key) OVERRIDE; |
45 virtual void AddInputMethodExtension( | 45 virtual void AddInputMethodExtension( |
46 const std::string& id, | 46 const std::string& id, |
47 const std::string& name, | |
48 const std::vector<std::string>& layouts, | |
49 const std::vector<std::string>& languages, | |
50 const GURL& options_url, | |
51 const GURL& inputview_url, | |
52 InputMethodEngineInterface* instance) OVERRIDE; | 47 InputMethodEngineInterface* instance) OVERRIDE; |
53 virtual void RemoveInputMethodExtension(const std::string& id) OVERRIDE; | 48 virtual void RemoveInputMethodExtension(const std::string& id) OVERRIDE; |
54 virtual void GetInputMethodExtensions( | 49 virtual void GetInputMethodExtensions( |
55 InputMethodDescriptors* result) OVERRIDE; | 50 InputMethodDescriptors* result) OVERRIDE; |
56 virtual void SetEnabledExtensionImes(std::vector<std::string>* ids) OVERRIDE; | 51 virtual void SetEnabledExtensionImes(std::vector<std::string>* ids) OVERRIDE; |
57 virtual void SetInputMethodDefault() OVERRIDE; | 52 virtual void SetInputMethodDefault() OVERRIDE; |
58 virtual bool SwitchToNextInputMethod() OVERRIDE; | 53 virtual bool SwitchToNextInputMethod() OVERRIDE; |
59 virtual bool SwitchToPreviousInputMethod( | 54 virtual bool SwitchToPreviousInputMethod( |
60 const ui::Accelerator& accelerator) OVERRIDE; | 55 const ui::Accelerator& accelerator) OVERRIDE; |
61 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) OVERRIDE; | 56 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) OVERRIDE; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 // The active input method ids cache (actually default only) | 90 // The active input method ids cache (actually default only) |
96 std::vector<std::string> active_input_method_ids_; | 91 std::vector<std::string> active_input_method_ids_; |
97 | 92 |
98 DISALLOW_COPY_AND_ASSIGN(MockInputMethodManager); | 93 DISALLOW_COPY_AND_ASSIGN(MockInputMethodManager); |
99 }; | 94 }; |
100 | 95 |
101 } // namespace input_method | 96 } // namespace input_method |
102 } // namespace chromeos | 97 } // namespace chromeos |
103 | 98 |
104 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_MANAGER_H_ | 99 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_MANAGER_H_ |
OLD | NEW |