summaryrefslogtreecommitdiff
path: root/chromium/ash/shell_observer.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ash/shell_observer.h')
-rw-r--r--chromium/ash/shell_observer.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/chromium/ash/shell_observer.h b/chromium/ash/shell_observer.h
new file mode 100644
index 00000000000..060e30afc4b
--- /dev/null
+++ b/chromium/ash/shell_observer.h
@@ -0,0 +1,44 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ASH_SHELL_OBSERVER_H_
+#define ASH_SHELL_OBSERVER_H_
+
+#include "ash/ash_export.h"
+#include "ash/system/user/login_status.h"
+
+namespace aura {
+class RootWindow;
+}
+
+namespace ash {
+
+class ASH_EXPORT ShellObserver {
+ public:
+ // Invoked after the screen's work area insets changes.
+ virtual void OnDisplayWorkAreaInsetsChanged() {}
+
+ // Invoked when the user logs in.
+ virtual void OnLoginStateChanged(user::LoginStatus status) {}
+
+ // Invoked when the application is exiting.
+ virtual void OnAppTerminating() {}
+
+ // Invoked when the screen is locked (after the lock window is visible) or
+ // unlocked.
+ virtual void OnLockStateChanged(bool locked) {}
+
+ // Invoked when the shelf alignment in |root_window| is changed.
+ virtual void OnShelfAlignmentChanged(aura::RootWindow* root_window) {}
+
+ // Invoked when the projection touch HUD is toggled.
+ virtual void OnTouchHudProjectionToggled(bool enabled) {}
+
+ protected:
+ virtual ~ShellObserver() {}
+};
+
+} // namespace ash
+
+#endif // ASH_SHELL_OBSERVER_H_