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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/session/session_types.h
diff --git a/ash/common/session/session_types.h b/ash/common/session/session_types.h
index 22604d12735f7efca9914304bce787b9925cb989..937feb2e503ef32ce140208a1ead4f046ad5a13b 100644
--- a/ash/common/session/session_types.h
+++ b/ash/common/session/session_types.h
@@ -11,6 +11,22 @@ namespace ash {
// index 0 is the currently active user.
using UserIndex = int;
+// Defines session state i.e. whether session is running or not and
+// whether user session is blocked by things like multi-profile login.
+enum class SessionState {
James Cook 2016/10/15 00:12:41 Thanks for switching to enum class!
+ // When primary user login UI is shown i.e. after boot or sign out,
+ // no active user session exists yet.
+ LOGIN_PRIMARY = 0,
+
+ // When secondary user login UI is shown i.e. other users are
+ // already logged in and is currently adding another user to the session.
+ LOGIN_SECONDARY,
+
+ // Inside a user session (including lock screen),
+ // no login UI (primary or multi-profiles) is shown.
+ ACTIVE,
+};
+
} // namespace ash
#endif // ASH_COMMON_SESSION_SESSION_TYPES_H_
« 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