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

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

Issue 3337006: Revert 58388 - Revert 58215 - Revert 58186 - Move the keyboard files from bas... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 3 months 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/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
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/new_user_view.cc ('k') | chrome/browser/chromeos/login/screen_lock_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698