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(); |