OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_TREE_NODE_OBSERVER_H_ | 5 #ifndef MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_TREE_NODE_OBSERVER_H_ |
6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_TREE_NODE_OBSERVER_H_ | 6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_TREE_NODE_OBSERVER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 TreeChangeParams(); | 26 TreeChangeParams(); |
27 ViewTreeNode* target; | 27 ViewTreeNode* target; |
28 ViewTreeNode* old_parent; | 28 ViewTreeNode* old_parent; |
29 ViewTreeNode* new_parent; | 29 ViewTreeNode* new_parent; |
30 ViewTreeNode* receiver; | 30 ViewTreeNode* receiver; |
31 DispositionChangePhase phase; | 31 DispositionChangePhase phase; |
32 }; | 32 }; |
33 | 33 |
34 virtual void OnTreeChange(const TreeChangeParams& params) {} | 34 virtual void OnTreeChange(const TreeChangeParams& params) {} |
35 | 35 |
| 36 virtual void OnNodeDestroy(ViewTreeNode* node, |
| 37 DispositionChangePhase phase) {} |
| 38 |
36 protected: | 39 protected: |
37 virtual ~ViewTreeNodeObserver() {} | 40 virtual ~ViewTreeNodeObserver() {} |
38 }; | 41 }; |
39 | 42 |
40 } // namespace view_manager | 43 } // namespace view_manager |
41 } // namespace services | 44 } // namespace services |
42 } // namespace mojo | 45 } // namespace mojo |
43 | 46 |
44 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_TREE_NODE_OBSERVER_H_ | 47 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_TREE_NODE_OBSERVER_H_ |
OLD | NEW |