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 <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 bool MigrateInputMethods(std::vector<std::string>* input_method_ids) override; | 99 bool MigrateInputMethods(std::vector<std::string>* input_method_ids) override; |
100 scoped_refptr<InputMethodManager::State> CreateNewState( | 100 scoped_refptr<InputMethodManager::State> CreateNewState( |
101 Profile* profile) override; | 101 Profile* profile) override; |
102 scoped_refptr<InputMethodManager::State> GetActiveIMEState() override; | 102 scoped_refptr<InputMethodManager::State> GetActiveIMEState() override; |
103 void SetState(scoped_refptr<InputMethodManager::State> state) override; | 103 void SetState(scoped_refptr<InputMethodManager::State> state) override; |
104 void ImeMenuActivationChanged(bool is_active) override; | 104 void ImeMenuActivationChanged(bool is_active) override; |
105 void NotifyImeMenuItemsChanged( | 105 void NotifyImeMenuItemsChanged( |
106 const std::string& engine_id, | 106 const std::string& engine_id, |
107 const std::vector<InputMethodManager::MenuItem>& items) override; | 107 const std::vector<InputMethodManager::MenuItem>& items) override; |
108 void MaybeNotifyImeMenuActivationChanged() override; | 108 void MaybeNotifyImeMenuActivationChanged() override; |
| 109 void ShowInputViewWithUrl(const std::string& appended_url) override; |
109 | 110 |
110 // Sets an input method ID which will be returned by GetCurrentInputMethod(). | 111 // Sets an input method ID which will be returned by GetCurrentInputMethod(). |
111 void SetCurrentInputMethodId(const std::string& input_method_id); | 112 void SetCurrentInputMethodId(const std::string& input_method_id); |
112 | 113 |
113 void SetComponentExtensionIMEManager( | 114 void SetComponentExtensionIMEManager( |
114 std::unique_ptr<ComponentExtensionIMEManager> comp_ime_manager); | 115 std::unique_ptr<ComponentExtensionIMEManager> comp_ime_manager); |
115 | 116 |
116 // Set values that will be provided to the InputMethodUtil. | 117 // Set values that will be provided to the InputMethodUtil. |
117 void set_application_locale(const std::string& value); | 118 void set_application_locale(const std::string& value); |
118 | 119 |
(...skipping 14 matching lines...) Expand all Loading... |
133 bool mod3_used_; | 134 bool mod3_used_; |
134 std::unique_ptr<ComponentExtensionIMEManager> comp_ime_manager_; | 135 std::unique_ptr<ComponentExtensionIMEManager> comp_ime_manager_; |
135 | 136 |
136 DISALLOW_COPY_AND_ASSIGN(MockInputMethodManager); | 137 DISALLOW_COPY_AND_ASSIGN(MockInputMethodManager); |
137 }; | 138 }; |
138 | 139 |
139 } // namespace input_method | 140 } // namespace input_method |
140 } // namespace chromeos | 141 } // namespace chromeos |
141 | 142 |
142 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_MANAGER_H_ | 143 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_MANAGER_H_ |
OLD | NEW |