Add Chrome Remote Desktop to approved extensions list of metrics-private API.
[chromium-blink-merge.git] / ash / shell_observer.h
blob3ea105b33f8414ec801462d65b43c272124517d8
1 // 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.
5 #ifndef ASH_SHELL_OBSERVER_H_
6 #define ASH_SHELL_OBSERVER_H_
8 #include "ash/ash_export.h"
9 #include "ash/system/user/login_status.h"
11 namespace aura {
12 class Window;
15 namespace ash {
17 class ASH_EXPORT ShellObserver {
18 public:
19 // Invoked after the screen's work area insets changes.
20 virtual void OnDisplayWorkAreaInsetsChanged() {}
22 // Invoked when the user logs in.
23 virtual void OnLoginStateChanged(user::LoginStatus status) {}
25 // Invoked when the application is exiting.
26 virtual void OnAppTerminating() {}
28 // Invoked when the screen is locked (after the lock window is visible) or
29 // unlocked.
30 virtual void OnLockStateChanged(bool locked) {}
32 // Called when a casting session is started or stopped.
33 virtual void OnCastingSessionStartedOrStopped(bool started) {}
35 // Invoked after a non-primary root window is created.
36 virtual void OnRootWindowAdded(aura::Window* root_window) {}
38 // Invoked after the shelf has been created for |root_window|.
39 virtual void OnShelfCreatedForRootWindow(aura::Window* root_window) {}
41 // Invoked when the shelf alignment in |root_window| is changed.
42 virtual void OnShelfAlignmentChanged(aura::Window* root_window) {}
44 // Invoked when the projection touch HUD is toggled.
45 virtual void OnTouchHudProjectionToggled(bool enabled) {}
47 // Invoked when entering or exiting fullscreen mode in |root_window|.
48 virtual void OnFullscreenStateChanged(bool is_fullscreen,
49 aura::Window* root_window) {}
51 // Called when the overview mode is about to be started (before the windows
52 // get re-arranged).
53 virtual void OnOverviewModeStarting() {}
55 // Called after overview mode has ended.
56 virtual void OnOverviewModeEnded() {}
58 // Called when the always maximize mode has started. Windows might still
59 // animate though.
60 virtual void OnMaximizeModeStarted() {}
62 // Called when the always maximize mode has ended. Windows may still be
63 // animating but have been restored.
64 virtual void OnMaximizeModeEnded() {}
66 protected:
67 virtual ~ShellObserver() {}
70 } // namespace ash
72 #endif // ASH_SHELL_OBSERVER_H_