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

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

Issue 2878055: Make theme change notifications auto-propagate through the view hierarchy, in... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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/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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 create_account_link_->SetText( 191 create_account_link_->SetText(
192 l10n_util::GetString(IDS_CREATE_ACCOUNT_BUTTON)); 192 l10n_util::GetString(IDS_CREATE_ACCOUNT_BUTTON));
193 cant_access_account_link_->SetText( 193 cant_access_account_link_->SetText(
194 l10n_util::GetString(IDS_CANT_ACCESS_ACCOUNT_BUTTON)); 194 l10n_util::GetString(IDS_CANT_ACCESS_ACCOUNT_BUTTON));
195 browse_without_signin_link_->SetText( 195 browse_without_signin_link_->SetText(
196 l10n_util::GetString(IDS_BROWSE_WITHOUT_SIGNING_IN_BUTTON)); 196 l10n_util::GetString(IDS_BROWSE_WITHOUT_SIGNING_IN_BUTTON));
197 delegate_->ClearErrors(); 197 delegate_->ClearErrors();
198 languages_menubutton_->SetText(language_switch_menu_.GetCurrentLocaleName()); 198 languages_menubutton_->SetText(language_switch_menu_.GetCurrentLocaleName());
199 } 199 }
200 200
201 void NewUserView::LocaleChanged() { 201 void NewUserView::OnLocaleChanged() {
202 UpdateLocalizedStrings(); 202 UpdateLocalizedStrings();
203 Layout(); 203 Layout();
204 SchedulePaint(); 204 SchedulePaint();
205 } 205 }
206 206
207 void NewUserView::RequestFocus() { 207 void NewUserView::RequestFocus() {
208 MessageLoop::current()->PostTask(FROM_HERE, 208 MessageLoop::current()->PostTask(FROM_HERE,
209 focus_grabber_factory_.NewRunnableMethod( 209 focus_grabber_factory_.NewRunnableMethod(
210 &NewUserView::FocusFirstField)); 210 &NewUserView::FocusFirstField));
211 } 211 }
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 browse_without_signin_link_->SetEnabled(enabled); 405 browse_without_signin_link_->SetEnabled(enabled);
406 } 406 }
407 407
408 void NewUserView::InitLink(views::Link** link) { 408 void NewUserView::InitLink(views::Link** link) {
409 *link = new views::Link(std::wstring()); 409 *link = new views::Link(std::wstring());
410 (*link)->SetController(this); 410 (*link)->SetController(this);
411 AddChildView(*link); 411 AddChildView(*link);
412 } 412 }
413 413
414 } // namespace chromeos 414 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/new_user_view.h ('k') | chrome/browser/chromeos/login/oobe_progress_bar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698