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

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

Issue 2801333002: mash: Run pre-unlock animation via SessionController (Closed)
Patch Set: rebase 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 // Updates a user session. This is called when a user session is added or 127 // Updates a user session. This is called when a user session is added or
128 // its meta data (e.g. name, avatar) is changed. There is no method to remove 128 // its meta data (e.g. name, avatar) is changed. There is no method to remove
129 // a user session because ash/chrome does not support that. All users are 129 // a user session because ash/chrome does not support that. All users are
130 // logged out at the same time. 130 // logged out at the same time.
131 UpdateUserSession(UserSession user_session); 131 UpdateUserSession(UserSession user_session);
132 132
133 // Sets the order of user sessions. The order is keyed by the session id. 133 // Sets the order of user sessions. The order is keyed by the session id.
134 // Currently, session manager set a LRU order with the first one being the 134 // Currently, session manager set a LRU order with the first one being the
135 // active user session. 135 // active user session.
136 SetUserSessionOrder(array<uint32> user_session_ids); 136 SetUserSessionOrder(array<uint32> user_session_ids);
137
138 // Runs the pre-unlock animation. Invoked by the screen locker before
139 // dismissing. When the mojo call returns, screen locker takes that as a
140 // signal of finished unlock animation and dismisses itself.
141 RunUnlockAnimation() => ();
137 }; 142 };
138 143
139 // Interface for ash to request session service from its client (e.g. Chrome). 144 // Interface for ash to request session service from its client (e.g. Chrome).
140 interface SessionControllerClient { 145 interface SessionControllerClient {
141 // Requests to lock screen. 146 // Requests to lock screen.
142 RequestLockScreen(); 147 RequestLockScreen();
143 148
144 // Switch to the active user with |account_id| (if the user has already signed 149 // Switch to the active user with |account_id| (if the user has already signed
145 // in). 150 // in).
146 SwitchActiveUser(signin.mojom.AccountId account_id); 151 SwitchActiveUser(signin.mojom.AccountId account_id);
147 152
148 // Switch the active user to the next or previous user. 153 // Switch the active user to the next or previous user.
149 CycleActiveUser(CycleUserDirection direction); 154 CycleActiveUser(CycleUserDirection direction);
150 }; 155 };
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