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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 button_view == status_area_->network_view()) { | 143 button_view == status_area_->network_view()) { |
144 return false; | 144 return false; |
145 } | 145 } |
146 return true; | 146 return true; |
147 } | 147 } |
148 | 148 |
149 void BackgroundView::OpenButtonOptions(const views::View* button_view) const { | 149 void BackgroundView::OpenButtonOptions(const views::View* button_view) const { |
150 // TODO(avayvod): Add some dialog for options or remove them completely. | 150 // TODO(avayvod): Add some dialog for options or remove them completely. |
151 } | 151 } |
152 | 152 |
153 bool BackgroundView::IsButtonVisible(const views::View* button_view) const { | |
154 if (button_view == status_area_->feedback_view()) | |
155 return false; | |
156 return true; | |
157 } | |
158 | |
159 bool BackgroundView::IsBrowserMode() const { | 153 bool BackgroundView::IsBrowserMode() const { |
160 return false; | 154 return false; |
161 } | 155 } |
162 | 156 |
163 bool BackgroundView::IsScreenLockerMode() const { | 157 bool BackgroundView::IsScreenLockerMode() const { |
164 return false; | 158 return false; |
165 } | 159 } |
166 | 160 |
167 void BackgroundView::OnLocaleChanged() { | 161 void BackgroundView::OnLocaleChanged() { |
168 Layout(); | 162 Layout(); |
169 SchedulePaint(); | 163 SchedulePaint(); |
170 } | 164 } |
171 | 165 |
172 void BackgroundView::InitStatusArea() { | 166 void BackgroundView::InitStatusArea() { |
173 DCHECK(status_area_ == NULL); | 167 DCHECK(status_area_ == NULL); |
174 status_area_ = new StatusAreaView(this); | 168 status_area_ = new StatusAreaView(this); |
175 status_area_->Init(); | 169 status_area_->Init(); |
| 170 status_area_->feedback_view()->SetVisible(false); |
176 AddChildView(status_area_); | 171 AddChildView(status_area_); |
177 } | 172 } |
178 | 173 |
179 void BackgroundView::InitInfoLabels() { | 174 void BackgroundView::InitInfoLabels() { |
180 const SkColor kVersionColor = 0xff8eb1f4; | 175 const SkColor kVersionColor = 0xff8eb1f4; |
181 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); | 176 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); |
182 | 177 |
183 os_version_label_ = new views::Label(); | 178 os_version_label_ = new views::Label(); |
184 os_version_label_->SetHorizontalAlignment(views::Label::ALIGN_LEFT); | 179 os_version_label_->SetHorizontalAlignment(views::Label::ALIGN_LEFT); |
185 os_version_label_->SetColor(kVersionColor); | 180 os_version_label_->SetColor(kVersionColor); |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 boot_times.total, | 269 boot_times.total, |
275 boot_times.firmware, | 270 boot_times.firmware, |
276 boot_times.pre_startup, | 271 boot_times.pre_startup, |
277 boot_times.system); | 272 boot_times.system); |
278 } | 273 } |
279 // Use UTF8ToWide once this string is localized. | 274 // Use UTF8ToWide once this string is localized. |
280 boot_times_label_->SetText(ASCIIToWide(boot_times_text)); | 275 boot_times_label_->SetText(ASCIIToWide(boot_times_text)); |
281 } | 276 } |
282 | 277 |
283 } // namespace chromeos | 278 } // namespace chromeos |
OLD | NEW |