| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
| 8 #include "chrome/browser/chromeos/login/rounded_rect_painter.h" | 8 #include "chrome/browser/chromeos/login/rounded_rect_painter.h" |
| 9 #include "chrome/browser/chromeos/login/textfield_with_margin.h" | 9 #include "chrome/browser/chromeos/login/textfield_with_margin.h" |
| 10 #include "chrome/browser/chromeos/login/wizard_accessibility_helper.h" | 10 #include "chrome/browser/chromeos/login/wizard_accessibility_helper.h" |
| 11 #include "grit/generated_resources.h" | 11 #include "grit/generated_resources.h" |
| 12 #include "grit/locale_settings.h" | 12 #include "grit/locale_settings.h" |
| 13 #include "ui/base/keycodes/keyboard_codes.h" | 13 #include "ui/base/keycodes/keyboard_codes.h" |
| 14 #include "ui/base/l10n/l10n_util.h" | 14 #include "ui/base/l10n/l10n_util.h" |
| 15 #include "ui/base/resource/resource_bundle.h" | 15 #include "ui/base/resource/resource_bundle.h" |
| 16 #include "views/controls/button/radio_button.h" | 16 #include "views/controls/button/radio_button.h" |
| 17 #include "views/controls/label.h" | 17 #include "views/controls/label.h" |
| 18 #include "views/controls/textfield/textfield.h" |
| 18 #include "views/layout/grid_layout.h" | 19 #include "views/layout/grid_layout.h" |
| 19 #include "views/layout/layout_constants.h" | 20 #include "views/layout/layout_constants.h" |
| 20 #include "views/window/window.h" | 21 #include "views/window/window.h" |
| 21 | 22 |
| 22 using views::Button; | 23 using views::Button; |
| 23 using views::GridLayout; | 24 using views::GridLayout; |
| 24 using views::Label; | 25 using views::Label; |
| 25 using views::RadioButton; | 26 using views::RadioButton; |
| 26 using views::Textfield; | 27 using views::Textfield; |
| 27 | 28 |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 if (sender == full_sync_radio_) { | 184 if (sender == full_sync_radio_) { |
| 184 old_password_field_->SetEnabled(false); | 185 old_password_field_->SetEnabled(false); |
| 185 old_password_field_->SetText(string16()); | 186 old_password_field_->SetText(string16()); |
| 186 } else if (sender == delta_sync_radio_) { | 187 } else if (sender == delta_sync_radio_) { |
| 187 old_password_field_->SetEnabled(true); | 188 old_password_field_->SetEnabled(true); |
| 188 old_password_field_->RequestFocus(); | 189 old_password_field_->RequestFocus(); |
| 189 } | 190 } |
| 190 } | 191 } |
| 191 | 192 |
| 192 } // namespace chromeos | 193 } // namespace chromeos |
| OLD | NEW |