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 11 matching lines...) Expand all Loading... |
22 const std::string& get_activated_user() { return activated_user_; } | 22 const std::string& get_activated_user() { return activated_user_; } |
23 | 23 |
24 // SessionStateDelegate: | 24 // SessionStateDelegate: |
25 virtual int GetMaximumNumberOfLoggedInUsers() const OVERRIDE; | 25 virtual int GetMaximumNumberOfLoggedInUsers() const OVERRIDE; |
26 virtual int NumberOfLoggedInUsers() const OVERRIDE; | 26 virtual int NumberOfLoggedInUsers() const OVERRIDE; |
27 virtual bool IsActiveUserSessionStarted() const OVERRIDE; | 27 virtual bool IsActiveUserSessionStarted() const OVERRIDE; |
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 bool IsUserSessionBlocked() const OVERRIDE; |
32 virtual const base::string16 GetUserDisplayName( | 33 virtual const base::string16 GetUserDisplayName( |
33 ash::MultiProfileIndex index) const OVERRIDE; | 34 ash::MultiProfileIndex index) const OVERRIDE; |
34 virtual const std::string GetUserEmail( | 35 virtual const std::string GetUserEmail( |
35 ash::MultiProfileIndex index) const OVERRIDE; | 36 ash::MultiProfileIndex index) const OVERRIDE; |
36 virtual const gfx::ImageSkia& GetUserImage( | 37 virtual const gfx::ImageSkia& GetUserImage( |
37 ash::MultiProfileIndex index) const OVERRIDE; | 38 ash::MultiProfileIndex index) const OVERRIDE; |
38 virtual void GetLoggedInUsers(UserIdList* users) OVERRIDE; | 39 virtual void GetLoggedInUsers(UserIdList* users) OVERRIDE; |
39 virtual void SwitchActiveUser(const std::string& email) OVERRIDE; | 40 virtual void SwitchActiveUser(const std::string& email) OVERRIDE; |
40 virtual void AddSessionStateObserver( | 41 virtual void AddSessionStateObserver( |
41 ash::SessionStateObserver* observer) OVERRIDE; | 42 ash::SessionStateObserver* observer) OVERRIDE; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 // A test user image. | 87 // A test user image. |
87 gfx::ImageSkia null_image_; | 88 gfx::ImageSkia null_image_; |
88 | 89 |
89 DISALLOW_COPY_AND_ASSIGN(TestSessionStateDelegate); | 90 DISALLOW_COPY_AND_ASSIGN(TestSessionStateDelegate); |
90 }; | 91 }; |
91 | 92 |
92 } // namespace test | 93 } // namespace test |
93 } // namespace ash | 94 } // namespace ash |
94 | 95 |
95 #endif // ASH_TEST_TEST_SESSION_STATE_DELEGATE_H_ | 96 #endif // ASH_TEST_TEST_SESSION_STATE_DELEGATE_H_ |
OLD | NEW |