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

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: rebase 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 9ae7d50c03d82202d5860260a71d022af3621906..d463694e6844dc67c10135d703fccab92a4d32af 100644
--- a/mojo/services/view_manager/view_manager_connection.h
+++ b/mojo/services/view_manager/view_manager_connection.h
@@ -136,7 +136,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,
@@ -153,7 +153,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,
@@ -166,10 +166,10 @@ class MOJO_VIEW_MANAGER_EXPORT ViewManagerConnection
uint32_t buffer_size,
const Callback<void(bool)>& callback) OVERRIDE;
virtual void SetNodeBounds(TransportNodeId node_id,
- const Rect& bounds,
+ RectPtr bounds,
const Callback<void(bool)>& callback) OVERRIDE;
virtual void Connect(const mojo::String& url,
- const mojo::Array<uint32_t>& node_ids,
+ mojo::Array<uint32_t> node_ids,
const mojo::Callback<void(bool)>& callback) OVERRIDE;
// Overridden from NodeDelegate:
« no previous file with comments | « mojo/services/view_manager/test_change_tracker.cc ('k') | mojo/services/view_manager/view_manager_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698