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

Side by Side Diff: chrome/browser/chromeos/login/network_selection_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, 5 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/network_selection_view.h" 5 #include "chrome/browser/chromeos/login/network_selection_view.h"
6 6
7 #include <signal.h> 7 #include <signal.h>
8 #include <sys/types.h> 8 #include <sys/types.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 } 149 }
150 150
151 //////////////////////////////////////////////////////////////////////////////// 151 ////////////////////////////////////////////////////////////////////////////////
152 // views::View: implementation: 152 // views::View: implementation:
153 153
154 void NetworkSelectionView::ChildPreferredSizeChanged(View* child) { 154 void NetworkSelectionView::ChildPreferredSizeChanged(View* child) {
155 Layout(); 155 Layout();
156 SchedulePaint(); 156 SchedulePaint();
157 } 157 }
158 158
159 void NetworkSelectionView::LocaleChanged() { 159 void NetworkSelectionView::OnLocaleChanged() {
160 UpdateLocalizedStrings(); 160 UpdateLocalizedStrings();
161 NetworkModelChanged(); 161 NetworkModelChanged();
162 // Explicitly set selected item - index 0 is a localized string. 162 // Explicitly set selected item - index 0 is a localized string.
163 if (GetSelectedNetworkItem() <= 0 && 163 if (GetSelectedNetworkItem() <= 0 &&
164 delegate_->GetItemCount() > 0) { 164 delegate_->GetItemCount() > 0) {
165 SetSelectedNetworkItem(0); 165 SetSelectedNetworkItem(0);
166 } 166 }
167 Layout(); 167 Layout();
168 SchedulePaint(); 168 SchedulePaint();
169 } 169 }
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 continue_button_->SetEnabled(false); 303 continue_button_->SetEnabled(false);
304 AddChildView(continue_button_); 304 AddChildView(continue_button_);
305 } 305 }
306 306
307 void NetworkSelectionView::UpdateConnectingNetworkLabel() { 307 void NetworkSelectionView::UpdateConnectingNetworkLabel() {
308 connecting_network_label_->SetText(l10n_util::GetStringF( 308 connecting_network_label_->SetText(l10n_util::GetStringF(
309 IDS_NETWORK_SELECTION_CONNECTING, UTF16ToWide(network_id_))); 309 IDS_NETWORK_SELECTION_CONNECTING, UTF16ToWide(network_id_)));
310 } 310 }
311 311
312 } // namespace chromeos 312 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/network_selection_view.h ('k') | chrome/browser/chromeos/login/new_user_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698