| OLD | NEW |
| (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_ |
| OLD | NEW |