| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |