| 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);
|
| };
|
|
|
| }
|
|
|