Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Side by Side Diff: components/mus/public/interfaces/user_activity_monitor.mojom

Issue 2119963002: Move mus to //services/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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, UserIdleObserver observer);
31 };
OLDNEW
« no previous file with comments | « components/mus/public/interfaces/user_access_manager.mojom ('k') | components/mus/public/interfaces/window_manager.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698