Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Side by Side Diff: chrome/browser/ui/ash/session_state_delegate_chromeos.h

Issue 2446453002: Refactor ShouldLockScreenBeforeSuspending to ShouldLockScreenAutomatically (Closed)
Patch Set: comment Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/test/ash_test_base.cc ('k') | chrome/browser/ui/ash/session_state_delegate_chromeos.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/common/session/session_state_delegate.h" 8 #include "ash/common/session/session_state_delegate.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 15 matching lines...) Expand all
26 SessionStateDelegateChromeos(); 26 SessionStateDelegateChromeos();
27 ~SessionStateDelegateChromeos() override; 27 ~SessionStateDelegateChromeos() override;
28 28
29 // ash::SessionStateDelegate: 29 // ash::SessionStateDelegate:
30 int GetMaximumNumberOfLoggedInUsers() const override; 30 int GetMaximumNumberOfLoggedInUsers() const override;
31 int NumberOfLoggedInUsers() const override; 31 int NumberOfLoggedInUsers() const override;
32 bool CanAddUserToMultiProfile(AddUserError* error) const override; 32 bool CanAddUserToMultiProfile(AddUserError* error) const override;
33 bool IsActiveUserSessionStarted() const override; 33 bool IsActiveUserSessionStarted() const override;
34 bool CanLockScreen() const override; 34 bool CanLockScreen() const override;
35 bool IsScreenLocked() const override; 35 bool IsScreenLocked() const override;
36 bool ShouldLockScreenBeforeSuspending() const override; 36 bool ShouldLockScreenAutomatically() const override;
37 void LockScreen() override; 37 void LockScreen() override;
38 void UnlockScreen() override; 38 void UnlockScreen() override;
39 bool IsUserSessionBlocked() const override; 39 bool IsUserSessionBlocked() const override;
40 session_manager::SessionState GetSessionState() const override; 40 session_manager::SessionState GetSessionState() const override;
41 const user_manager::UserInfo* GetUserInfo( 41 const user_manager::UserInfo* GetUserInfo(
42 ash::UserIndex index) const override; 42 ash::UserIndex index) const override;
43 bool ShouldShowAvatar(ash::WmWindow* window) const override; 43 bool ShouldShowAvatar(ash::WmWindow* window) const override;
44 gfx::ImageSkia GetAvatarImageForWindow(ash::WmWindow* window) const override; 44 gfx::ImageSkia GetAvatarImageForWindow(ash::WmWindow* window) const override;
45 void SwitchActiveUser(const AccountId& account_id) override; 45 void SwitchActiveUser(const AccountId& account_id) override;
46 void CycleActiveUser(CycleUser cycle_user) override; 46 void CycleActiveUser(CycleUser cycle_user) override;
(...skipping 28 matching lines...) Expand all
75 // List of observers is only used on Chrome OS for now. 75 // List of observers is only used on Chrome OS for now.
76 base::ObserverList<ash::SessionStateObserver> session_state_observer_list_; 76 base::ObserverList<ash::SessionStateObserver> session_state_observer_list_;
77 77
78 // Session state (e.g. login screen vs. user session). 78 // Session state (e.g. login screen vs. user session).
79 session_manager::SessionState session_state_; 79 session_manager::SessionState session_state_;
80 80
81 DISALLOW_COPY_AND_ASSIGN(SessionStateDelegateChromeos); 81 DISALLOW_COPY_AND_ASSIGN(SessionStateDelegateChromeos);
82 }; 82 };
83 83
84 #endif // CHROME_BROWSER_UI_ASH_SESSION_STATE_DELEGATE_CHROMEOS_H_ 84 #endif // CHROME_BROWSER_UI_ASH_SESSION_STATE_DELEGATE_CHROMEOS_H_
OLDNEW
« no previous file with comments | « ash/test/ash_test_base.cc ('k') | chrome/browser/ui/ash/session_state_delegate_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698