| 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 ASH_EXPORT ShellObserver { | 17 class ASH_EXPORT ShellObserver { |
| 18 public: | 18 public: |
| 19 // Called when the AppList is shown or dismissed. |
| 20 virtual void OnAppListShownOrDismissed(bool shown, |
| 21 aura::Window* root_window) {} |
| 22 |
| 19 // Called when a casting session is started or stopped. | 23 // Called when a casting session is started or stopped. |
| 20 virtual void OnCastingSessionStartedOrStopped(bool started) {} | 24 virtual void OnCastingSessionStartedOrStopped(bool started) {} |
| 21 | 25 |
| 22 // Invoked after a non-primary root window is created. | 26 // Invoked after a non-primary root window is created. |
| 23 virtual void OnRootWindowAdded(aura::Window* root_window) {} | 27 virtual void OnRootWindowAdded(aura::Window* root_window) {} |
| 24 | 28 |
| 25 // Invoked after the shelf has been created for |root_window|. | 29 // Invoked after the shelf has been created for |root_window|. |
| 26 virtual void OnShelfCreatedForRootWindow(aura::Window* root_window) {} | 30 virtual void OnShelfCreatedForRootWindow(aura::Window* root_window) {} |
| 27 | 31 |
| 28 // Invoked when the shelf alignment in |root_window| is changed. | 32 // Invoked when the shelf alignment in |root_window| is changed. |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 // Called at the end of Shell::Init. | 70 // Called at the end of Shell::Init. |
| 67 virtual void OnShellInitialized() {} | 71 virtual void OnShellInitialized() {} |
| 68 | 72 |
| 69 protected: | 73 protected: |
| 70 virtual ~ShellObserver() {} | 74 virtual ~ShellObserver() {} |
| 71 }; | 75 }; |
| 72 | 76 |
| 73 } // namespace ash | 77 } // namespace ash |
| 74 | 78 |
| 75 #endif // ASH_SHELL_OBSERVER_H_ | 79 #endif // ASH_SHELL_OBSERVER_H_ |
| OLD | NEW |