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

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

Issue 6192007: Remove wstring from views. Part 3: Switch accessibility strings to string16.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/accessibility_event_router_views.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/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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 AddChildView(title_hint_label_); 161 AddChildView(title_hint_label_);
162 162
163 splitter_up1_ = CreateSplitter(kSplitterUp1Color); 163 splitter_up1_ = CreateSplitter(kSplitterUp1Color);
164 splitter_up2_ = CreateSplitter(kSplitterUp2Color); 164 splitter_up2_ = CreateSplitter(kSplitterUp2Color);
165 splitter_down1_ = CreateSplitter(kSplitterDown1Color); 165 splitter_down1_ = CreateSplitter(kSplitterDown1Color);
166 splitter_down2_ = CreateSplitter(kSplitterDown2Color); 166 splitter_down2_ = CreateSplitter(kSplitterDown2Color);
167 167
168 username_field_ = new UsernameField(this); 168 username_field_ = new UsernameField(this);
169 username_field_->set_background(new CopyBackground(this)); 169 username_field_->set_background(new CopyBackground(this));
170 username_field_->SetAccessibleName( 170 username_field_->SetAccessibleName(
171 ASCIIToWide(l10n_util::GetStringUTF8(IDS_CHROMEOS_ACC_USERNAME_LABEL))); 171 l10n_util::GetStringUTF16(IDS_CHROMEOS_ACC_USERNAME_LABEL));
172 AddChildView(username_field_); 172 AddChildView(username_field_);
173 173
174 password_field_ = new TextfieldWithMargin(views::Textfield::STYLE_PASSWORD); 174 password_field_ = new TextfieldWithMargin(views::Textfield::STYLE_PASSWORD);
175 password_field_->set_background(new CopyBackground(this)); 175 password_field_->set_background(new CopyBackground(this));
176 AddChildView(password_field_); 176 AddChildView(password_field_);
177 177
178 language_switch_menu_.InitLanguageMenu(); 178 language_switch_menu_.InitLanguageMenu();
179 179
180 RecreatePeculiarControls(); 180 RecreatePeculiarControls();
181 181
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
571 571
572 void NewUserView::InitLink(views::Link** link) { 572 void NewUserView::InitLink(views::Link** link) {
573 *link = new views::Link(std::wstring()); 573 *link = new views::Link(std::wstring());
574 (*link)->SetController(this); 574 (*link)->SetController(this);
575 (*link)->SetNormalColor(login::kLinkColor); 575 (*link)->SetNormalColor(login::kLinkColor);
576 (*link)->SetHighlightedColor(login::kLinkColor); 576 (*link)->SetHighlightedColor(login::kLinkColor);
577 AddChildView(*link); 577 AddChildView(*link);
578 } 578 }
579 579
580 } // namespace chromeos 580 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/accessibility_event_router_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698