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

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

Issue 4179001: [cros] Fix UI issues on SignIn pod. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 10 years, 1 month 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/chromeos/login/guest_user_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/existing_user_view.h" 5 #include "chrome/browser/chromeos/login/existing_user_view.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "chrome/browser/chromeos/login/helper.h"
8 #include "chrome/browser/chromeos/login/user_controller.h" 9 #include "chrome/browser/chromeos/login/user_controller.h"
9 #include "chrome/browser/chromeos/login/wizard_accessibility_helper.h" 10 #include "chrome/browser/chromeos/login/wizard_accessibility_helper.h"
10 #include "grit/generated_resources.h" 11 #include "grit/generated_resources.h"
11 #include "views/focus/focus_manager.h" 12 #include "views/focus/focus_manager.h"
12 #include "views/fill_layout.h" 13 #include "views/fill_layout.h"
13 14
14 namespace chromeos { 15 namespace chromeos {
15 16
16 // Textfield with custom processing for Tab/Shift+Tab to select entries. 17 // Textfield with custom processing for Tab/Shift+Tab to select entries.
17 class UserEntryTextfield : public views::Textfield { 18 class UserEntryTextfield : public views::Textfield {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 WizardAccessibilityHelper::GetAccelerator()) { 56 WizardAccessibilityHelper::GetAccelerator()) {
56 AddAccelerator(accel_login_off_the_record_); 57 AddAccelerator(accel_login_off_the_record_);
57 AddAccelerator(accel_enable_accessibility_); 58 AddAccelerator(accel_enable_accessibility_);
58 } 59 }
59 60
60 void ExistingUserView::RecreateFields() { 61 void ExistingUserView::RecreateFields() {
61 if (password_field_ == NULL) { 62 if (password_field_ == NULL) {
62 SetLayoutManager(new views::FillLayout); 63 SetLayoutManager(new views::FillLayout);
63 password_field_ = new UserEntryTextfield(user_controller_, 64 password_field_ = new UserEntryTextfield(user_controller_,
64 views::Textfield::STYLE_PASSWORD); 65 views::Textfield::STYLE_PASSWORD);
66 login::CorrectTextfieldFontSize(password_field_);
65 password_field_->SetFocusable(true); 67 password_field_->SetFocusable(true);
66 password_field_->SetController(user_controller_); 68 password_field_->SetController(user_controller_);
67 AddChildView(password_field_); 69 AddChildView(password_field_);
68 } 70 }
69 password_field_->set_text_to_display_when_empty( 71 password_field_->set_text_to_display_when_empty(
70 l10n_util::GetStringUTF16(IDS_LOGIN_POD_EMPTY_PASSWORD_TEXT)); 72 l10n_util::GetStringUTF16(IDS_LOGIN_POD_EMPTY_PASSWORD_TEXT));
71 Layout(); 73 Layout();
72 SchedulePaint(); 74 SchedulePaint();
73 } 75 }
74 76
(...skipping 20 matching lines...) Expand all
95 if (GetFocusManager()) { 97 if (GetFocusManager()) {
96 password_field()->RequestFocus(); 98 password_field()->RequestFocus();
97 } 99 }
98 } 100 }
99 101
100 void ExistingUserView::OnLocaleChanged() { 102 void ExistingUserView::OnLocaleChanged() {
101 RecreateFields(); 103 RecreateFields();
102 } 104 }
103 105
104 } // namespace chromeos 106 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/chromeos/login/guest_user_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698