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 { |
| 12 class Window; |
| 13 } |
| 14 |
11 namespace ash { | 15 namespace ash { |
12 | 16 |
13 class WmWindow; | 17 class WmWindow; |
14 | 18 |
15 class ASH_EXPORT ShellObserver { | 19 class ASH_EXPORT ShellObserver { |
16 public: | 20 public: |
17 // Called when a casting session is started or stopped. | 21 // Called when a casting session is started or stopped. |
18 virtual void OnCastingSessionStartedOrStopped(bool started) {} | 22 virtual void OnCastingSessionStartedOrStopped(bool started) {} |
19 | 23 |
20 // Invoked after a non-primary root window is created. | 24 // Invoked after a non-primary root window is created. |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 56 |
53 // Called when the maximize mode is about to end. | 57 // Called when the maximize mode is about to end. |
54 virtual void OnMaximizeModeEnding() {} | 58 virtual void OnMaximizeModeEnding() {} |
55 | 59 |
56 // Called when the maximize mode has ended. Windows may still be | 60 // Called when the maximize mode has ended. Windows may still be |
57 // animating but have been restored. | 61 // animating but have been restored. |
58 virtual void OnMaximizeModeEnded() {} | 62 virtual void OnMaximizeModeEnded() {} |
59 | 63 |
60 // Called when keyboard is activated/deactivated in |root_window|. | 64 // Called when keyboard is activated/deactivated in |root_window|. |
61 virtual void OnVirtualKeyboardStateChanged(bool activated, | 65 virtual void OnVirtualKeyboardStateChanged(bool activated, |
62 WmWindow* root_window) {} | 66 aura::Window* root_window) {} |
63 | 67 |
64 // Called at the end of Shell::Init. | 68 // Called at the end of Shell::Init. |
65 virtual void OnShellInitialized() {} | 69 virtual void OnShellInitialized() {} |
66 | 70 |
67 protected: | 71 protected: |
68 virtual ~ShellObserver() {} | 72 virtual ~ShellObserver() {} |
69 }; | 73 }; |
70 | 74 |
71 } // namespace ash | 75 } // namespace ash |
72 | 76 |
73 #endif // ASH_SHELL_OBSERVER_H_ | 77 #endif // ASH_SHELL_OBSERVER_H_ |
OLD | NEW |