| 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_TEST_TEST_SESSION_STATE_DELEGATE_H_ | 5 #ifndef ASH_TEST_TEST_SESSION_STATE_DELEGATE_H_ |
| 6 #define ASH_TEST_TEST_SESSION_STATE_DELEGATE_H_ | 6 #define ASH_TEST_TEST_SESSION_STATE_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 bool IsActiveUserSessionStarted() const override; | 38 bool IsActiveUserSessionStarted() const override; |
| 39 bool CanLockScreen() const override; | 39 bool CanLockScreen() const override; |
| 40 bool IsScreenLocked() const override; | 40 bool IsScreenLocked() const override; |
| 41 bool ShouldLockScreenBeforeSuspending() const override; | 41 bool ShouldLockScreenBeforeSuspending() const override; |
| 42 void LockScreen() override; | 42 void LockScreen() override; |
| 43 void UnlockScreen() override; | 43 void UnlockScreen() override; |
| 44 bool IsUserSessionBlocked() const override; | 44 bool IsUserSessionBlocked() const override; |
| 45 SessionState GetSessionState() const override; | 45 SessionState GetSessionState() const override; |
| 46 const user_manager::UserInfo* GetUserInfo( | 46 const user_manager::UserInfo* GetUserInfo( |
| 47 ash::UserIndex index) const override; | 47 ash::UserIndex index) const override; |
| 48 bool ShouldShowAvatar(aura::Window* window) const override; | 48 bool ShouldShowAvatar(WmWindow* window) const override; |
| 49 gfx::ImageSkia GetAvatarImageForWindow(aura::Window* window) const override; | 49 gfx::ImageSkia GetAvatarImageForWindow(WmWindow* window) const override; |
| 50 void SwitchActiveUser(const AccountId& account_id) override; | 50 void SwitchActiveUser(const AccountId& account_id) override; |
| 51 void CycleActiveUser(CycleUser cycle_user) override; | 51 void CycleActiveUser(CycleUser cycle_user) override; |
| 52 bool IsMultiProfileAllowedByPrimaryUserPolicy() const override; | 52 bool IsMultiProfileAllowedByPrimaryUserPolicy() const override; |
| 53 void AddSessionStateObserver(ash::SessionStateObserver* observer) override; | 53 void AddSessionStateObserver(ash::SessionStateObserver* observer) override; |
| 54 void RemoveSessionStateObserver(ash::SessionStateObserver* observer) override; | 54 void RemoveSessionStateObserver(ash::SessionStateObserver* observer) override; |
| 55 | 55 |
| 56 // TODO(oshima): Use state machine instead of using boolean variables. | 56 // TODO(oshima): Use state machine instead of using boolean variables. |
| 57 | 57 |
| 58 // Updates the internal state that indicates whether a session is in progress | 58 // Updates the internal state that indicates whether a session is in progress |
| 59 // and there is an active user. If |has_active_user| is |false|, | 59 // and there is an active user. If |has_active_user| is |false|, |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 // before the profile and browser UI are available. | 113 // before the profile and browser UI are available. |
| 114 SessionState session_state_; | 114 SessionState session_state_; |
| 115 | 115 |
| 116 DISALLOW_COPY_AND_ASSIGN(TestSessionStateDelegate); | 116 DISALLOW_COPY_AND_ASSIGN(TestSessionStateDelegate); |
| 117 }; | 117 }; |
| 118 | 118 |
| 119 } // namespace test | 119 } // namespace test |
| 120 } // namespace ash | 120 } // namespace ash |
| 121 | 121 |
| 122 #endif // ASH_TEST_TEST_SESSION_STATE_DELEGATE_H_ | 122 #endif // ASH_TEST_TEST_SESSION_STATE_DELEGATE_H_ |
| OLD | NEW |