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

Side by Side Diff: chrome/browser/chromeos/power/user_activity_notifier.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_POWER_USER_ACTIVITY_NOTIFIER_H_
6 #define CHROME_BROWSER_CHROMEOS_POWER_USER_ACTIVITY_NOTIFIER_H_
7 #pragma once
8
9 #include "ash/wm/user_activity_detector.h"
10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h"
12 #include "base/time.h"
13
14 namespace chromeos {
15
16 // Notifies the power manager when the user is active.
17 class UserActivityNotifier : public ash::UserActivityObserver {
18 public:
19 UserActivityNotifier();
20 virtual ~UserActivityNotifier();
21
22 // ash::UserActivityObserver implementation.
23 virtual void OnUserActivity() OVERRIDE;
24
25 private:
26 // Last time that the power manager was notified.
27 base::TimeTicks last_notify_time_;
28
29 DISALLOW_COPY_AND_ASSIGN(UserActivityNotifier);
30 };
31
32 } // namespace chromeos
33
34 #endif // CHROME_BROWSER_CHROMEOS_POWER_USER_ACTIVITY_NOTIFIER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698