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

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

Issue 294833002: Mojo: more idiomatic C++ bindings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix windows bustage 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 side-by-side diff with in-line comments
Download patch
Index: mojo/services/view_manager/view_manager_connection.h
diff --git a/mojo/services/view_manager/view_manager_connection.h b/mojo/services/view_manager/view_manager_connection.h
index a8849b3842aaf1d142b84d7ba44ad760410aaf5e..aa5b0141d5d1966d06a4d650634325f155528757 100644
--- a/mojo/services/view_manager/view_manager_connection.h
+++ b/mojo/services/view_manager/view_manager_connection.h
@@ -131,7 +131,7 @@ class MOJO_VIEW_MANAGER_EXPORT ViewManagerConnection
// Converts an array of Nodes to INodes. This assumes all the nodes are valid
// for the client. The parent of nodes the client is not allowed to see are
// set to NULL (in the returned INodes).
- Array<INode> NodesToINodes(const std::vector<const Node*>& nodes);
+ Array<INodePtr> NodesToINodes(const std::vector<const Node*>& nodes);
// Overridden from IViewManager:
virtual void CreateNode(TransportNodeId transport_node_id,
@@ -148,7 +148,7 @@ class MOJO_VIEW_MANAGER_EXPORT ViewManagerConnection
const Callback<void(bool)>& callback) OVERRIDE;
virtual void GetNodeTree(
TransportNodeId node_id,
- const Callback<void(Array<INode>)>& callback) OVERRIDE;
+ const Callback<void(Array<INodePtr>)>& callback) OVERRIDE;
virtual void CreateView(TransportViewId transport_view_id,
const Callback<void(bool)>& callback) OVERRIDE;
virtual void DeleteView(TransportViewId transport_view_id,
@@ -162,10 +162,10 @@ class MOJO_VIEW_MANAGER_EXPORT ViewManagerConnection
const Callback<void(bool)>& callback) OVERRIDE;
virtual void SetRoots(
TransportConnectionId connection_id,
- const Array<TransportNodeId>& transport_node_ids,
+ Array<TransportNodeId> transport_node_ids,
const Callback<void(bool)>& callback) OVERRIDE;
virtual void SetNodeBounds(TransportNodeId node_id,
- const Rect& bounds,
+ RectPtr bounds,
const Callback<void(bool)>& callback) OVERRIDE;
// Overridden from NodeDelegate:

Powered by Google App Engine
This is Rietveld 408576698