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 module mus.mojom; | 5 module mus.mojom; |
6 | 6 |
7 interface UserActivityObserver { | 7 interface UserActivityObserver { |
8 OnUserActivity(); | 8 OnUserActivity(); |
9 }; | 9 }; |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... |
22 AddUserActivityObserver(uint32 delay_between_notify_secs, | 22 AddUserActivityObserver(uint32 delay_between_notify_secs, |
23 UserActivityObserver observer); | 23 UserActivityObserver observer); |
24 | 24 |
25 // Notifies the observer when user is idle for more than | 25 // Notifies the observer when user is idle for more than |
26 // |idle_time_in_minutes| minutes. When the observer is first added, if the | 26 // |idle_time_in_minutes| minutes. When the observer is first added, if the |
27 // user has already been idle for |idle_time_in_minutes|, then | 27 // user has already been idle for |idle_time_in_minutes|, then |
28 // OnUserIdleStateChanged(IDLE) is called on the observer, otherwise | 28 // OnUserIdleStateChanged(IDLE) is called on the observer, otherwise |
29 // OnUserIdleStateChanged(ACTIVE) is called. | 29 // OnUserIdleStateChanged(ACTIVE) is called. |
30 AddUserIdleObserver(uint32 idle_time_in_minutes, UserIdleObserver observer); | 30 AddUserIdleObserver(uint32 idle_time_in_minutes, UserIdleObserver observer); |
31 }; | 31 }; |
OLD | NEW |