OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "ash/system/power/tray_power.h" | 5 #include "ash/system/power/tray_power.h" |
6 | 6 |
7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
8 #include "ash/system/date/date_view.h" | 8 #include "ash/system/date/date_view.h" |
9 #include "ash/system/power/power_supply_status.h" | 9 #include "ash/system/power/power_supply_status.h" |
10 #include "ash/system/tray/system_tray_delegate.h" | 10 #include "ash/system/tray/system_tray_delegate.h" |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 } | 236 } |
237 | 237 |
238 void TrayPower::DestroyDefaultView() { | 238 void TrayPower::DestroyDefaultView() { |
239 date_.reset(); | 239 date_.reset(); |
240 power_.reset(); | 240 power_.reset(); |
241 } | 241 } |
242 | 242 |
243 void TrayPower::DestroyDetailedView() { | 243 void TrayPower::DestroyDetailedView() { |
244 } | 244 } |
245 | 245 |
| 246 void TrayPower::UpdateAfterLoginStatusChange(user::LoginStatus status) { |
| 247 } |
| 248 |
246 void TrayPower::OnPowerStatusChanged(const PowerSupplyStatus& status) { | 249 void TrayPower::OnPowerStatusChanged(const PowerSupplyStatus& status) { |
247 if (power_tray_.get()) | 250 if (power_tray_.get()) |
248 power_tray_->UpdatePowerStatus(status); | 251 power_tray_->UpdatePowerStatus(status); |
249 if (power_.get()) | 252 if (power_.get()) |
250 power_->UpdatePowerStatus(status); | 253 power_->UpdatePowerStatus(status); |
251 } | 254 } |
252 | 255 |
253 } // namespace internal | 256 } // namespace internal |
254 } // namespace ash | 257 } // namespace ash |
OLD | NEW |