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

Side by Side Diff: ash/common/session/session_types.h

Issue 2416253004: ash: Use session_manager::SessionState (Closed)
Patch Set: fix compile Created 4 years, 2 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/common/session/session_state_observer.h ('k') | ash/common/shelf/shelf_layout_manager.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef ASH_COMMON_SESSION_SESSION_TYPES_H_ 5 #ifndef ASH_COMMON_SESSION_SESSION_TYPES_H_
6 #define ASH_COMMON_SESSION_SESSION_TYPES_H_ 6 #define ASH_COMMON_SESSION_SESSION_TYPES_H_
7 7
8 namespace ash { 8 namespace ash {
9 9
10 // The index of the user profile to use. The list is always LRU sorted so that 10 // The index of the user profile to use. The list is always LRU sorted so that
11 // index 0 is the currently active user. 11 // index 0 is the currently active user.
12 using UserIndex = int; 12 using UserIndex = int;
13 13
14 // Defines session state i.e. whether session is running or not and
15 // whether user session is blocked by things like multi-profile login.
16 enum class SessionState {
James Cook 2016/10/15 00:12:41 Thanks for switching to enum class!
17 // When primary user login UI is shown i.e. after boot or sign out,
18 // no active user session exists yet.
19 LOGIN_PRIMARY = 0,
20
21 // When secondary user login UI is shown i.e. other users are
22 // already logged in and is currently adding another user to the session.
23 LOGIN_SECONDARY,
24
25 // Inside a user session (including lock screen),
26 // no login UI (primary or multi-profiles) is shown.
27 ACTIVE,
28 };
29
14 } // namespace ash 30 } // namespace ash
15 31
16 #endif // ASH_COMMON_SESSION_SESSION_TYPES_H_ 32 #endif // ASH_COMMON_SESSION_SESSION_TYPES_H_
OLDNEW
« no previous file with comments | « ash/common/session/session_state_observer.h ('k') | ash/common/shelf/shelf_layout_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698