Chromium Code Reviews| 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_ |