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

Side by Side Diff: ash/public/interfaces/session_controller.mojom

Issue 2923083002: chromeos: Convert system tray session length limit to mojo (Closed)
Patch Set: rebase Created 3 years, 6 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
« no previous file with comments | « ash/BUILD.gn ('k') | ash/session/session_controller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 ash.mojom; 5 module ash.mojom;
6 6
7 import "ash/public/interfaces/user_info.mojom"; 7 import "ash/public/interfaces/user_info.mojom";
8 import "components/signin/public/interfaces/account_id.mojom"; 8 import "components/signin/public/interfaces/account_id.mojom";
9 import "mojo/common/time.mojom";
9 10
10 // Matches session_manager::SessionState. 11 // Matches session_manager::SessionState.
11 enum SessionState { 12 enum SessionState {
12 // Default value, when session state hasn't been initialized yet. 13 // Default value, when session state hasn't been initialized yet.
13 UNKNOWN, 14 UNKNOWN,
14 15
15 // Running out of box UI. 16 // Running out of box UI.
16 OOBE, 17 OOBE,
17 18
18 // Running login UI (primary user) but user sign in hasn't completed yet. 19 // Running login UI (primary user) but user sign in hasn't completed yet.
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 // event for locking. SessionController forwards it to PowerEventObserver. 135 // event for locking. SessionController forwards it to PowerEventObserver.
135 NotifyChromeLockAnimationsComplete(); 136 NotifyChromeLockAnimationsComplete();
136 137
137 // Runs the pre-unlock animation. Invoked by the screen locker before 138 // Runs the pre-unlock animation. Invoked by the screen locker before
138 // dismissing. When the mojo call returns, screen locker takes that as a 139 // dismissing. When the mojo call returns, screen locker takes that as a
139 // signal of finished unlock animation and dismisses itself. 140 // signal of finished unlock animation and dismisses itself.
140 RunUnlockAnimation() => (); 141 RunUnlockAnimation() => ();
141 142
142 // Notifies that chrome is terminating. 143 // Notifies that chrome is terminating.
143 NotifyChromeTerminating(); 144 NotifyChromeTerminating();
145
146 // Adds a countdown timer to the system tray menu and creates or updates a
147 // notification saying the session length is limited (e.g. a public session in
148 // a library). Setting |length_limit| to zero removes the notification.
149 // NOTE: Chrome enforces the limit, not ash. Ash could enforce it if local
150 // state prefs and user activity monitoring were available under mustash.
151 // http://crbug.com/729808
152 SetSessionLengthLimit(mojo.common.mojom.TimeDelta length_limit,
153 mojo.common.mojom.TimeTicks start_time);
144 }; 154 };
145 155
146 // Interface for ash to request session service from its client (e.g. Chrome). 156 // Interface for ash to request session service from its client (e.g. Chrome).
147 interface SessionControllerClient { 157 interface SessionControllerClient {
148 // Requests to lock screen. 158 // Requests to lock screen.
149 RequestLockScreen(); 159 RequestLockScreen();
150 160
151 // Switch to the active user with |account_id| (if the user has already signed 161 // Switch to the active user with |account_id| (if the user has already signed
152 // in). 162 // in).
153 SwitchActiveUser(signin.mojom.AccountId account_id); 163 SwitchActiveUser(signin.mojom.AccountId account_id);
154 164
155 // Switch the active user to the next or previous user. 165 // Switch the active user to the next or previous user.
156 CycleActiveUser(CycleUserDirection direction); 166 CycleActiveUser(CycleUserDirection direction);
157 }; 167 };
OLDNEW
« no previous file with comments | « ash/BUILD.gn ('k') | ash/session/session_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698