| OLD | NEW |
| 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/new_user_view.h" | 5 #include "chrome/browser/chromeos/login/new_user_view.h" |
| 6 | 6 |
| 7 #include <signal.h> | 7 #include <signal.h> |
| 8 #include <sys/types.h> | 8 #include <sys/types.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 } | 211 } |
| 212 | 212 |
| 213 bool NewUserView::AcceleratorPressed(const views::Accelerator& accelerator) { | 213 bool NewUserView::AcceleratorPressed(const views::Accelerator& accelerator) { |
| 214 if (accelerator == accel_focus_user_) { | 214 if (accelerator == accel_focus_user_) { |
| 215 username_field_->RequestFocus(); | 215 username_field_->RequestFocus(); |
| 216 } else if (accelerator == accel_focus_pass_) { | 216 } else if (accelerator == accel_focus_pass_) { |
| 217 password_field_->RequestFocus(); | 217 password_field_->RequestFocus(); |
| 218 } else if (accelerator == accel_login_off_the_record_) { | 218 } else if (accelerator == accel_login_off_the_record_) { |
| 219 delegate_->OnLoginAsGuest(); | 219 delegate_->OnLoginAsGuest(); |
| 220 } else if (accelerator == accel_toggle_accessibility_) { | 220 } else if (accelerator == accel_toggle_accessibility_) { |
| 221 WizardAccessibilityHelper::GetInstance()->ToggleAccessibility(this); | 221 WizardAccessibilityHelper::GetInstance()->ToggleAccessibility(); |
| 222 } else { | 222 } else { |
| 223 return false; | 223 return false; |
| 224 } | 224 } |
| 225 return true; | 225 return true; |
| 226 } | 226 } |
| 227 | 227 |
| 228 void NewUserView::RecreatePeculiarControls() { | 228 void NewUserView::RecreatePeculiarControls() { |
| 229 // PreferredSize reported by MenuButton (and TextField) is not able | 229 // PreferredSize reported by MenuButton (and TextField) is not able |
| 230 // to shrink, only grow; so recreate on text change. | 230 // to shrink, only grow; so recreate on text change. |
| 231 delete languages_menubutton_; | 231 delete languages_menubutton_; |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 549 | 549 |
| 550 void NewUserView::InitLink(views::Link** link) { | 550 void NewUserView::InitLink(views::Link** link) { |
| 551 *link = new views::Link(std::wstring()); | 551 *link = new views::Link(std::wstring()); |
| 552 (*link)->SetController(this); | 552 (*link)->SetController(this); |
| 553 (*link)->SetNormalColor(login::kLinkColor); | 553 (*link)->SetNormalColor(login::kLinkColor); |
| 554 (*link)->SetHighlightedColor(login::kLinkColor); | 554 (*link)->SetHighlightedColor(login::kLinkColor); |
| 555 AddChildView(*link); | 555 AddChildView(*link); |
| 556 } | 556 } |
| 557 | 557 |
| 558 } // namespace chromeos | 558 } // namespace chromeos |
| OLD | NEW |