| OLD | NEW |
| 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 #ifndef ASH_SESSION_SESSION_CONTROLLER_H_ | 5 #ifndef ASH_SESSION_SESSION_CONTROLLER_H_ |
| 6 #define ASH_SESSION_SESSION_CONTROLLER_H_ | 6 #define ASH_SESSION_SESSION_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 bool ShouldLockScreenAutomatically() const; | 62 bool ShouldLockScreenAutomatically() const; |
| 63 | 63 |
| 64 // Returns true if user session blocked by some overlying UI. It can be | 64 // Returns true if user session blocked by some overlying UI. It can be |
| 65 // login screen, lock screen or screen for adding users into multi-profile | 65 // login screen, lock screen or screen for adding users into multi-profile |
| 66 // session. | 66 // session. |
| 67 bool IsUserSessionBlocked() const; | 67 bool IsUserSessionBlocked() const; |
| 68 | 68 |
| 69 // Convenience function that returns true if session state is LOGIN_SECONDARY. | 69 // Convenience function that returns true if session state is LOGIN_SECONDARY. |
| 70 bool IsInSecondaryLoginScreen() const; | 70 bool IsInSecondaryLoginScreen() const; |
| 71 | 71 |
| 72 // Returns true if the settings icon should be enabled in the system tray. |
| 73 bool ShouldEnableSettings() const; |
| 74 |
| 75 // Returns true if the notification tray should appear. |
| 76 bool ShouldShowNotificationTray() const; |
| 77 |
| 72 // Gets the ash session state. | 78 // Gets the ash session state. |
| 73 session_manager::SessionState GetSessionState() const; | 79 session_manager::SessionState GetSessionState() const; |
| 74 | 80 |
| 75 // Gets the user sessions in LRU order with the active session being first. | 81 // Gets the user sessions in LRU order with the active session being first. |
| 76 const std::vector<mojom::UserSessionPtr>& GetUserSessions() const; | 82 const std::vector<mojom::UserSessionPtr>& GetUserSessions() const; |
| 77 | 83 |
| 78 // Convenience helper to gets the user session at a given index. Returns | 84 // Convenience helper to gets the user session at a given index. Returns |
| 79 // nullptr if no user session is found for the index. | 85 // nullptr if no user session is found for the index. |
| 80 const mojom::UserSession* GetUserSession(UserIndex index) const; | 86 const mojom::UserSession* GetUserSession(UserIndex index) const; |
| 81 | 87 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 bool is_unlocking_ = false; | 160 bool is_unlocking_ = false; |
| 155 | 161 |
| 156 base::ObserverList<ash::SessionStateObserver> observers_; | 162 base::ObserverList<ash::SessionStateObserver> observers_; |
| 157 | 163 |
| 158 DISALLOW_COPY_AND_ASSIGN(SessionController); | 164 DISALLOW_COPY_AND_ASSIGN(SessionController); |
| 159 }; | 165 }; |
| 160 | 166 |
| 161 } // namespace ash | 167 } // namespace ash |
| 162 | 168 |
| 163 #endif // ASH_SESSION_SESSION_CONTROLLER_H_ | 169 #endif // ASH_SESSION_SESSION_CONTROLLER_H_ |
| OLD | NEW |