| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_MUS_WINDOW_OBSERVER_H_ | 5 #ifndef ASH_MUS_WINDOW_OBSERVER_H_ |
| 6 #define ASH_MUS_WINDOW_OBSERVER_H_ | 6 #define ASH_MUS_WINDOW_OBSERVER_H_ |
| 7 | 7 |
| 8 namespace ash { | 8 namespace ash { |
| 9 namespace mus { | 9 namespace mus { |
| 10 | 10 |
| 11 class RootWindowController; | 11 class RootWindowController; |
| 12 | 12 |
| 13 class WindowManagerObserver { | 13 class WindowManagerObserver { |
| 14 public: | 14 public: |
| 15 // Called when the WindowTreeClient associated with the WindowManager is | 15 // Called when the WindowTreeClient associated with the WindowManager is |
| 16 // about to be destroyed. | 16 // about to be destroyed. |
| 17 virtual void OnWindowTreeClientDestroyed() {} | 17 virtual void OnWindowTreeClientDestroyed() {} |
| 18 | 18 |
| 19 virtual void OnRootWindowControllerAdded(RootWindowController* controller) {} | 19 virtual void OnRootWindowControllerAdded(RootWindowController* controller) {} |
| 20 virtual void OnWillDestroyRootWindowController( | |
| 21 RootWindowController* controller) {} | |
| 22 | 20 |
| 23 protected: | 21 protected: |
| 24 virtual ~WindowManagerObserver() {} | 22 virtual ~WindowManagerObserver() {} |
| 25 }; | 23 }; |
| 26 | 24 |
| 27 } // namespace mus | 25 } // namespace mus |
| 28 } // namespace ash | 26 } // namespace ash |
| 29 | 27 |
| 30 #endif // ASH_MUS_WINDOW_OBSERVER_H_ | 28 #endif // ASH_MUS_WINDOW_OBSERVER_H_ |
| OLD | NEW |