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

Unified Diff: trunk/src/ash/shell_delegate.h

Issue 14200034: Revert 194578 "Add ash SessionStateDelegate" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 8 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « trunk/src/ash/shell/window_type_launcher.cc ('k') | trunk/src/ash/shell_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/ash/shell_delegate.h
===================================================================
--- trunk/src/ash/shell_delegate.h (revision 194588)
+++ trunk/src/ash/shell_delegate.h (working copy)
@@ -45,7 +45,6 @@
class LauncherModel;
struct LauncherItem;
class RootWindowHostFactory;
-class SessionStateDelegate;
class SystemTrayDelegate;
class UserWallpaperDelegate;
@@ -99,6 +98,15 @@
// The Shell owns the delegate.
virtual ~ShellDelegate() {}
+ // Returns true if user has logged in.
+ virtual bool IsUserLoggedIn() const = 0;
+
+ // Returns true if we're logged in and browser has been started
+ virtual bool IsSessionStarted() const = 0;
+
+ // Returns true if we're logged in as guest.
+ virtual bool IsGuestSession() const = 0;
+
// Returns true if this is the first time that the shell has been run after
// the system has booted. false is returned after the shell has been
// restarted, typically due to logging in as a guest or logging out.
@@ -110,6 +118,19 @@
// Returns true if we're running in forced app mode.
virtual bool IsRunningInForcedAppMode() const = 0;
+ // Returns true if a user is logged in whose session can be locked (i.e. the
+ // user has a password with which to unlock the session).
+ virtual bool CanLockScreen() const = 0;
+
+ // Invoked when a user locks the screen.
+ virtual void LockScreen() = 0;
+
+ // Unlock the screen. Currently used only for tests.
+ virtual void UnlockScreen() = 0;
+
+ // Returns true if the screen is currently locked.
+ virtual bool IsScreenLocked() const = 0;
+
// Called before processing |Shell::Init()| so that the delegate
// can perform tasks necessary before the shell is initialized.
virtual void PreInit() = 0;
@@ -205,9 +226,6 @@
// Creates a caps lock delegate. Shell takes ownership of the delegate.
virtual CapsLockDelegate* CreateCapsLockDelegate() = 0;
- // Creates a session state delegate. Shell takes ownership of the delegate.
- virtual SessionStateDelegate* CreateSessionStateDelegate() = 0;
-
// Creates a user action client. Shell takes ownership of the object.
virtual aura::client::UserActionClient* CreateUserActionClient() = 0;
« no previous file with comments | « trunk/src/ash/shell/window_type_launcher.cc ('k') | trunk/src/ash/shell_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698