blob: 060e30afc4b4a819a9c9e5cfbae19f0b4f17581a [file] [log] [blame]
[email protected]1a2145b2012-03-13 21:09:171// Copyright (c) 2012 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
[email protected]c2d58b42012-05-30 08:11:295#ifndef ASH_SHELL_OBSERVER_H_
6#define ASH_SHELL_OBSERVER_H_
[email protected]1a2145b2012-03-13 21:09:177
8#include "ash/ash_export.h"
[email protected]82d3954ae2012-04-20 09:02:229#include "ash/system/user/login_status.h"
[email protected]1a2145b2012-03-13 21:09:1710
[email protected]f89f7512012-12-17 19:21:1811namespace aura {
12class RootWindow;
13}
14
[email protected]1a2145b2012-03-13 21:09:1715namespace ash {
16
17class ASH_EXPORT ShellObserver {
18 public:
19 // Invoked after the screen's work area insets changes.
[email protected]2e236a52012-06-27 22:21:4720 virtual void OnDisplayWorkAreaInsetsChanged() {}
[email protected]1a2145b2012-03-13 21:09:1721
[email protected]82d3954ae2012-04-20 09:02:2222 // Invoked when the user logs in.
23 virtual void OnLoginStateChanged(user::LoginStatus status) {}
24
25 // Invoked when the application is exiting.
26 virtual void OnAppTerminating() {}
27
28 // Invoked when the screen is locked (after the lock window is visible) or
29 // unlocked.
30 virtual void OnLockStateChanged(bool locked) {}
31
[email protected]f89f7512012-12-17 19:21:1832 // Invoked when the shelf alignment in |root_window| is changed.
33 virtual void OnShelfAlignmentChanged(aura::RootWindow* root_window) {}
[email protected]c2d58b42012-05-30 08:11:2934
[email protected]d141b922013-07-09 08:13:1735 // Invoked when the projection touch HUD is toggled.
36 virtual void OnTouchHudProjectionToggled(bool enabled) {}
37
[email protected]1a2145b2012-03-13 21:09:1738 protected:
39 virtual ~ShellObserver() {}
40};
41
42} // namespace ash
43
[email protected]c2d58b42012-05-30 08:11:2944#endif // ASH_SHELL_OBSERVER_H_