| 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 "ash/session_state_delegate.h" | 8 #include "ash/session_state_delegate.h" |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 virtual bool CanLockScreen() const OVERRIDE; | 28 virtual bool CanLockScreen() const OVERRIDE; |
| 29 virtual bool IsScreenLocked() const OVERRIDE; | 29 virtual bool IsScreenLocked() const OVERRIDE; |
| 30 virtual void LockScreen() OVERRIDE; | 30 virtual void LockScreen() OVERRIDE; |
| 31 virtual void UnlockScreen() OVERRIDE; | 31 virtual void UnlockScreen() OVERRIDE; |
| 32 virtual const base::string16 GetUserDisplayName( | 32 virtual const base::string16 GetUserDisplayName( |
| 33 ash::MultiProfileIndex index) const OVERRIDE; | 33 ash::MultiProfileIndex index) const OVERRIDE; |
| 34 virtual const std::string GetUserEmail( | 34 virtual const std::string GetUserEmail( |
| 35 ash::MultiProfileIndex index) const OVERRIDE; | 35 ash::MultiProfileIndex index) const OVERRIDE; |
| 36 virtual const gfx::ImageSkia& GetUserImage( | 36 virtual const gfx::ImageSkia& GetUserImage( |
| 37 ash::MultiProfileIndex index) const OVERRIDE; | 37 ash::MultiProfileIndex index) const OVERRIDE; |
| 38 virtual void GetLoggedInUsers(UserEmailList* users) OVERRIDE; | 38 virtual void GetLoggedInUsers(UserIdList* users) OVERRIDE; |
| 39 virtual void SwitchActiveUser(const std::string& email) OVERRIDE; | 39 virtual void SwitchActiveUser(const std::string& email) OVERRIDE; |
| 40 virtual void AddSessionStateObserver( |
| 41 ash::SessionStateObserver* observer) OVERRIDE; |
| 42 virtual void RemoveSessionStateObserver( |
| 43 ash::SessionStateObserver* observer) OVERRIDE; |
| 40 | 44 |
| 41 // Updates the internal state that indicates whether a session is in progress | 45 // Updates the internal state that indicates whether a session is in progress |
| 42 // and there is an active user. If |has_active_user| is |false|, | 46 // and there is an active user. If |has_active_user| is |false|, |
| 43 // |active_user_session_started_| is reset to |false| as well (see below for | 47 // |active_user_session_started_| is reset to |false| as well (see below for |
| 44 // the difference between these two flags). | 48 // the difference between these two flags). |
| 45 void SetHasActiveUser(bool has_active_user); | 49 void SetHasActiveUser(bool has_active_user); |
| 46 | 50 |
| 47 // Updates the internal state that indicates whether the session has been | 51 // Updates the internal state that indicates whether the session has been |
| 48 // fully started for the active user. If |active_user_session_started| is | 52 // fully started for the active user. If |active_user_session_started| is |
| 49 // |true|, |has_active_user_| is set to |true| as well (see below for the | 53 // |true|, |has_active_user_| is set to |true| as well (see below for the |
| (...skipping 30 matching lines...) Expand all Loading... |
| 80 // A test user image. | 84 // A test user image. |
| 81 gfx::ImageSkia null_image_; | 85 gfx::ImageSkia null_image_; |
| 82 | 86 |
| 83 DISALLOW_COPY_AND_ASSIGN(TestSessionStateDelegate); | 87 DISALLOW_COPY_AND_ASSIGN(TestSessionStateDelegate); |
| 84 }; | 88 }; |
| 85 | 89 |
| 86 } // namespace test | 90 } // namespace test |
| 87 } // namespace ash | 91 } // namespace ash |
| 88 | 92 |
| 89 #endif // ASH_TEST_TEST_SESSION_STATE_DELEGATE_H_ | 93 #endif // ASH_TEST_TEST_SESSION_STATE_DELEGATE_H_ |
| OLD | NEW |