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

Side by Side Diff: chrome/browser/chromeos/login/user_controller.cc

Issue 3165064: Move the keyboard files from base/ to app/. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: latest merge Created 10 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/login/user_controller.h" 5 #include "chrome/browser/chromeos/login/user_controller.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "app/l10n_util.h" 10 #include "app/l10n_util.h"
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 } 202 }
203 203
204 void UserController::ButtonPressed(views::Button* sender, 204 void UserController::ButtonPressed(views::Button* sender,
205 const views::Event& event) { 205 const views::Event& event) {
206 Login(); 206 Login();
207 } 207 }
208 208
209 bool UserController::HandleKeystroke( 209 bool UserController::HandleKeystroke(
210 views::Textfield* sender, 210 views::Textfield* sender,
211 const views::Textfield::Keystroke& keystroke) { 211 const views::Textfield::Keystroke& keystroke) {
212 if (keystroke.GetKeyboardCode() == base::VKEY_RETURN) { 212 if (keystroke.GetKeyboardCode() == app::VKEY_RETURN) {
213 Login(); 213 Login();
214 return true; 214 return true;
215 } else if (keystroke.GetKeyboardCode() == base::VKEY_LEFT) { 215 } else if (keystroke.GetKeyboardCode() == app::VKEY_LEFT) {
216 SelectUser(user_index() - 1); 216 SelectUser(user_index() - 1);
217 return true; 217 return true;
218 } else if (keystroke.GetKeyboardCode() == base::VKEY_RIGHT) { 218 } else if (keystroke.GetKeyboardCode() == app::VKEY_RIGHT) {
219 SelectUser(user_index() + 1); 219 SelectUser(user_index() + 1);
220 return true; 220 return true;
221 } 221 }
222 delegate_->ClearErrors(); 222 delegate_->ClearErrors();
223 return false; 223 return false;
224 } 224 }
225 225
226 void UserController::Observe( 226 void UserController::Observe(
227 NotificationType type, 227 NotificationType type,
228 const NotificationSource& source, 228 const NotificationSource& source,
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 425
426 void UserController::SelectUser(int index) { 426 void UserController::SelectUser(int index) {
427 delegate_->SelectUser(index); 427 delegate_->SelectUser(index);
428 } 428 }
429 429
430 void UserController::FocusPasswordField() { 430 void UserController::FocusPasswordField() {
431 existing_user_view_->password_field()->RequestFocus(); 431 existing_user_view_->password_field()->RequestFocus();
432 } 432 }
433 433
434 } // namespace chromeos 434 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/update_view.cc ('k') | chrome/browser/chromeos/login/wizard_accessibility_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698