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

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

Issue 2724163002: ash: Use enum for SessionController::CycleActiveUser (Closed)
Patch Set: fix ash_shell_with_content compile Created 3 years, 9 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/public/cpp/session_types.h ('k') | ash/public/interfaces/session_controller.typemap » ('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 "skia/public/interfaces/bitmap.mojom"; 8 import "skia/public/interfaces/bitmap.mojom";
9 9
10 // Matches session_manager::SessionState. 10 // Matches session_manager::SessionState.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // Child user, with supervised options. 58 // Child user, with supervised options.
59 CHILD, 59 CHILD,
60 60
61 // Android app in kiosk mode, logs in without authentication. 61 // Android app in kiosk mode, logs in without authentication.
62 ARC_KIOSK, 62 ARC_KIOSK,
63 63
64 // Active Directory user. Authenticates against Active Directory server. 64 // Active Directory user. Authenticates against Active Directory server.
65 ACTIVE_DIRECTORY, 65 ACTIVE_DIRECTORY,
66 }; 66 };
67 67
68 // Matches ash::CycleUserDirection.
69 enum CycleUserDirection {
70 NEXT, // Cycle to the next user.
71 PREVIOUS, // Cycle to the previous user.
72 };
73
68 // Info about a user session in ash. 74 // Info about a user session in ash.
69 struct UserSession { 75 struct UserSession {
70 // A user session id for the user session. It is generated by session manager 76 // A user session id for the user session. It is generated by session manager
71 // (chrome) when a user session starts and never changes during the lifetime 77 // (chrome) when a user session starts and never changes during the lifetime
72 // of the session manager. The number starts at 1 for the first user session 78 // of the session manager. The number starts at 1 for the first user session
73 // and incremented by one for each subsequent user session. 79 // and incremented by one for each subsequent user session.
74 uint32 session_id; 80 uint32 session_id;
75 81
76 UserType type; 82 UserType type;
77 signin.mojom.AccountId account_id; 83 signin.mojom.AccountId account_id;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 // Interface for ash to request session service from its client (e.g. Chrome). 139 // Interface for ash to request session service from its client (e.g. Chrome).
134 interface SessionControllerClient { 140 interface SessionControllerClient {
135 // Requests to lock screen. 141 // Requests to lock screen.
136 RequestLockScreen(); 142 RequestLockScreen();
137 143
138 // Switch to the active user with |account_id| (if the user has already signed 144 // Switch to the active user with |account_id| (if the user has already signed
139 // in). 145 // in).
140 SwitchActiveUser(signin.mojom.AccountId account_id); 146 SwitchActiveUser(signin.mojom.AccountId account_id);
141 147
142 // Switch the active user to the next or previous user. 148 // Switch the active user to the next or previous user.
143 CycleActiveUser(bool next_user); 149 CycleActiveUser(CycleUserDirection direction);
144 }; 150 };
OLDNEW
« no previous file with comments | « ash/public/cpp/session_types.h ('k') | ash/public/interfaces/session_controller.typemap » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698