OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_SESSION_SESSION_STATE_DELEGATE_H_ | 5 #ifndef ASH_SESSION_SESSION_STATE_DELEGATE_H_ |
6 #define ASH_SESSION_SESSION_STATE_DELEGATE_H_ | 6 #define ASH_SESSION_SESSION_STATE_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 virtual void LockScreen() = 0; | 113 virtual void LockScreen() = 0; |
114 | 114 |
115 // Unlocks the screen. | 115 // Unlocks the screen. |
116 virtual void UnlockScreen() = 0; | 116 virtual void UnlockScreen() = 0; |
117 | 117 |
118 // Returns |true| if user session blocked by some overlying UI. It can be | 118 // Returns |true| if user session blocked by some overlying UI. It can be |
119 // login screen, lock screen or screen for adding users into multi-profile | 119 // login screen, lock screen or screen for adding users into multi-profile |
120 // session. | 120 // session. |
121 virtual bool IsUserSessionBlocked() const = 0; | 121 virtual bool IsUserSessionBlocked() const = 0; |
122 | 122 |
| 123 // Returns true if at any Supervised User creation screen. |
| 124 virtual bool IsInSupervisedUserCreationFlow() const = 0; |
| 125 |
| 126 virtual void SetIsInSupervisedUserCreationFlow(bool is_in_flow) = 0; |
| 127 |
123 // Returns current session state. | 128 // Returns current session state. |
124 virtual SessionState GetSessionState() const = 0; | 129 virtual SessionState GetSessionState() const = 0; |
125 | 130 |
126 // TODO(oshima): consolidate these two GetUserInfo. | 131 // TODO(oshima): consolidate these two GetUserInfo. |
127 | 132 |
128 // Gets the user info for the user with the given |index|. | 133 // Gets the user info for the user with the given |index|. |
129 // Note that |index| can at maximum be |NumberOfLoggedInUsers() - 1|. | 134 // Note that |index| can at maximum be |NumberOfLoggedInUsers() - 1|. |
130 virtual const user_manager::UserInfo* GetUserInfo( | 135 virtual const user_manager::UserInfo* GetUserInfo( |
131 MultiProfileIndex index) const = 0; | 136 MultiProfileIndex index) const = 0; |
132 | 137 |
(...skipping 18 matching lines...) Expand all Loading... |
151 // Adds or removes sessions state observer. | 156 // Adds or removes sessions state observer. |
152 virtual void AddSessionStateObserver(SessionStateObserver* observer) = 0; | 157 virtual void AddSessionStateObserver(SessionStateObserver* observer) = 0; |
153 virtual void RemoveSessionStateObserver(SessionStateObserver* observer) = 0; | 158 virtual void RemoveSessionStateObserver(SessionStateObserver* observer) = 0; |
154 | 159 |
155 bool IsInSecondaryLoginScreen() const; | 160 bool IsInSecondaryLoginScreen() const; |
156 }; | 161 }; |
157 | 162 |
158 } // namespace ash | 163 } // namespace ash |
159 | 164 |
160 #endif // ASH_SESSION_SESSION_STATE_DELEGATE_H_ | 165 #endif // ASH_SESSION_SESSION_STATE_DELEGATE_H_ |
OLD | NEW |