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 WindowTreeClient; | 12 class WindowTreeClient; |
13 | 13 |
14 class AURA_EXPORT WindowTreeClientObserver { | 14 class AURA_EXPORT WindowTreeClientObserver { |
15 public: | 15 public: |
16 // Called early on in the destructor of WindowTreeClient; before any windows | 16 // Called early on in the destructor of WindowTreeClient. |
17 // have been destroyed. | |
18 virtual void OnWillDestroyClient(WindowTreeClient* client) {} | 17 virtual void OnWillDestroyClient(WindowTreeClient* client) {} |
19 | 18 |
20 // Called at the end of WindowTreeClient's destructor. At this point | |
21 // observers should drop all references to |client|. | |
22 virtual void OnDidDestroyClient(WindowTreeClient* client) {} | |
23 | |
24 protected: | 19 protected: |
25 virtual ~WindowTreeClientObserver() {} | 20 virtual ~WindowTreeClientObserver() {} |
26 }; | 21 }; |
27 | 22 |
28 } // namespace aura | 23 } // namespace aura |
29 | 24 |
30 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_OBSERVER_H_ | 25 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_OBSERVER_H_ |
OLD | NEW |