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

Unified Diff: trunk/src/ash/shell.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/shelf/shelf_widget.cc ('k') | trunk/src/ash/shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/ash/shell.h
===================================================================
--- trunk/src/ash/shell.h (revision 194588)
+++ trunk/src/ash/shell.h (working copy)
@@ -82,7 +82,6 @@
class RootWindowHostFactory;
class ScreenAsh;
class SessionStateController;
-class SessionStateDelegate;
class ShellDelegate;
class ShellObserver;
class SystemTray;
@@ -218,6 +217,13 @@
// Returns app list window or NULL if it is not visible.
aura::Window* GetAppListWindow();
+ // 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).
+ bool CanLockScreen();
+
+ // Returns true if the screen is locked.
+ bool IsScreenLocked() const;
+
// Returns true if a system-modal dialog window is currently open.
bool IsSystemModalWindowOpen() const;
@@ -328,10 +334,6 @@
return caps_lock_delegate_.get();
}
- SessionStateDelegate* session_state_delegate() {
- return session_state_delegate_.get();
- }
-
HighContrastController* high_contrast_controller() {
return high_contrast_controller_.get();
}
@@ -501,7 +503,6 @@
scoped_ptr<SystemTrayNotifier> system_tray_notifier_;
scoped_ptr<UserWallpaperDelegate> user_wallpaper_delegate_;
scoped_ptr<CapsLockDelegate> caps_lock_delegate_;
- scoped_ptr<SessionStateDelegate> session_state_delegate_;
scoped_ptr<LauncherDelegate> launcher_delegate_;
scoped_ptr<LauncherModel> launcher_model_;
« no previous file with comments | « trunk/src/ash/shelf/shelf_widget.cc ('k') | trunk/src/ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698