Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 module mus.mojom; | |
| 6 | |
| 7 interface UserActivityObserver { | |
| 8 OnUserActivity(); | |
| 9 }; | |
| 10 | |
| 11 interface UserIdleObserver { | |
| 12 enum IdleState { | |
| 13 ACTIVE, | |
| 14 IDLE, | |
| 15 }; | |
| 16 OnUserIdleStateChanged(IdleState new_state); | |
| 17 }; | |
| 18 | |
| 19 interface UserActivityMonitor { | |
| 20 // Notifies the observer of user activity at most once every | |
| 21 // |delay_between_notify_secs| seconds. | |
| 22 AddUserActivityObserver(uint32 delay_between_notify_secs, | |
| 23 UserActivityObserver observer); | |
| 24 | |
| 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 | |
| 27 // user has already been idle for |idle_time_in_minutes|, then | |
| 28 // OnUserIdleStateChanged(IDLE) is called on the observer, otherwise | |
| 29 // OnUserIdleStateChanged(ACTIVE) is called. | |
| 30 AddUserIdleObserver(uint32 idle_time_in_minutes, | |
| 31 UserIdleObserver observer); | |
|
meacer
2016/06/28 00:30:12
indentation
sadrul
2016/06/28 03:04:13
Done.
| |
| 32 }; | |
| OLD | NEW |