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_COMMON_TEST_TEST_SESSION_STATE_DELEGATE_H_ | 5 #ifndef ASH_COMMON_TEST_TEST_SESSION_STATE_DELEGATE_H_ |
6 #define ASH_COMMON_TEST_TEST_SESSION_STATE_DELEGATE_H_ | 6 #define ASH_COMMON_TEST_TEST_SESSION_STATE_DELEGATE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 30 matching lines...) Expand all Loading... |
41 bool ShouldLockScreenAutomatically() const override; | 41 bool ShouldLockScreenAutomatically() 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 session_manager::SessionState GetSessionState() const override; | 45 session_manager::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(WmWindow* window) const override; | 48 bool ShouldShowAvatar(WmWindow* window) const override; |
49 gfx::ImageSkia GetAvatarImageForWindow(WmWindow* 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(CycleUserDirection direction) 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|, |
60 // |active_user_session_started_| is reset to |false| as well (see below for | 60 // |active_user_session_started_| is reset to |false| as well (see below for |
61 // the difference between these two flags). | 61 // the difference between these two flags). |
(...skipping 51 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 session_manager::SessionState session_state_; | 114 session_manager::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_COMMON_TEST_TEST_SESSION_STATE_DELEGATE_H_ | 122 #endif // ASH_COMMON_TEST_TEST_SESSION_STATE_DELEGATE_H_ |
OLD | NEW |