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

Unified Diff: ash/system/tray/system_tray.h

Issue 10540041: Add battery status to settings row in uber tray bubble. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nits. Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/system/settings/tray_settings.cc ('k') | ash/system/tray/system_tray.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/system_tray.h
diff --git a/ash/system/tray/system_tray.h b/ash/system/tray/system_tray.h
index 650799ae780f78964065c9a01fd937ddc6a11302..8cee8199a1b14d27ccd23c3ec225e80c80c8d337 100644
--- a/ash/system/tray/system_tray.h
+++ b/ash/system/tray/system_tray.h
@@ -7,6 +7,7 @@
#pragma once
#include "ash/ash_export.h"
+#include "ash/system/power/power_supply_status.h"
#include "ash/system/tray/tray_background_view.h"
#include "ash/system/tray/tray_views.h"
#include "ash/system/user/login_status.h"
@@ -131,8 +132,8 @@ class ASH_EXPORT SystemTray : public internal::TrayBackgroundView {
NetworkObserver* network_observer() const {
return network_observer_;
}
- PowerStatusObserver* power_status_observer() const {
- return power_status_observer_;
+ ObserverList<PowerStatusObserver>& power_status_observers() {
+ return power_status_observers_;
}
UpdateObserver* update_observer() const {
return update_observer_;
@@ -221,7 +222,7 @@ class ASH_EXPORT SystemTray : public internal::TrayBackgroundView {
IMEObserver* ime_observer_;
LocaleObserver* locale_observer_;
NetworkObserver* network_observer_;
- PowerStatusObserver* power_status_observer_;
+ ObserverList<PowerStatusObserver> power_status_observers_;
UpdateObserver* update_observer_;
UserObserver* user_observer_;
« no previous file with comments | « ash/system/settings/tray_settings.cc ('k') | ash/system/tray/system_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698