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

Unified Diff: mojo/services/view_manager/node_delegate.h

Issue 383763003: Trigger Node destruction notifications from Node's dtor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/services/view_manager/node.cc ('k') | mojo/services/view_manager/root_node_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/view_manager/node_delegate.h
diff --git a/mojo/services/view_manager/node_delegate.h b/mojo/services/view_manager/node_delegate.h
index ca4254ed62c87364f24f35d0b3cfa43db2634309..1ad2ee77ca042b0c1be9adbdccc58403d8e641bf 100644
--- a/mojo/services/view_manager/node_delegate.h
+++ b/mojo/services/view_manager/node_delegate.h
@@ -24,6 +24,10 @@ class View;
class MOJO_VIEW_MANAGER_EXPORT NodeDelegate {
public:
+ // Invoked at the end of the Node's destructor (after it has been removed from
+ // the hierarchy and its active view has been reset).
+ virtual void OnNodeDestroyed(const Node* node) = 0;
+
// Invoked when the hierarchy has changed.
virtual void OnNodeHierarchyChanged(const Node* node,
const Node* new_parent,
« no previous file with comments | « mojo/services/view_manager/node.cc ('k') | mojo/services/view_manager/root_node_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698