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

Unified Diff: ash/system/power/tray_power.h

Issue 10907037: Only update system power indicators on change (Closed) Base URL: https://git.chromium.org/git/chromium/src@git-svn
Patch Set: Created 8 years, 4 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 19175cbc24b9e96665be24d39f9d1cf561ca4bee..38a67901fe29e3db6f0cf7efae2540e53fffa61c 100644
--- a/ash/system/power/tray_power.h
+++ b/ash/system/power/tray_power.h
@@ -33,8 +33,8 @@ class TrayPower : public SystemTrayItem,
TrayPower();
virtual ~TrayPower();
- static gfx::ImageSkia GetBatteryImage(const PowerSupplyStatus& supply_status,
- IconSet icon_set);
+ static int GetBatteryImageIndex(const PowerSupplyStatus& supply_status);
Daniel Erat 2012/09/04 21:51:58 nit: add comments documenting what these do
+ static gfx::ImageSkia GetBatteryImage(int image_index, IconSet icon_set);
private:
enum NotificationState {

Powered by Google App Engine
This is Rietveld 408576698