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

Unified Diff: mojo/services/view_manager/root_node_manager.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_delegate.h ('k') | mojo/services/view_manager/root_node_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/view_manager/root_node_manager.h
diff --git a/mojo/services/view_manager/root_node_manager.h b/mojo/services/view_manager/root_node_manager.h
index aecfa8b7381aa2fea8b55988868543838688dc88..98f347e0c9ed3746263aed3594f92c9c7e94da1d 100644
--- a/mojo/services/view_manager/root_node_manager.h
+++ b/mojo/services/view_manager/root_node_manager.h
@@ -50,13 +50,23 @@ class MOJO_VIEW_MANAGER_EXPORT RootNodeManager
void AddConnection(ViewManagerConnection* connection);
void RemoveConnection(ViewManagerConnection* connection);
+ // Returns the connection by id.
+ ViewManagerConnection* GetConnection(uint16_t connection_id);
+
// Returns the Node identified by |id|.
Node* GetNode(const NodeId& id);
- // Notifies all ViewManagerConnections of a hierarchy change.
+ // Returns the View identified by |id|.
+ View* GetView(const ViewId& id);
+
+ // These functions trivially delegate to all ViewManagerConnections, which in
+ // term notify their clients.
void NotifyNodeHierarchyChanged(const NodeId& node,
const NodeId& new_parent,
const NodeId& old_parent);
+ void NotifyNodeViewReplaced(const NodeId& node,
+ const ViewId& new_view_id,
+ const ViewId& old_view_id);
private:
// Tracks a change.
@@ -94,6 +104,9 @@ class MOJO_VIEW_MANAGER_EXPORT RootNodeManager
virtual void OnNodeHierarchyChanged(const NodeId& node,
const NodeId& new_parent,
const NodeId& old_parent) OVERRIDE;
+ virtual void OnNodeViewReplaced(const NodeId& node,
+ const ViewId& new_view_id,
+ const ViewId& old_view_id) OVERRIDE;
// ID to use for next ViewManagerConnection.
uint16_t next_connection_id_;
« no previous file with comments | « mojo/services/view_manager/node_delegate.h ('k') | mojo/services/view_manager/root_node_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698