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

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

Issue 2637403007: cros: Change max users to be a constant (Closed)
Patch Set: fix test Created 3 years, 11 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/mus/test/wm_test_base.cc ('k') | chrome/browser/ui/ash/session_controller_client.cc » ('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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 // Disallowed due to no eligible users. 91 // Disallowed due to no eligible users.
92 ERROR_NO_ELIGIBLE_USERS, 92 ERROR_NO_ELIGIBLE_USERS,
93 93
94 // Disallowed due to reaching maximum supported user. 94 // Disallowed due to reaching maximum supported user.
95 ERROR_MAXIMUM_USERS_REACHED, 95 ERROR_MAXIMUM_USERS_REACHED,
96 }; 96 };
97 97
98 // Info about an ash session. 98 // Info about an ash session.
99 struct SessionInfo { 99 struct SessionInfo {
100 // Maximum possible number of logged in users in ash.
101 uint32 max_users;
102
103 // Whether the screen can be locked. 100 // Whether the screen can be locked.
104 bool can_lock_screen; 101 bool can_lock_screen;
105 102
106 // Whether the screen should be locked automatically before suspending. 103 // Whether the screen should be locked automatically before suspending.
107 bool should_lock_screen_automatically; 104 bool should_lock_screen_automatically;
108 105
109 // Sets whether adding a user session to ash is allowed. 106 // Sets whether adding a user session to ash is allowed.
110 AddUserSessionPolicy add_user_session_policy; 107 AddUserSessionPolicy add_user_session_policy;
111 108
112 // Current state of the ash session. 109 // Current state of the ash session.
(...skipping 25 matching lines...) Expand all
138 // Requests to lock screen. 135 // Requests to lock screen.
139 RequestLockScreen(); 136 RequestLockScreen();
140 137
141 // Switch to the active user with |account_id| (if the user has already signed 138 // Switch to the active user with |account_id| (if the user has already signed
142 // in). 139 // in).
143 SwitchActiveUser(signin.mojom.AccountId account_id); 140 SwitchActiveUser(signin.mojom.AccountId account_id);
144 141
145 // Switch the active user to the next or previous user. 142 // Switch the active user to the next or previous user.
146 CycleActiveUser(bool next_user); 143 CycleActiveUser(bool next_user);
147 }; 144 };
OLDNEW
« no previous file with comments | « ash/mus/test/wm_test_base.cc ('k') | chrome/browser/ui/ash/session_controller_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698