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

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

Issue 139803010: Support comma separated hardware keyboard layout. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile failure 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 for (size_t i = 0; i < active_input_method_ids_.size(); i++) { 67 for (size_t i = 0; i < active_input_method_ids_.size(); i++) {
68 if (input_method_id == active_input_method_ids_[i]) { 68 if (input_method_id == active_input_method_ids_[i]) {
69 return &defaultInputMethod; 69 return &defaultInputMethod;
70 } 70 }
71 } 71 }
72 return NULL; 72 return NULL;
73 } 73 }
74 74
75 void MockInputMethodManager::EnableLoginLayouts( 75 void MockInputMethodManager::EnableLoginLayouts(
76 const std::string& language_code, 76 const std::string& language_code,
77 const std::string& initial_layout) { 77 const std::vector<std::string>& initial_layout) {
78 } 78 }
79 79
80 bool MockInputMethodManager::EnableInputMethods( 80 bool MockInputMethodManager::EnableInputMethods(
81 const std::vector<std::string>& new_active_input_method_ids) { 81 const std::vector<std::string>& new_active_input_method_ids) {
82 return true; 82 return true;
83 } 83 }
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;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 ComponentExtensionIMEManager* 163 ComponentExtensionIMEManager*
164 MockInputMethodManager::GetComponentExtensionIMEManager() { 164 MockInputMethodManager::GetComponentExtensionIMEManager() {
165 return NULL; 165 return NULL;
166 } 166 }
167 167
168 void MockInputMethodManager::set_application_locale(const std::string& value) { 168 void MockInputMethodManager::set_application_locale(const std::string& value) {
169 delegate_.set_active_locale(value); 169 delegate_.set_active_locale(value);
170 } 170 }
171 171
172 void MockInputMethodManager::set_hardware_keyboard_layout( 172 void MockInputMethodManager::set_hardware_keyboard_layout(
173 const std::string& value) { 173 const std::vector<std::string>& value) {
174 delegate_.set_hardware_keyboard_layout(value); 174 delegate_.set_hardware_keyboard_layout(value);
175 } 175 }
176 176
177 bool MockInputMethodManager::IsLoginKeyboard( 177 bool MockInputMethodManager::IsLoginKeyboard(
178 const std::string& layout) const { 178 const std::string& layout) const {
179 return true; 179 return true;
180 } 180 }
181 } // namespace input_method 181 } // namespace input_method
182 } // namespace chromeos 182 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698