OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_CHROMEOS_IDLE_DETECTOR_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_IDLE_DETECTOR_H_ |
6 #define CHROME_BROWSER_CHROMEOS_IDLE_DETECTOR_H_ | 6 #define CHROME_BROWSER_CHROMEOS_IDLE_DETECTOR_H_ |
7 | 7 |
8 #include "base/basictypes.h" | |
9 #include "base/callback.h" | 8 #include "base/callback.h" |
10 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/macros.h" |
11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
12 #include "base/timer/timer.h" | 12 #include "base/timer/timer.h" |
13 #include "ui/base/user_activity/user_activity_observer.h" | 13 #include "ui/base/user_activity/user_activity_observer.h" |
14 | 14 |
15 namespace chromeos { | 15 namespace chromeos { |
16 | 16 |
17 class IdleDetector : public ui::UserActivityObserver { | 17 class IdleDetector : public ui::UserActivityObserver { |
18 public: | 18 public: |
19 explicit IdleDetector(const base::Closure& on_idle_callback); | 19 explicit IdleDetector(const base::Closure& on_idle_callback); |
20 ~IdleDetector() override; | 20 ~IdleDetector() override; |
(...skipping 12 matching lines...) Expand all Loading... |
33 base::Closure idle_callback_; | 33 base::Closure idle_callback_; |
34 | 34 |
35 base::TimeDelta timeout_; | 35 base::TimeDelta timeout_; |
36 | 36 |
37 DISALLOW_COPY_AND_ASSIGN(IdleDetector); | 37 DISALLOW_COPY_AND_ASSIGN(IdleDetector); |
38 }; | 38 }; |
39 | 39 |
40 } // namespace chromeos | 40 } // namespace chromeos |
41 | 41 |
42 #endif // CHROME_BROWSER_CHROMEOS_IDLE_DETECTOR_H_ | 42 #endif // CHROME_BROWSER_CHROMEOS_IDLE_DETECTOR_H_ |
OLD | NEW |