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

Unified Diff: ash/shell.h

Issue 10008074: Cancel partial screenshot UI when lock happens. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use enum Created 8 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 | « no previous file | ash/shell.cc » ('j') | ash/wm/power_button_controller.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell.h
diff --git a/ash/shell.h b/ash/shell.h
index 690ae79bb696df7fe3394cbd532ad62082c3632c..e160572b8a506d389d23a6770366abd94eaac729 100644
--- a/ash/shell.h
+++ b/ash/shell.h
@@ -97,6 +97,12 @@ class ASH_EXPORT Shell {
BACKWARD
};
+ enum LoginStatus {
sky 2012/04/18 16:03:31 Move this into it's own file so that folks don't n
Jun Mukai 2012/04/19 06:19:25 used system/user/login_status instead, as sadrul s
+ NOT_LOGGED_IN,
+ LOGGED_IN,
Daniel Erat 2012/04/18 16:50:42 It'd probably be clearer to name this LOGGED_IN_AS
+ LOGGED_IN_AS_GUEST,
+ };
sadrul 2012/04/18 16:53:20 Can you please use ash::user::LoginStatus instead?
Jun Mukai 2012/04/19 06:19:25 Done.
+
// Accesses private data from a Shell for testing.
class ASH_EXPORT TestApi {
public:
@@ -173,6 +179,16 @@ class ASH_EXPORT Shell {
void SetMonitorWorkAreaInsets(aura::Window* window,
const gfx::Insets& insets);
+ // Called when the user logs in.
+ void OnLoginStateChanged(LoginStatus status);
+
+ // Called when the application is exiting.
+ void OnAppTerminating();
+
+ // Called when the screen is locked (after the lock window is visible) or
+ // unlocked.
+ void OnLockStateChanged(bool locked);
+
// Initializes |launcher_|. Does nothing if it's already initialized.
void CreateLauncher();
« no previous file with comments | « no previous file | ash/shell.cc » ('j') | ash/wm/power_button_controller.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698