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

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

Issue 22980018: Disable non Latin keyboard layout on Lock screen and Sign-in screen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix typo Created 7 years, 4 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 } 135 }
136 136
137 InputMethodDescriptor MockInputMethodManager::GetCurrentInputMethod() const { 137 InputMethodDescriptor MockInputMethodManager::GetCurrentInputMethod() const {
138 InputMethodDescriptor descriptor = 138 InputMethodDescriptor descriptor =
139 InputMethodUtil::GetFallbackInputMethodDescriptor(); 139 InputMethodUtil::GetFallbackInputMethodDescriptor();
140 if (!current_input_method_id_.empty()) { 140 if (!current_input_method_id_.empty()) {
141 return InputMethodDescriptor(current_input_method_id_, 141 return InputMethodDescriptor(current_input_method_id_,
142 descriptor.name(), 142 descriptor.name(),
143 descriptor.keyboard_layouts(), 143 descriptor.keyboard_layouts(),
144 descriptor.language_codes(), 144 descriptor.language_codes(),
145 true,
145 GURL()); // options page url. 146 GURL()); // options page url.
146 } 147 }
147 return descriptor; 148 return descriptor;
148 } 149 }
149 150
150 InputMethodPropertyList 151 InputMethodPropertyList
151 MockInputMethodManager::GetCurrentInputMethodProperties() const { 152 MockInputMethodManager::GetCurrentInputMethodProperties() const {
152 return InputMethodPropertyList(); 153 return InputMethodPropertyList();
153 } 154 }
154 155
(...skipping 12 matching lines...) Expand all
167 168
168 void MockInputMethodManager::set_application_locale(const std::string& value) { 169 void MockInputMethodManager::set_application_locale(const std::string& value) {
169 delegate_.set_active_locale(value); 170 delegate_.set_active_locale(value);
170 } 171 }
171 172
172 void MockInputMethodManager::set_hardware_keyboard_layout( 173 void MockInputMethodManager::set_hardware_keyboard_layout(
173 const std::string& value) { 174 const std::string& value) {
174 delegate_.set_hardware_keyboard_layout(value); 175 delegate_.set_hardware_keyboard_layout(value);
175 } 176 }
176 177
177 bool MockInputMethodManager::IsFullLatinKeyboard( 178 bool MockInputMethodManager::IsLoginKeyboard(
178 const std::string& layout) const { 179 const std::string& layout) const {
179 return true; 180 return true;
180 } 181 }
181 } // namespace input_method 182 } // namespace input_method
182 } // namespace chromeos 183 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698