Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: ash/system/power/tray_power.cc

Issue 10200006: ash: Refresh the tray items, instead of recreating them, when login status changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/system/power/tray_power.h ('k') | ash/system/settings/tray_settings.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ash/system/power/tray_power.h ('k') | ash/system/settings/tray_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698