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

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

Issue 2836163002: mash: Shell ref clean up for screen lock (Closed)
Patch Set: rebase, fix compile Created 3 years, 8 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 | « no previous file | 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 "components/signin/public/interfaces/account_id.mojom"; 7 import "components/signin/public/interfaces/account_id.mojom";
8 import "ui/gfx/image/mojo/image.mojom"; 8 import "ui/gfx/image/mojo/image.mojom";
9 9
10 // Matches session_manager::SessionState. 10 // Matches session_manager::SessionState.
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 // a user session because ash/chrome does not support that. All users are 146 // a user session because ash/chrome does not support that. All users are
147 // logged out at the same time. 147 // logged out at the same time.
148 UpdateUserSession(UserSession user_session); 148 UpdateUserSession(UserSession user_session);
149 149
150 // Sets the order of user sessions. The order is keyed by the session id. 150 // Sets the order of user sessions. The order is keyed by the session id.
151 // Currently, session manager set a LRU order with the first one being the 151 // Currently, session manager set a LRU order with the first one being the
152 // active user session. 152 // active user session.
153 SetUserSessionOrder(array<uint32> user_session_ids); 153 SetUserSessionOrder(array<uint32> user_session_ids);
154 154
155 // Runs the pre-lock animation to start locking ash. When the call returns, 155 // Runs the pre-lock animation to start locking ash. When the call returns,
156 // |locked| == true means that the post-lock animation is finished and ash is 156 // |locked| == true means that the ash post-lock animation is finished and ash
157 // fully locked. Otherwise |locked| is false, which means something is wrong 157 // is fully locked. Otherwise |locked| is false, which means something is
158 // for the lock and ash is not locked. When the call returns with a true 158 // wrong for the lock and ash is not locked. When the call returns with a true
159 // |locked|, screen locker runs the post lock jobs such as a11y announcement 159 // |locked|, screen locker runs the post lock jobs such as a11y announcement
160 // etc. Invoked by the screen locker during initialization. 160 // etc. Invoked by the screen locker during initialization.
161 StartLock() => (bool locked); 161 StartLock() => (bool locked);
162 162
163 // Notifies ash that chrome lock animations are finished. This is the last
164 // event for locking. SessionController forwards it to PowerEventObserver.
165 NotifyChromeLockAnimationsComplete();
166
163 // Runs the pre-unlock animation. Invoked by the screen locker before 167 // Runs the pre-unlock animation. Invoked by the screen locker before
164 // dismissing. When the mojo call returns, screen locker takes that as a 168 // dismissing. When the mojo call returns, screen locker takes that as a
165 // signal of finished unlock animation and dismisses itself. 169 // signal of finished unlock animation and dismisses itself.
166 RunUnlockAnimation() => (); 170 RunUnlockAnimation() => ();
167 171
168 // Notifies that chrome is terminating. 172 // Notifies that chrome is terminating.
169 NotifyChromeTerminating(); 173 NotifyChromeTerminating();
170 }; 174 };
171 175
172 // Interface for ash to request session service from its client (e.g. Chrome). 176 // Interface for ash to request session service from its client (e.g. Chrome).
173 interface SessionControllerClient { 177 interface SessionControllerClient {
174 // Requests to lock screen. 178 // Requests to lock screen.
175 RequestLockScreen(); 179 RequestLockScreen();
176 180
177 // Switch to the active user with |account_id| (if the user has already signed 181 // Switch to the active user with |account_id| (if the user has already signed
178 // in). 182 // in).
179 SwitchActiveUser(signin.mojom.AccountId account_id); 183 SwitchActiveUser(signin.mojom.AccountId account_id);
180 184
181 // Switch the active user to the next or previous user. 185 // Switch the active user to the next or previous user.
182 CycleActiveUser(CycleUserDirection direction); 186 CycleActiveUser(CycleUserDirection direction);
183 }; 187 };
OLDNEW
« no previous file with comments | « no previous file | ash/session/session_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698