| 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 CHROME_BROWSER_UI_ASH_SESSION_STATE_DELEGATE_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_SESSION_STATE_DELEGATE_CHROMEOS_H_ |
| 6 #define CHROME_BROWSER_UI_ASH_SESSION_STATE_DELEGATE_CHROMEOS_H_ | 6 #define CHROME_BROWSER_UI_ASH_SESSION_STATE_DELEGATE_CHROMEOS_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 12 matching lines...) Expand all Loading... |
| 23 virtual ~SessionStateDelegateChromeos(); | 23 virtual ~SessionStateDelegateChromeos(); |
| 24 | 24 |
| 25 // ash::SessionStateDelegate: | 25 // ash::SessionStateDelegate: |
| 26 virtual int GetMaximumNumberOfLoggedInUsers() const OVERRIDE; | 26 virtual int GetMaximumNumberOfLoggedInUsers() const OVERRIDE; |
| 27 virtual int NumberOfLoggedInUsers() const OVERRIDE; | 27 virtual int NumberOfLoggedInUsers() const OVERRIDE; |
| 28 virtual bool IsActiveUserSessionStarted() const OVERRIDE; | 28 virtual bool IsActiveUserSessionStarted() const OVERRIDE; |
| 29 virtual bool CanLockScreen() const OVERRIDE; | 29 virtual bool CanLockScreen() const OVERRIDE; |
| 30 virtual bool IsScreenLocked() const OVERRIDE; | 30 virtual bool IsScreenLocked() const OVERRIDE; |
| 31 virtual void LockScreen() OVERRIDE; | 31 virtual void LockScreen() OVERRIDE; |
| 32 virtual void UnlockScreen() OVERRIDE; | 32 virtual void UnlockScreen() OVERRIDE; |
| 33 virtual bool IsUserSessionBlocked() const OVERRIDE; |
| 33 virtual const base::string16 GetUserDisplayName( | 34 virtual const base::string16 GetUserDisplayName( |
| 34 ash::MultiProfileIndex index) const OVERRIDE; | 35 ash::MultiProfileIndex index) const OVERRIDE; |
| 35 virtual const std::string GetUserEmail( | 36 virtual const std::string GetUserEmail( |
| 36 ash::MultiProfileIndex index) const OVERRIDE; | 37 ash::MultiProfileIndex index) const OVERRIDE; |
| 37 virtual const gfx::ImageSkia& GetUserImage( | 38 virtual const gfx::ImageSkia& GetUserImage( |
| 38 ash::MultiProfileIndex index) const OVERRIDE; | 39 ash::MultiProfileIndex index) const OVERRIDE; |
| 39 virtual void GetLoggedInUsers(ash::UserIdList* users) OVERRIDE; | 40 virtual void GetLoggedInUsers(ash::UserIdList* users) OVERRIDE; |
| 40 virtual void SwitchActiveUser(const std::string& user_id) OVERRIDE; | 41 virtual void SwitchActiveUser(const std::string& user_id) OVERRIDE; |
| 41 virtual void AddSessionStateObserver( | 42 virtual void AddSessionStateObserver( |
| 42 ash::SessionStateObserver* observer) OVERRIDE; | 43 ash::SessionStateObserver* observer) OVERRIDE; |
| 43 virtual void RemoveSessionStateObserver( | 44 virtual void RemoveSessionStateObserver( |
| 44 ash::SessionStateObserver* observer) OVERRIDE; | 45 ash::SessionStateObserver* observer) OVERRIDE; |
| 45 | 46 |
| 46 // UserManager::UserSessionStateObserver: | 47 // UserManager::UserSessionStateObserver: |
| 47 virtual void ActiveUserChanged(const chromeos::User* active_user) OVERRIDE; | 48 virtual void ActiveUserChanged(const chromeos::User* active_user) OVERRIDE; |
| 48 | 49 |
| 49 private: | 50 private: |
| 50 // List of observers is only used on Chrome OS for now. | 51 // List of observers is only used on Chrome OS for now. |
| 51 ObserverList<ash::SessionStateObserver> session_state_observer_list_; | 52 ObserverList<ash::SessionStateObserver> session_state_observer_list_; |
| 52 | 53 |
| 53 DISALLOW_COPY_AND_ASSIGN(SessionStateDelegateChromeos); | 54 DISALLOW_COPY_AND_ASSIGN(SessionStateDelegateChromeos); |
| 54 }; | 55 }; |
| 55 | 56 |
| 56 #endif // CHROME_BROWSER_UI_ASH_SESSION_STATE_DELEGATE_CHROMEOS_H_ | 57 #endif // CHROME_BROWSER_UI_ASH_SESSION_STATE_DELEGATE_CHROMEOS_H_ |
| OLD | NEW |