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

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

Issue 250633003: Adds more to viewmanager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: override Created 6 years, 8 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 3e34940ffca0c7f3cda54c629613b387e1371062..5cec703818b7bea09942550588fbb09340664160 100644
--- a/mojo/services/view_manager/node_delegate.h
+++ b/mojo/services/view_manager/node_delegate.h
@@ -12,6 +12,7 @@ namespace services {
namespace view_manager {
struct NodeId;
+struct ViewId;
class MOJO_VIEW_MANAGER_EXPORT NodeDelegate {
public:
@@ -20,6 +21,11 @@ class MOJO_VIEW_MANAGER_EXPORT NodeDelegate {
const NodeId& new_parent,
const NodeId& old_parent) = 0;
+ // Invoked when the View associated with a node changes.
+ virtual void OnNodeViewReplaced(const NodeId& node,
+ const ViewId& new_view_id,
+ const ViewId& old_view_id) = 0;
+
protected:
virtual ~NodeDelegate() {}
};
« 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