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/background_view.h" | 5 #include "chrome/browser/chromeos/login/background_view.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
9 #include "app/x11_util.h" | 9 #include "app/x11_util.h" |
10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 } | 157 } |
158 | 158 |
159 bool BackgroundView::IsBrowserMode() const { | 159 bool BackgroundView::IsBrowserMode() const { |
160 return false; | 160 return false; |
161 } | 161 } |
162 | 162 |
163 bool BackgroundView::IsScreenLockerMode() const { | 163 bool BackgroundView::IsScreenLockerMode() const { |
164 return false; | 164 return false; |
165 } | 165 } |
166 | 166 |
167 void BackgroundView::LocaleChanged() { | 167 void BackgroundView::OnLocaleChanged() { |
168 Layout(); | 168 Layout(); |
169 SchedulePaint(); | 169 SchedulePaint(); |
170 } | 170 } |
171 | 171 |
172 void BackgroundView::InitStatusArea() { | 172 void BackgroundView::InitStatusArea() { |
173 DCHECK(status_area_ == NULL); | 173 DCHECK(status_area_ == NULL); |
174 status_area_ = new StatusAreaView(this); | 174 status_area_ = new StatusAreaView(this); |
175 status_area_->Init(); | 175 status_area_->Init(); |
176 AddChildView(status_area_); | 176 AddChildView(status_area_); |
177 } | 177 } |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 boot_times.total, | 274 boot_times.total, |
275 boot_times.firmware, | 275 boot_times.firmware, |
276 boot_times.pre_startup, | 276 boot_times.pre_startup, |
277 boot_times.system); | 277 boot_times.system); |
278 } | 278 } |
279 // Use UTF8ToWide once this string is localized. | 279 // Use UTF8ToWide once this string is localized. |
280 boot_times_label_->SetText(ASCIIToWide(boot_times_text)); | 280 boot_times_label_->SetText(ASCIIToWide(boot_times_text)); |
281 } | 281 } |
282 | 282 |
283 } // namespace chromeos | 283 } // namespace chromeos |
OLD | NEW |