| 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/session_state_delegate.h" | 8 #include "ash/session/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 13 matching lines...) Expand all Loading... |
| 24 public chromeos::UserAddingScreen::Observer { | 24 public chromeos::UserAddingScreen::Observer { |
| 25 public: | 25 public: |
| 26 SessionStateDelegateChromeos(); | 26 SessionStateDelegateChromeos(); |
| 27 ~SessionStateDelegateChromeos() override; | 27 ~SessionStateDelegateChromeos() override; |
| 28 | 28 |
| 29 // ash::SessionStateDelegate: | 29 // ash::SessionStateDelegate: |
| 30 content::BrowserContext* GetBrowserContextByIndex( | 30 content::BrowserContext* GetBrowserContextByIndex( |
| 31 ash::MultiProfileIndex index) override; | 31 ash::MultiProfileIndex index) override; |
| 32 content::BrowserContext* GetBrowserContextForWindow( | 32 content::BrowserContext* GetBrowserContextForWindow( |
| 33 aura::Window* window) override; | 33 aura::Window* window) override; |
| 34 content::BrowserContext* GetUserPresentingBrowserContextForWindow( |
| 35 aura::Window* window) override; |
| 34 int GetMaximumNumberOfLoggedInUsers() const override; | 36 int GetMaximumNumberOfLoggedInUsers() const override; |
| 35 int NumberOfLoggedInUsers() const override; | 37 int NumberOfLoggedInUsers() const override; |
| 36 bool CanAddUserToMultiProfile(AddUserError* error) const override; | 38 bool CanAddUserToMultiProfile(AddUserError* error) const override; |
| 37 bool IsActiveUserSessionStarted() const override; | 39 bool IsActiveUserSessionStarted() const override; |
| 38 bool CanLockScreen() const override; | 40 bool CanLockScreen() const override; |
| 39 bool IsScreenLocked() const override; | 41 bool IsScreenLocked() const override; |
| 40 bool ShouldLockScreenBeforeSuspending() const override; | 42 bool ShouldLockScreenBeforeSuspending() const override; |
| 41 void LockScreen() override; | 43 void LockScreen() override; |
| 42 void UnlockScreen() override; | 44 void UnlockScreen() override; |
| 43 bool IsUserSessionBlocked() const override; | 45 bool IsUserSessionBlocked() const override; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 // List of observers is only used on Chrome OS for now. | 82 // List of observers is only used on Chrome OS for now. |
| 81 ObserverList<ash::SessionStateObserver> session_state_observer_list_; | 83 ObserverList<ash::SessionStateObserver> session_state_observer_list_; |
| 82 | 84 |
| 83 // Session state (e.g. login screen vs. user session). | 85 // Session state (e.g. login screen vs. user session). |
| 84 SessionState session_state_; | 86 SessionState session_state_; |
| 85 | 87 |
| 86 DISALLOW_COPY_AND_ASSIGN(SessionStateDelegateChromeos); | 88 DISALLOW_COPY_AND_ASSIGN(SessionStateDelegateChromeos); |
| 87 }; | 89 }; |
| 88 | 90 |
| 89 #endif // CHROME_BROWSER_UI_ASH_SESSION_STATE_DELEGATE_CHROMEOS_H_ | 91 #endif // CHROME_BROWSER_UI_ASH_SESSION_STATE_DELEGATE_CHROMEOS_H_ |
| OLD | NEW |