| 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 OnAppListVisibilityChanged(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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 // Called at the end of Shell::Init. | 73 // Called at the end of Shell::Init. |
| 70 virtual void OnShellInitialized() {} | 74 virtual void OnShellInitialized() {} |
| 71 | 75 |
| 72 protected: | 76 protected: |
| 73 virtual ~ShellObserver() {} | 77 virtual ~ShellObserver() {} |
| 74 }; | 78 }; |
| 75 | 79 |
| 76 } // namespace ash | 80 } // namespace ash |
| 77 | 81 |
| 78 #endif // ASH_SHELL_OBSERVER_H_ | 82 #endif // ASH_SHELL_OBSERVER_H_ |
| OLD | NEW |