Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / ui / ash / session_state_delegate_chromeos.h
blob4bd3a56f0a4b1b6b567533f82bd31282ed8c8ec4
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.
5 #ifndef CHROME_BROWSER_UI_ASH_SESSION_STATE_DELEGATE_CHROMEOS_H_
6 #define CHROME_BROWSER_UI_ASH_SESSION_STATE_DELEGATE_CHROMEOS_H_
8 #include "ash/session_state_delegate.h"
9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h"
11 #include "base/observer_list.h"
12 #include "chrome/browser/chromeos/login/user_manager.h"
14 namespace ash {
15 class SessionStateObserver;
16 } // namespace ash
18 class SessionStateDelegateChromeos
19 : public ash::SessionStateDelegate,
20 public chromeos::UserManager::UserSessionStateObserver {
21 public:
22 SessionStateDelegateChromeos();
23 virtual ~SessionStateDelegateChromeos();
25 // ash::SessionStateDelegate:
26 virtual int GetMaximumNumberOfLoggedInUsers() const OVERRIDE;
27 virtual int NumberOfLoggedInUsers() const OVERRIDE;
28 virtual bool IsActiveUserSessionStarted() const OVERRIDE;
29 virtual bool CanLockScreen() const OVERRIDE;
30 virtual bool IsScreenLocked() const OVERRIDE;
31 virtual bool ShouldLockScreenBeforeSuspending() const OVERRIDE;
32 virtual void LockScreen() OVERRIDE;
33 virtual void UnlockScreen() OVERRIDE;
34 virtual bool IsUserSessionBlocked() const OVERRIDE;
35 virtual const base::string16 GetUserDisplayName(
36 ash::MultiProfileIndex index) const OVERRIDE;
37 virtual const std::string GetUserEmail(
38 ash::MultiProfileIndex index) const OVERRIDE;
39 virtual const std::string GetUserID(
40 ash::MultiProfileIndex index) const OVERRIDE;
41 virtual const gfx::ImageSkia& GetUserImage(
42 ash::MultiProfileIndex index) const OVERRIDE;
43 virtual void GetLoggedInUsers(ash::UserIdList* users) OVERRIDE;
44 virtual void SwitchActiveUser(const std::string& user_id) OVERRIDE;
45 virtual void CycleActiveUser(CycleUser cycle_user) OVERRIDE;
46 virtual void AddSessionStateObserver(
47 ash::SessionStateObserver* observer) OVERRIDE;
48 virtual void RemoveSessionStateObserver(
49 ash::SessionStateObserver* observer) OVERRIDE;
50 virtual bool TransferWindowToDesktopOfUser(
51 aura::Window* window,
52 ash::MultiProfileIndex index) OVERRIDE;
53 // UserManager::UserSessionStateObserver:
54 virtual void ActiveUserChanged(const chromeos::User* active_user) OVERRIDE;
55 virtual void UserAddedToSession(const chromeos::User* added_user) OVERRIDE;
57 private:
58 // List of observers is only used on Chrome OS for now.
59 ObserverList<ash::SessionStateObserver> session_state_observer_list_;
61 DISALLOW_COPY_AND_ASSIGN(SessionStateDelegateChromeos);
64 #endif // CHROME_BROWSER_UI_ASH_SESSION_STATE_DELEGATE_CHROMEOS_H_