| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_ASH_SESSION_STATE_DELEGATE_VIEWS_H_ | |
| 6 #define CHROME_BROWSER_UI_ASH_SESSION_STATE_DELEGATE_VIEWS_H_ | |
| 7 | |
| 8 #include "ash/session/session_state_delegate.h" | |
| 9 #include "base/compiler_specific.h" | |
| 10 #include "base/macros.h" | |
| 11 #include "base/observer_list.h" | |
| 12 #include "ui/gfx/image/image_skia.h" | |
| 13 | |
| 14 namespace ash { | |
| 15 class SessionStateObserver; | |
| 16 } // namespace ash | |
| 17 | |
| 18 class SessionStateDelegate : public ash::SessionStateDelegate { | |
| 19 public: | |
| 20 SessionStateDelegate(); | |
| 21 ~SessionStateDelegate() override; | |
| 22 | |
| 23 // ash::SessionStateDelegate: | |
| 24 int GetMaximumNumberOfLoggedInUsers() const override; | |
| 25 int NumberOfLoggedInUsers() const override; | |
| 26 bool IsActiveUserSessionStarted() const override; | |
| 27 bool CanLockScreen() const override; | |
| 28 bool IsScreenLocked() const override; | |
| 29 bool ShouldLockScreenBeforeSuspending() const override; | |
| 30 void LockScreen() override; | |
| 31 void UnlockScreen() override; | |
| 32 bool IsUserSessionBlocked() const override; | |
| 33 SessionState GetSessionState() const override; | |
| 34 const user_manager::UserInfo* GetUserInfo( | |
| 35 ash::UserIndex index) const override; | |
| 36 bool ShouldShowAvatar(aura::Window* window) const override; | |
| 37 gfx::ImageSkia GetAvatarImageForWindow(aura::Window* window) const override; | |
| 38 void SwitchActiveUser(const AccountId& account_id) override; | |
| 39 void CycleActiveUser(CycleUser cycle_user) override; | |
| 40 bool IsMultiProfileAllowedByPrimaryUserPolicy() const override; | |
| 41 void AddSessionStateObserver(ash::SessionStateObserver* observer) override; | |
| 42 void RemoveSessionStateObserver(ash::SessionStateObserver* observer) override; | |
| 43 | |
| 44 private: | |
| 45 DISALLOW_COPY_AND_ASSIGN(SessionStateDelegate); | |
| 46 }; | |
| 47 | |
| 48 #endif // CHROME_BROWSER_UI_ASH_SESSION_STATE_DELEGATE_VIEWS_H_ | |
| OLD | NEW |