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

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

Issue 9983002: Pass correct initial/user values when requesting power status (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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/tray/system_tray_delegate.h
diff --git a/ash/system/tray/system_tray_delegate.h b/ash/system/tray/system_tray_delegate.h
index 92cd195e9542dba168d7e443364357fd31dd5669..265d2321e77b001a73eb6fa25fef00222f3949de 100644
--- a/ash/system/tray/system_tray_delegate.h
+++ b/ash/system/tray/system_tray_delegate.h
@@ -69,6 +69,14 @@ struct PowerSupplyStatus;
class SystemTrayDelegate {
public:
+ // TODO(stevenjb): Use PowerManagerClient::UpdateRequestType once moved to
+ // /chromeos directory.
sadrul 2012/04/10 00:01:34 Looks like the relevant code has already moved int
stevenjb 2012/04/10 18:02:03 Removed.
+ enum UpdateRequestType {
+ UPDATE_INITIAL, // Initial update request.
+ UPDATE_USER, // User initialted update request.
+ UPDATE_POLL // Update requested by poll signal.
+ };
+
virtual ~SystemTrayDelegate() {}
// Returns true if system tray should be visible on startup.
@@ -90,7 +98,8 @@ class SystemTrayDelegate {
virtual base::HourClockType GetHourClockType() const = 0;
// Gets the current power supply status.
- virtual PowerSupplyStatus GetPowerSupplyStatus() const = 0;
+ virtual PowerSupplyStatus GetPowerSupplyStatus(
+ UpdateRequestType request_type) const = 0;
// Shows settings.
virtual void ShowSettings() = 0;

Powered by Google App Engine
This is Rietveld 408576698