OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 COMPONENTS_MUS_WS_USER_ACTIVITY_MONITOR_H_ | 5 #ifndef SERVICES_UI_WS_USER_ACTIVITY_MONITOR_H_ |
6 #define COMPONENTS_MUS_WS_USER_ACTIVITY_MONITOR_H_ | 6 #define SERVICES_UI_WS_USER_ACTIVITY_MONITOR_H_ |
7 | 7 |
8 #include "base/time/tick_clock.h" | 8 #include "base/time/tick_clock.h" |
9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
10 #include "base/timer/timer.h" | 10 #include "base/timer/timer.h" |
11 #include "components/mus/public/interfaces/user_activity_monitor.mojom.h" | |
12 #include "mojo/public/cpp/bindings/binding_set.h" | 11 #include "mojo/public/cpp/bindings/binding_set.h" |
13 #include "mojo/public/cpp/bindings/interface_ptr_set.h" | 12 #include "mojo/public/cpp/bindings/interface_ptr_set.h" |
| 13 #include "services/ui/public/interfaces/user_activity_monitor.mojom.h" |
14 | 14 |
15 namespace mus { | 15 namespace mus { |
16 namespace ws { | 16 namespace ws { |
17 | 17 |
18 namespace test { | 18 namespace test { |
19 class UserActivityMonitorTestApi; | 19 class UserActivityMonitorTestApi; |
20 } | 20 } |
21 | 21 |
22 class UserActivityMonitor : public mojom::UserActivityMonitor { | 22 class UserActivityMonitor : public mojom::UserActivityMonitor { |
23 public: | 23 public: |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 // least one of the idle-observers are notified ACTIVE. | 72 // least one of the idle-observers are notified ACTIVE. |
73 base::RepeatingTimer idle_timer_; | 73 base::RepeatingTimer idle_timer_; |
74 base::TimeTicks last_activity_; | 74 base::TimeTicks last_activity_; |
75 | 75 |
76 DISALLOW_COPY_AND_ASSIGN(UserActivityMonitor); | 76 DISALLOW_COPY_AND_ASSIGN(UserActivityMonitor); |
77 }; | 77 }; |
78 | 78 |
79 } // namespace ws | 79 } // namespace ws |
80 } // namespace mus | 80 } // namespace mus |
81 | 81 |
82 #endif // COMPONENTS_MUS_WS_USER_ACTIVITY_MONITOR_H_ | 82 #endif // SERVICES_UI_WS_USER_ACTIVITY_MONITOR_H_ |
OLD | NEW |