| 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/password_changed_view.h" | 5 #include "chrome/browser/chromeos/login/password_changed_view.h" |
| 6 | 6 |
| 7 #include "app/keyboard_codes.h" | |
| 8 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 9 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
| 9 #include "base/keyboard_codes.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| 11 #include "chrome/browser/chromeos/login/rounded_rect_painter.h" | 11 #include "chrome/browser/chromeos/login/rounded_rect_painter.h" |
| 12 #include "grit/generated_resources.h" | 12 #include "grit/generated_resources.h" |
| 13 #include "grit/locale_settings.h" | 13 #include "grit/locale_settings.h" |
| 14 #include "views/controls/button/radio_button.h" | 14 #include "views/controls/button/radio_button.h" |
| 15 #include "views/controls/label.h" | 15 #include "views/controls/label.h" |
| 16 #include "views/grid_layout.h" | 16 #include "views/grid_layout.h" |
| 17 #include "views/standard_layout.h" | 17 #include "views/standard_layout.h" |
| 18 #include "views/window/window.h" | 18 #include "views/window/window.h" |
| 19 | 19 |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 old_password_field_->SetEnabled(false); | 155 old_password_field_->SetEnabled(false); |
| 156 old_password_field_->SetText(string16()); | 156 old_password_field_->SetText(string16()); |
| 157 } else if (sender == delta_sync_radio_) { | 157 } else if (sender == delta_sync_radio_) { |
| 158 old_password_field_->SetEnabled(true); | 158 old_password_field_->SetEnabled(true); |
| 159 old_password_field_->RequestFocus(); | 159 old_password_field_->RequestFocus(); |
| 160 } | 160 } |
| 161 } | 161 } |
| 162 | 162 |
| 163 bool PasswordChangedView::HandleKeystroke(views::Textfield* s, | 163 bool PasswordChangedView::HandleKeystroke(views::Textfield* s, |
| 164 const views::Textfield::Keystroke& keystroke) { | 164 const views::Textfield::Keystroke& keystroke) { |
| 165 if (keystroke.GetKeyboardCode() == app::VKEY_RETURN) { | 165 if (keystroke.GetKeyboardCode() == base::VKEY_RETURN) { |
| 166 ExitDialog(); | 166 ExitDialog(); |
| 167 return true; | 167 return true; |
| 168 } | 168 } |
| 169 | 169 |
| 170 return false; | 170 return false; |
| 171 } | 171 } |
| 172 | 172 |
| 173 void PasswordChangedView::SelectDeltaSyncOption() { | 173 void PasswordChangedView::SelectDeltaSyncOption() { |
| 174 if (!delta_sync_radio_->checked()) | 174 if (!delta_sync_radio_->checked()) |
| 175 delta_sync_radio_->SetChecked(true); | 175 delta_sync_radio_->SetChecked(true); |
| 176 } | 176 } |
| 177 | 177 |
| 178 } // namespace chromeos | 178 } // namespace chromeos |
| OLD | NEW |