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

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

Issue 5839003: Fix to enable toggling accessibility using Ctrl+Alt+Z (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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) 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/existing_user_view.h" 5 #include "chrome/browser/chromeos/login/existing_user_view.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/chromeos/login/user_controller.h" 9 #include "chrome/browser/chromeos/login/user_controller.h"
10 #include "chrome/browser/chromeos/login/textfield_with_margin.h" 10 #include "chrome/browser/chromeos/login/textfield_with_margin.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 Layout(); 83 Layout();
84 SchedulePaint(); 84 SchedulePaint();
85 } 85 }
86 86
87 bool ExistingUserView::AcceleratorPressed( 87 bool ExistingUserView::AcceleratorPressed(
88 const views::Accelerator& accelerator) { 88 const views::Accelerator& accelerator) {
89 if (accelerator == accel_login_off_the_record_) { 89 if (accelerator == accel_login_off_the_record_) {
90 user_controller_->OnLoginOffTheRecord(); 90 user_controller_->OnLoginOffTheRecord();
91 return true; 91 return true;
92 } else if (accelerator == accel_enable_accessibility_) { 92 } else if (accelerator == accel_enable_accessibility_) {
93 WizardAccessibilityHelper::GetInstance()->EnableAccessibility(this); 93 WizardAccessibilityHelper::GetInstance()->EnableAccessibilityForView(this);
94 return true; 94 return true;
95 } 95 }
96 return false; 96 return false;
97 } 97 }
98 98
99 bool ExistingUserView::HandleKeystroke( 99 bool ExistingUserView::HandleKeystroke(
100 views::Textfield* sender, 100 views::Textfield* sender,
101 const views::Textfield::Keystroke& keystroke) { 101 const views::Textfield::Keystroke& keystroke) {
102 if (keystroke.GetKeyboardCode() == app::VKEY_RETURN) { 102 if (keystroke.GetKeyboardCode() == app::VKEY_RETURN) {
103 user_controller_->OnLogin("", UTF16ToUTF8(password_field_->text())); 103 user_controller_->OnLogin("", UTF16ToUTF8(password_field_->text()));
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 142
143 gfx::Rect ExistingUserView::GetMainInputScreenBounds() const { 143 gfx::Rect ExistingUserView::GetMainInputScreenBounds() const {
144 return password_field_->GetScreenBounds(); 144 return password_field_->GetScreenBounds();
145 } 145 }
146 146
147 void ExistingUserView::OnLocaleChanged() { 147 void ExistingUserView::OnLocaleChanged() {
148 RecreateFields(); 148 RecreateFields();
149 } 149 }
150 150
151 } // namespace chromeos 151 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698