| 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" | 7 #include "app/keyboard_codes.h" |
| 8 #include "app/l10n_util.h" | 8 #include "app/l10n_util.h" |
| 9 #include "app/resource_bundle.h" | 9 #include "app/resource_bundle.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 const views::Event& event) { | 176 const views::Event& event) { |
| 177 if (sender == full_sync_radio_) { | 177 if (sender == full_sync_radio_) { |
| 178 old_password_field_->SetEnabled(false); | 178 old_password_field_->SetEnabled(false); |
| 179 old_password_field_->SetText(string16()); | 179 old_password_field_->SetText(string16()); |
| 180 } else if (sender == delta_sync_radio_) { | 180 } else if (sender == delta_sync_radio_) { |
| 181 old_password_field_->SetEnabled(true); | 181 old_password_field_->SetEnabled(true); |
| 182 old_password_field_->RequestFocus(); | 182 old_password_field_->RequestFocus(); |
| 183 } | 183 } |
| 184 } | 184 } |
| 185 | 185 |
| 186 bool PasswordChangedView::HandleKeystroke(views::Textfield* s, | |
| 187 const views::Textfield::Keystroke& keystroke) { | |
| 188 if (keystroke.GetKeyboardCode() == app::VKEY_RETURN) { | |
| 189 ExitDialog(); | |
| 190 return true; | |
| 191 } | |
| 192 | |
| 193 return false; | |
| 194 } | |
| 195 | |
| 196 } // namespace chromeos | 186 } // namespace chromeos |
| OLD | NEW |