OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef ASH_SHELL_OBSERVER_H_ | 5 #ifndef ASH_SHELL_OBSERVER_H_ |
6 #define ASH_SHELL_OBSERVER_H_ | 6 #define ASH_SHELL_OBSERVER_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/login_status.h" | 9 #include "ash/login_status.h" |
10 | 10 |
11 namespace aura { | 11 namespace aura { |
12 class Window; | 12 class Window; |
13 } | 13 } |
14 | 14 |
15 namespace ash { | 15 namespace ash { |
16 | 16 |
17 class WmWindow; | |
18 | |
19 class ASH_EXPORT ShellObserver { | 17 class ASH_EXPORT ShellObserver { |
20 public: | 18 public: |
21 // Called when a casting session is started or stopped. | 19 // Called when a casting session is started or stopped. |
22 virtual void OnCastingSessionStartedOrStopped(bool started) {} | 20 virtual void OnCastingSessionStartedOrStopped(bool started) {} |
23 | 21 |
24 // Invoked after a non-primary root window is created. | 22 // Invoked after a non-primary root window is created. |
25 virtual void OnRootWindowAdded(aura::Window* root_window) {} | 23 virtual void OnRootWindowAdded(aura::Window* root_window) {} |
26 | 24 |
27 // Invoked after the shelf has been created for |root_window|. | 25 // Invoked after the shelf has been created for |root_window|. |
28 virtual void OnShelfCreatedForRootWindow(WmWindow* root_window) {} | 26 virtual void OnShelfCreatedForRootWindow(aura::Window* root_window) {} |
29 | 27 |
30 // Invoked when the shelf alignment in |root_window| is changed. | 28 // Invoked when the shelf alignment in |root_window| is changed. |
31 virtual void OnShelfAlignmentChanged(WmWindow* root_window) {} | 29 virtual void OnShelfAlignmentChanged(aura::Window* root_window) {} |
32 | 30 |
33 // Invoked when the shelf auto-hide behavior in |root_window| is changed. | 31 // Invoked when the shelf auto-hide behavior in |root_window| is changed. |
34 virtual void OnShelfAutoHideBehaviorChanged(WmWindow* root_window) {} | 32 virtual void OnShelfAutoHideBehaviorChanged(aura::Window* root_window) {} |
35 | 33 |
36 // Invoked when the projection touch HUD is toggled. | 34 // Invoked when the projection touch HUD is toggled. |
37 virtual void OnTouchHudProjectionToggled(bool enabled) {} | 35 virtual void OnTouchHudProjectionToggled(bool enabled) {} |
38 | 36 |
39 // Invoked when entering or exiting fullscreen mode in |root_window|. | 37 // Invoked when entering or exiting fullscreen mode in |root_window|. |
40 virtual void OnFullscreenStateChanged(bool is_fullscreen, | 38 virtual void OnFullscreenStateChanged(bool is_fullscreen, |
41 aura::Window* root_window) {} | 39 aura::Window* root_window) {} |
42 | 40 |
43 // Invoked when |pinned_window| enter or exit pinned mode. | 41 // Invoked when |pinned_window| enter or exit pinned mode. |
44 virtual void OnPinnedStateChanged(aura::Window* pinned_window) {} | 42 virtual void OnPinnedStateChanged(aura::Window* pinned_window) {} |
(...skipping 23 matching lines...) Expand all Loading... |
68 // Called at the end of Shell::Init. | 66 // Called at the end of Shell::Init. |
69 virtual void OnShellInitialized() {} | 67 virtual void OnShellInitialized() {} |
70 | 68 |
71 protected: | 69 protected: |
72 virtual ~ShellObserver() {} | 70 virtual ~ShellObserver() {} |
73 }; | 71 }; |
74 | 72 |
75 } // namespace ash | 73 } // namespace ash |
76 | 74 |
77 #endif // ASH_SHELL_OBSERVER_H_ | 75 #endif // ASH_SHELL_OBSERVER_H_ |
OLD | NEW |