summaryrefslogtreecommitdiffstats
path: root/chromeos/dbus/fake_power_manager_client.h
diff options
context:
space:
mode:
authorderat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-17 05:35:47 +0000
committerderat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-17 05:35:47 +0000
commit0b1eede37df1ab9ea33125fbf5dfb523b2fa7a8f (patch)
tree00503cceccc91aaafba2262a3f02307c0ca33147 /chromeos/dbus/fake_power_manager_client.h
parent09a10057e09de243a53915d7ebeaad19c2f9e029 (diff)
downloadchromium_src-0b1eede37df1ab9ea33125fbf5dfb523b2fa7a8f.zip
chromium_src-0b1eede37df1ab9ea33125fbf5dfb523b2fa7a8f.tar.gz
chromium_src-0b1eede37df1ab9ea33125fbf5dfb523b2fa7a8f.tar.bz2
chromeos: Report user activity type to power manager.
This makes Chrome's reports of user activity to powerd include an enum describing the event type (currently just "brightness up", "brightness down", and "other"). To facilitate this, it makes UserActivityDetector pass the event that triggered the notification to observers. To facilitate _that_, it reorders UserActivityDetector to run after EventRewriterEventFilter instead of before it. It also updates the cros_system_api dependency to 59a6e103. BUG=254841 Review URL: https://chromiumcodereview.appspot.com/18906003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211957 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/dbus/fake_power_manager_client.h')
-rw-r--r--chromeos/dbus/fake_power_manager_client.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/chromeos/dbus/fake_power_manager_client.h b/chromeos/dbus/fake_power_manager_client.h
index 130edd2..31dd227 100644
--- a/chromeos/dbus/fake_power_manager_client.h
+++ b/chromeos/dbus/fake_power_manager_client.h
@@ -36,7 +36,8 @@ class FakePowerManagerClient : public PowerManagerClient {
virtual void RequestRestart() OVERRIDE;
virtual void RequestShutdown() OVERRIDE;
virtual void RequestIdleNotification(int64 threshold_secs) OVERRIDE;
- virtual void NotifyUserActivity() OVERRIDE;
+ virtual void NotifyUserActivity(
+ power_manager::UserActivityType type) OVERRIDE;
virtual void NotifyVideoActivity(bool is_fullscreen) OVERRIDE;
virtual void SetPolicy(
const power_manager::PowerManagementPolicy& policy) OVERRIDE;