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

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

Issue 32443004: ash: Improve low-battery notification thresholds. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: apply review feedback: update comment Created 7 years, 2 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/chromeos/power/power_status_view.cc ('k') | ash/system/chromeos/power/tray_power.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/chromeos/power/tray_power.h
diff --git a/ash/system/chromeos/power/tray_power.h b/ash/system/chromeos/power/tray_power.h
index 2a66cd5e4aba35d5c41065a7b0412cf074dfa532..9fb65b716918a092b20bf6d372d939f32b2b6114 100644
--- a/ash/system/chromeos/power/tray_power.h
+++ b/ash/system/chromeos/power/tray_power.h
@@ -41,6 +41,16 @@ class ASH_EXPORT TrayPower : public SystemTrayItem,
NOTIFICATION_CRITICAL,
};
+ // Time-based notification thresholds when on battery power.
+ static const int kCriticalMinutes;
+ static const int kLowPowerMinutes;
+ static const int kNoWarningMinutes;
+
+ // Percentage-based notification thresholds when using a low-power charger.
+ static const int kCriticalPercentage;
+ static const int kLowPowerPercentage;
+ static const int kNoWarningPercentage;
+
TrayPower(SystemTray* system_tray,
message_center::MessageCenter* message_center);
virtual ~TrayPower();
« no previous file with comments | « ash/system/chromeos/power/power_status_view.cc ('k') | ash/system/chromeos/power/tray_power.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698