OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 ASH_WM_USER_ACTIVITY_DETECTOR_H_ | 5 #ifndef ASH_WM_USER_ACTIVITY_DETECTOR_H_ |
6 #define ASH_WM_USER_ACTIVITY_DETECTOR_H_ | 6 #define ASH_WM_USER_ACTIVITY_DETECTOR_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/observer_list.h" | 11 #include "base/observer_list.h" |
12 #include "base/time.h" | 12 #include "base/time/time.h" |
13 #include "ui/base/events/event_handler.h" | 13 #include "ui/base/events/event_handler.h" |
14 | 14 |
15 namespace ash { | 15 namespace ash { |
16 | 16 |
17 class UserActivityObserver; | 17 class UserActivityObserver; |
18 | 18 |
19 // Watches for input events and notifies observers that the user is active. | 19 // Watches for input events and notifies observers that the user is active. |
20 class ASH_EXPORT UserActivityDetector : public ui::EventHandler { | 20 class ASH_EXPORT UserActivityDetector : public ui::EventHandler { |
21 public: | 21 public: |
22 // Minimum amount of time between notifications to observers. | 22 // Minimum amount of time between notifications to observers. |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 // is to avoid reporting mouse events that occur when displays are turned | 72 // is to avoid reporting mouse events that occur when displays are turned |
73 // on or off as user activity. | 73 // on or off as user activity. |
74 base::TimeTicks honor_mouse_events_time_; | 74 base::TimeTicks honor_mouse_events_time_; |
75 | 75 |
76 DISALLOW_COPY_AND_ASSIGN(UserActivityDetector); | 76 DISALLOW_COPY_AND_ASSIGN(UserActivityDetector); |
77 }; | 77 }; |
78 | 78 |
79 } // namespace ash | 79 } // namespace ash |
80 | 80 |
81 #endif // ASH_WM_USER_ACTIVITY_DETECTOR_H_ | 81 #endif // ASH_WM_USER_ACTIVITY_DETECTOR_H_ |
OLD | NEW |