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

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

Issue 150203015: Split out InputMethodMenuManager from InputMethodManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 #include "chrome/browser/chromeos/input_method/mock_input_method_manager.h" 5 #include "chrome/browser/chromeos/input_method/mock_input_method_manager.h"
6 6
7 namespace chromeos { 7 namespace chromeos {
8 namespace input_method { 8 namespace input_method {
9 9
10 MockInputMethodManager::MockInputMethodManager() 10 MockInputMethodManager::MockInputMethodManager()
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 bool MockInputMethodManager::EnableInputMethod( 85 bool MockInputMethodManager::EnableInputMethod(
86 const std::string& new_active_input_method_id) { 86 const std::string& new_active_input_method_id) {
87 return true; 87 return true;
88 } 88 }
89 89
90 void MockInputMethodManager::ChangeInputMethod( 90 void MockInputMethodManager::ChangeInputMethod(
91 const std::string& input_method_id) { 91 const std::string& input_method_id) {
92 } 92 }
93 93
94 void MockInputMethodManager::ActivateInputMethodProperty( 94 void MockInputMethodManager::ActivateInputMethodMenuItem(
95 const std::string& key) { 95 const std::string& key) {
96 } 96 }
97 97
98 void MockInputMethodManager::AddInputMethodExtension( 98 void MockInputMethodManager::AddInputMethodExtension(
99 const std::string& id, 99 const std::string& id,
100 InputMethodEngineInterface* instance) { 100 InputMethodEngineInterface* instance) {
101 } 101 }
102 102
103 void MockInputMethodManager::RemoveInputMethodExtension(const std::string& id) { 103 void MockInputMethodManager::RemoveInputMethodExtension(const std::string& id) {
104 } 104 }
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 descriptor.indicator(), 137 descriptor.indicator(),
138 descriptor.keyboard_layouts(), 138 descriptor.keyboard_layouts(),
139 descriptor.language_codes(), 139 descriptor.language_codes(),
140 true, 140 true,
141 GURL(), // options page url. 141 GURL(), // options page url.
142 GURL()); // input view page url. 142 GURL()); // input view page url.
143 } 143 }
144 return descriptor; 144 return descriptor;
145 } 145 }
146 146
147 InputMethodPropertyList
148 MockInputMethodManager::GetCurrentInputMethodProperties() const {
149 return InputMethodPropertyList();
150 }
151
152 void MockInputMethodManager::SetCurrentInputMethodProperties(
153 const InputMethodPropertyList& property_list) {
154 }
155
156 XKeyboard* MockInputMethodManager::GetXKeyboard() { 147 XKeyboard* MockInputMethodManager::GetXKeyboard() {
157 return &xkeyboard_; 148 return &xkeyboard_;
158 } 149 }
159 150
160 InputMethodUtil* MockInputMethodManager::GetInputMethodUtil() { 151 InputMethodUtil* MockInputMethodManager::GetInputMethodUtil() {
161 return &util_; 152 return &util_;
162 } 153 }
163 154
164 ComponentExtensionIMEManager* 155 ComponentExtensionIMEManager*
165 MockInputMethodManager::GetComponentExtensionIMEManager() { 156 MockInputMethodManager::GetComponentExtensionIMEManager() {
166 return NULL; 157 return NULL;
167 } 158 }
168 159
169 void MockInputMethodManager::set_application_locale(const std::string& value) { 160 void MockInputMethodManager::set_application_locale(const std::string& value) {
170 delegate_.set_active_locale(value); 161 delegate_.set_active_locale(value);
171 } 162 }
172 163
173 void MockInputMethodManager::set_hardware_keyboard_layout( 164 void MockInputMethodManager::set_hardware_keyboard_layout(
174 const std::string& value) { 165 const std::string& value) {
175 delegate_.set_hardware_keyboard_layout(value); 166 delegate_.set_hardware_keyboard_layout(value);
176 } 167 }
177 168
178 bool MockInputMethodManager::IsLoginKeyboard( 169 bool MockInputMethodManager::IsLoginKeyboard(
179 const std::string& layout) const { 170 const std::string& layout) const {
180 return true; 171 return true;
181 } 172 }
182 } // namespace input_method 173 } // namespace input_method
183 } // namespace chromeos 174 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698