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

Unified Diff: mojo/services/public/interfaces/view_manager/view_manager.mojom

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/mojo_services.gypi ('k') | mojo/services/view_manager/ids.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/public/interfaces/view_manager/view_manager.mojom
diff --git a/mojo/services/public/interfaces/view_manager/view_manager.mojom b/mojo/services/public/interfaces/view_manager/view_manager.mojom
index ef5dcf3c34aa4d721dd087cdec1d0a5ef7b1c37a..673068cc1a457b773f9052868cdcf7db634aac6b 100644
--- a/mojo/services/public/interfaces/view_manager/view_manager.mojom
+++ b/mojo/services/public/interfaces/view_manager/view_manager.mojom
@@ -21,6 +21,10 @@ interface ViewManager {
// the id is unique to the connection (the id need not be globally unique).
CreateNode(uint16 node_id) => (bool success);
+ // Deletes a node. This does not recurse. Children are removed from the node
+ // before it is destroyed.
+ DeleteNode(uint32 node_id, int32 change_id) => (bool success);
+
// Reparents a node. See description above class for details of |change_id|.
AddNode(uint32 parent, uint32 child, int32 change_id) => (bool success);
@@ -30,10 +34,13 @@ interface ViewManager {
// Creates a new view with the specified id. It is up to the client to ensure
// the id is unique to the connection (the id need not be globally unique).
- // CreateView(uint16 view_id) => (bool success);
+ CreateView(uint16 view_id) => (bool success);
+
+ // Deletes the view with the specified id.
+ DeleteView(uint32 view_id, int32 change_id) => (bool success);
// Sets the view a node is showing.
- // SetView(uint32 node, uint32 view) => (bool success);
+ SetView(uint32 node_id, uint32 view_id, int32 change_id) => (bool success);
};
[Peer=ViewManager]
@@ -49,6 +56,13 @@ interface ViewManagerClient {
uint32 new_parent,
uint32 old_parent,
int32 change_id);
+
+ // Invoked when the view associated with a node is replaced by another view.
+ // 0 is used to identify a null view.
+ OnNodeViewReplaced(uint32 node,
+ uint32 new_view_id,
+ uint32 old_view_id,
+ int32 change_id);
};
}
« no previous file with comments | « mojo/mojo_services.gypi ('k') | mojo/services/view_manager/ids.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698