Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1022)

Side by Side Diff: mojo/services/public/cpp/view_manager/view_tree_node_observer.h

Issue 274733004: Deletion/ownership (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698