| 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 } | 145 } |
| 146 | 146 |
| 147 bool BackgroundView::IsBrowserMode() const { | 147 bool BackgroundView::IsBrowserMode() const { |
| 148 return false; | 148 return false; |
| 149 } | 149 } |
| 150 | 150 |
| 151 bool BackgroundView::IsScreenLockerMode() const { | 151 bool BackgroundView::IsScreenLockerMode() const { |
| 152 return false; | 152 return false; |
| 153 } | 153 } |
| 154 | 154 |
| 155 void BackgroundView::LocaleChanged() { | 155 void BackgroundView::OnLocaleChanged() { |
| 156 Layout(); | 156 Layout(); |
| 157 SchedulePaint(); | 157 SchedulePaint(); |
| 158 } | 158 } |
| 159 | 159 |
| 160 void BackgroundView::InitStatusArea() { | 160 void BackgroundView::InitStatusArea() { |
| 161 DCHECK(status_area_ == NULL); | 161 DCHECK(status_area_ == NULL); |
| 162 status_area_ = new StatusAreaView(this); | 162 status_area_ = new StatusAreaView(this); |
| 163 status_area_->Init(); | 163 status_area_->Init(); |
| 164 AddChildView(status_area_); | 164 AddChildView(status_area_); |
| 165 } | 165 } |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 boot_times.total, | 237 boot_times.total, |
| 238 boot_times.firmware, | 238 boot_times.firmware, |
| 239 boot_times.pre_startup, | 239 boot_times.pre_startup, |
| 240 boot_times.system); | 240 boot_times.system); |
| 241 } | 241 } |
| 242 // Use UTF8ToWide once this string is localized. | 242 // Use UTF8ToWide once this string is localized. |
| 243 boot_times_label_->SetText(ASCIIToWide(boot_times_text)); | 243 boot_times_label_->SetText(ASCIIToWide(boot_times_text)); |
| 244 } | 244 } |
| 245 | 245 |
| 246 } // namespace chromeos | 246 } // namespace chromeos |
| OLD | NEW |