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

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 test case. Created 7 years, 3 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 } 128 }
129 129
130 InputMethodDescriptor MockInputMethodManager::GetCurrentInputMethod() const { 130 InputMethodDescriptor MockInputMethodManager::GetCurrentInputMethod() const {
131 InputMethodDescriptor descriptor = 131 InputMethodDescriptor descriptor =
132 InputMethodUtil::GetFallbackInputMethodDescriptor(); 132 InputMethodUtil::GetFallbackInputMethodDescriptor();
133 if (!current_input_method_id_.empty()) { 133 if (!current_input_method_id_.empty()) {
134 return InputMethodDescriptor(current_input_method_id_, 134 return InputMethodDescriptor(current_input_method_id_,
135 descriptor.name(), 135 descriptor.name(),
136 descriptor.keyboard_layouts(), 136 descriptor.keyboard_layouts(),
137 descriptor.language_codes(), 137 descriptor.language_codes(),
138 true,
138 GURL()); // options page url. 139 GURL()); // options page url.
139 } 140 }
140 return descriptor; 141 return descriptor;
141 } 142 }
142 143
143 InputMethodPropertyList 144 InputMethodPropertyList
144 MockInputMethodManager::GetCurrentInputMethodProperties() const { 145 MockInputMethodManager::GetCurrentInputMethodProperties() const {
145 return InputMethodPropertyList(); 146 return InputMethodPropertyList();
146 } 147 }
147 148
(...skipping 12 matching lines...) Expand all
160 161
161 void MockInputMethodManager::set_application_locale(const std::string& value) { 162 void MockInputMethodManager::set_application_locale(const std::string& value) {
162 delegate_.set_active_locale(value); 163 delegate_.set_active_locale(value);
163 } 164 }
164 165
165 void MockInputMethodManager::set_hardware_keyboard_layout( 166 void MockInputMethodManager::set_hardware_keyboard_layout(
166 const std::string& value) { 167 const std::string& value) {
167 delegate_.set_hardware_keyboard_layout(value); 168 delegate_.set_hardware_keyboard_layout(value);
168 } 169 }
169 170
170 bool MockInputMethodManager::IsFullLatinKeyboard( 171 bool MockInputMethodManager::IsLoginKeyboard(
171 const std::string& layout) const { 172 const std::string& layout) const {
172 return true; 173 return true;
173 } 174 }
174 } // namespace input_method 175 } // namespace input_method
175 } // namespace chromeos 176 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/input_method/mock_input_method_manager.h ('k') | chrome/browser/chromeos/login/user_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698