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

Unified Diff: ash/system/power/tray_power.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: 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
Index: ash/system/power/tray_power.h
diff --git a/ash/system/power/tray_power.h b/ash/system/power/tray_power.h
index 864d14e9d5f4c6f36261e97b6e86da7ff96aa0dc..78499b6cf09e099bf79b9cb6823a59a91963c45d 100644
--- a/ash/system/power/tray_power.h
+++ b/ash/system/power/tray_power.h
@@ -9,6 +9,12 @@
#include "ash/system/power/power_status_observer.h"
#include "ash/system/tray/system_tray_item.h"
+class SkBitmap;
+
+namespace gfx {
+class ImageSkia;
+}
+
namespace ash {
namespace internal {
@@ -17,6 +23,11 @@ class PowerNotificationView;
class PowerTrayView;
}
+enum IconSet {
+ ICON_LIGHT,
+ ICON_DARK
+};
+
class TrayPower : public SystemTrayItem,
public PowerStatusObserver {
public:
@@ -53,6 +64,9 @@ class TrayPower : public SystemTrayItem,
DISALLOW_COPY_AND_ASSIGN(TrayPower);
};
+gfx::ImageSkia GetBatteryImage(const PowerSupplyStatus& supply_status,
+ IconSet icon_set);
stevenjb 2012/06/07 01:31:18 nit: align
stevenjb 2012/06/07 01:31:18 Also, this would be better as a static member func
jennyz 2012/06/07 22:06:52 Done.
jennyz 2012/06/07 22:06:52 Done.
+
} // namespace internal
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698