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

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

Issue 5473001: [cros] Use same textfield settings across existing/new user pods and screen lock. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: proper fix Created 10 years 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/new_user_view.h" 5 #include "chrome/browser/chromeos/login/new_user_view.h"
6 6
7 #include <signal.h> 7 #include <signal.h>
8 #include <sys/types.h> 8 #include <sys/types.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 title_hint_label_->SetColor(SK_ColorGRAY); 144 title_hint_label_->SetColor(SK_ColorGRAY);
145 title_hint_label_->SetMultiLine(true); 145 title_hint_label_->SetMultiLine(true);
146 AddChildView(title_hint_label_); 146 AddChildView(title_hint_label_);
147 147
148 splitter_up1_ = CreateSplitter(kSplitterUp1Color); 148 splitter_up1_ = CreateSplitter(kSplitterUp1Color);
149 splitter_up2_ = CreateSplitter(kSplitterUp2Color); 149 splitter_up2_ = CreateSplitter(kSplitterUp2Color);
150 splitter_down1_ = CreateSplitter(kSplitterDown1Color); 150 splitter_down1_ = CreateSplitter(kSplitterDown1Color);
151 splitter_down2_ = CreateSplitter(kSplitterDown2Color); 151 splitter_down2_ = CreateSplitter(kSplitterDown2Color);
152 152
153 username_field_ = new UsernameField(); 153 username_field_ = new UsernameField();
154 CorrectTextfieldFontSize(username_field_);
155 username_field_->set_background(new CopyBackground(this)); 154 username_field_->set_background(new CopyBackground(this));
156 AddChildView(username_field_); 155 AddChildView(username_field_);
157 156
158 password_field_ = new TextfieldWithMargin(views::Textfield::STYLE_PASSWORD); 157 password_field_ = new TextfieldWithMargin(views::Textfield::STYLE_PASSWORD);
159 CorrectTextfieldFontSize(password_field_);
160 password_field_->set_background(new CopyBackground(this)); 158 password_field_->set_background(new CopyBackground(this));
161 AddChildView(password_field_); 159 AddChildView(password_field_);
162 160
163 throbber_ = CreateDefaultSmoothedThrobber(); 161 throbber_ = CreateDefaultSmoothedThrobber();
164 AddChildView(throbber_); 162 AddChildView(throbber_);
165 163
166 language_switch_menu_.InitLanguageMenu(); 164 language_switch_menu_.InitLanguageMenu();
167 165
168 RecreatePeculiarControls(); 166 RecreatePeculiarControls();
169 167
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 554
557 void NewUserView::InitLink(views::Link** link) { 555 void NewUserView::InitLink(views::Link** link) {
558 *link = new views::Link(std::wstring()); 556 *link = new views::Link(std::wstring());
559 (*link)->SetController(this); 557 (*link)->SetController(this);
560 (*link)->SetNormalColor(login::kLinkColor); 558 (*link)->SetNormalColor(login::kLinkColor);
561 (*link)->SetHighlightedColor(login::kLinkColor); 559 (*link)->SetHighlightedColor(login::kLinkColor);
562 AddChildView(*link); 560 AddChildView(*link);
563 } 561 }
564 562
565 } // namespace chromeos 563 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/existing_user_view.cc ('k') | chrome/browser/chromeos/login/textfield_with_margin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698