OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 UI_AURA_MUS_WINDOW_TREE_CLIENT_OBSERVER_H_ | 5 #ifndef UI_AURA_MUS_WINDOW_TREE_CLIENT_OBSERVER_H_ |
6 #define UI_AURA_MUS_WINDOW_TREE_CLIENT_OBSERVER_H_ | 6 #define UI_AURA_MUS_WINDOW_TREE_CLIENT_OBSERVER_H_ |
7 | 7 |
8 #include "ui/aura/aura_export.h" | 8 #include "ui/aura/aura_export.h" |
9 | 9 |
10 namespace aura { | 10 namespace aura { |
11 | 11 |
12 class Window; | |
13 class WindowTreeClient; | 12 class WindowTreeClient; |
14 | 13 |
15 class AURA_EXPORT WindowTreeClientObserver { | 14 class AURA_EXPORT WindowTreeClientObserver { |
16 public: | 15 public: |
17 // Called early on in the destructor of WindowTreeClient; before any windows | 16 // Called early on in the destructor of WindowTreeClient; before any windows |
18 // have been destroyed. | 17 // have been destroyed. |
19 virtual void OnWillDestroyClient(WindowTreeClient* client) {} | 18 virtual void OnWillDestroyClient(WindowTreeClient* client) {} |
20 | 19 |
21 // Called at the end of WindowTreeClient's destructor. At this point | 20 // Called at the end of WindowTreeClient's destructor. At this point |
22 // observers should drop all references to |client|. | 21 // observers should drop all references to |client|. |
23 virtual void OnDidDestroyClient(WindowTreeClient* client) {} | 22 virtual void OnDidDestroyClient(WindowTreeClient* client) {} |
24 | 23 |
25 protected: | 24 protected: |
26 virtual ~WindowTreeClientObserver() {} | 25 virtual ~WindowTreeClientObserver() {} |
27 }; | 26 }; |
28 | 27 |
29 } // namespace aura | 28 } // namespace aura |
30 | 29 |
31 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_OBSERVER_H_ | 30 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_OBSERVER_H_ |
OLD | NEW |