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

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

Issue 232333002: ozone: Rename XKeyboard to KeyboardController & use fake under ozone (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 } 146 }
147 147
148 bool MockInputMethodManager::IsISOLevel5ShiftUsedByCurrentInputMethod() const { 148 bool MockInputMethodManager::IsISOLevel5ShiftUsedByCurrentInputMethod() const {
149 return mod3_used_; 149 return mod3_used_;
150 } 150 }
151 151
152 bool MockInputMethodManager::IsAltGrUsedByCurrentInputMethod() const { 152 bool MockInputMethodManager::IsAltGrUsedByCurrentInputMethod() const {
153 return false; 153 return false;
154 } 154 }
155 155
156 XKeyboard* MockInputMethodManager::GetXKeyboard() { 156 KeyboardController* MockInputMethodManager::GetKeyboardController() {
157 return &xkeyboard_; 157 return &xkeyboard_;
158 } 158 }
159 159
160 InputMethodUtil* MockInputMethodManager::GetInputMethodUtil() { 160 InputMethodUtil* MockInputMethodManager::GetInputMethodUtil() {
161 return &util_; 161 return &util_;
162 } 162 }
163 163
164 ComponentExtensionIMEManager* 164 ComponentExtensionIMEManager*
165 MockInputMethodManager::GetComponentExtensionIMEManager() { 165 MockInputMethodManager::GetComponentExtensionIMEManager() {
166 return NULL; 166 return NULL;
167 } 167 }
168 168
169 void MockInputMethodManager::set_application_locale(const std::string& value) { 169 void MockInputMethodManager::set_application_locale(const std::string& value) {
170 delegate_.set_active_locale(value); 170 delegate_.set_active_locale(value);
171 } 171 }
172 172
173 bool MockInputMethodManager::IsLoginKeyboard( 173 bool MockInputMethodManager::IsLoginKeyboard(
174 const std::string& layout) const { 174 const std::string& layout) const {
175 return true; 175 return true;
176 } 176 }
177 177
178 bool MockInputMethodManager::MigrateXkbInputMethods( 178 bool MockInputMethodManager::MigrateXkbInputMethods(
179 std::vector<std::string>* input_method_ids) { 179 std::vector<std::string>* input_method_ids) {
180 return false; 180 return false;
181 } 181 }
182 182
183 } // namespace input_method 183 } // namespace input_method
184 } // namespace chromeos 184 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698