Chromium Code Reviews| 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..481641332ec1ec6dfd47740229fe72dfc31a3031 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 changes. 0 is used to |
| + // identify a null view. |
| + OnNodeViewChanged(uint32 node, |
|
Ben Goodger (Google)
2014/04/24 18:22:42
Maybe you want to call this Replaced. Changed is a
sky
2014/04/24 19:04:13
Done.
|
| + uint32 new_view_id, |
| + uint32 old_view_id, |
| + int32 change_id); |
| }; |
| } |