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

Unified Diff: ui/chromeos/user_activity_power_manager_notifier.h

Issue 2639703004: mus: Forward user activity from window server to detector. (Closed)
Patch Set: add comments to UserActivityPowerManagerNotifier Created 3 years, 11 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: ui/chromeos/user_activity_power_manager_notifier.h
diff --git a/ui/chromeos/user_activity_power_manager_notifier.h b/ui/chromeos/user_activity_power_manager_notifier.h
index 123343c5f22dc6aec97e5cb8836a731c1c559b6d..2020d377d0cc44fdbc9d2425fc8c3123a1d000b8 100644
--- a/ui/chromeos/user_activity_power_manager_notifier.h
+++ b/ui/chromeos/user_activity_power_manager_notifier.h
@@ -15,10 +15,12 @@ namespace ui {
class UserActivityDetector;
-// Notifies the power manager when the user is active.
+// Notifies the power manager via D-Bus when the user is active.
class UI_CHROMEOS_EXPORT UserActivityPowerManagerNotifier
: public UserActivityObserver {
public:
+ // Registers and unregisters itself as an observer of |detector| on
+ // construction and destruction.
explicit UserActivityPowerManagerNotifier(UserActivityDetector* detector);
~UserActivityPowerManagerNotifier() override;

Powered by Google App Engine
This is Rietveld 408576698