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

Unified Diff: chromeos/dbus/power_manager_client.h

Issue 10544011: chromeos: Notify power manager about user activity. (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: chromeos/dbus/power_manager_client.h
diff --git a/chromeos/dbus/power_manager_client.h b/chromeos/dbus/power_manager_client.h
index d172c9356015a56d591d8f6cd07e805ca513369f..cced783ddf3cc16ff12d725aa9a078c0fb2c2648 100644
--- a/chromeos/dbus/power_manager_client.h
+++ b/chromeos/dbus/power_manager_client.h
@@ -172,6 +172,11 @@ class CHROMEOS_EXPORT PowerManagerClient {
// NOTE: Like the previous request, this will also get triggered exactly once.
virtual void RequestActiveNotification() = 0;
+ // Notifies the power manager that the user is active (i.e. generating input
+ // events).
+ virtual void NotifyUserActivity(
+ const base::TimeTicks& last_activity_time) = 0;
+
// Notifies the power manager that a video is currently playing.
virtual void NotifyVideoActivity(
const base::TimeTicks& last_activity_time) = 0;

Powered by Google App Engine
This is Rietveld 408576698