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

Side by Side Diff: mojo/services/public/interfaces/view_manager/view_manager.mojom

Issue 292813008: Implement SetViewContents in the client lib (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 import "../../../../public/interfaces/geometry/geometry.mojom" 5 import "../../../../public/interfaces/geometry/geometry.mojom"
6 6
7 module mojo.view_manager { 7 module mojo.view_manager {
8 8
9 struct INode { 9 struct INode {
10 uint32 parent_id; 10 uint32 parent_id;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 // Deletes the view with the specified id. Only the connection that created 78 // Deletes the view with the specified id. Only the connection that created
79 // the view can delete it. 79 // the view can delete it.
80 DeleteView(uint32 view_id) => (bool success); 80 DeleteView(uint32 view_id) => (bool success);
81 81
82 // Sets the view a node is showing. 82 // Sets the view a node is showing.
83 SetView(uint32 node_id, uint32 view_id) => (bool success); 83 SetView(uint32 node_id, uint32 view_id) => (bool success);
84 84
85 // Shows the specified image (png encoded) in the specified view. 85 // Shows the specified image (png encoded) in the specified view.
86 SetViewContents(uint32 view_id, 86 SetViewContents(uint32 view_id,
87 handle<shared_buffer> buffer, 87 handle<shared_buffer> buffer,
88 uint32 buffer_size); 88 uint32 buffer_size) => (bool success);
89 89
90 // Sets the ids of the roots for the specified connection. 90 // Sets the ids of the roots for the specified connection.
91 // TODO(sky): this is temporary for testing. This needs to be conveyed at 91 // TODO(sky): this is temporary for testing. This needs to be conveyed at
92 // creation time of a new connection. 92 // creation time of a new connection.
93 SetRoots(uint16 connection_id, uint32[] nodes) => (bool success); 93 SetRoots(uint16 connection_id, uint32[] nodes) => (bool success);
94 }; 94 };
95 95
96 // Changes to nodes/views are not sent to the connection that originated the 96 // Changes to nodes/views are not sent to the connection that originated the
97 // change. For example, if connection 1 attaches a view to a node (SetView()) 97 // change. For example, if connection 1 attaches a view to a node (SetView())
98 // connection 1 does not receive OnNodeViewReplaced(). 98 // connection 1 does not receive OnNodeViewReplaced().
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 133
134 // Invoked when the view associated with a node is replaced by another view. 134 // Invoked when the view associated with a node is replaced by another view.
135 // 0 is used to identify a null view. 135 // 0 is used to identify a null view.
136 OnNodeViewReplaced(uint32 node, uint32 new_view_id, uint32 old_view_id); 136 OnNodeViewReplaced(uint32 node, uint32 new_view_id, uint32 old_view_id);
137 137
138 // Invoked when a view is deleted. 138 // Invoked when a view is deleted.
139 OnViewDeleted(uint32 view); 139 OnViewDeleted(uint32 view);
140 }; 140 };
141 141
142 } 142 }
OLDNEW
« no previous file with comments | « mojo/services/public/cpp/view_manager/view.h ('k') | mojo/services/view_manager/view_manager_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698