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 df40defcab26fdf3b083576601a213f69237732d..e782798b5db310a75e6e2753c7069e1f61647c61 100644 |
--- a/mojo/services/public/interfaces/view_manager/view_manager.mojom |
+++ b/mojo/services/public/interfaces/view_manager/view_manager.mojom |
@@ -4,6 +4,7 @@ |
import "../geometry/geometry.mojom" |
import "../input_events/input_events.mojom" |
+import "view_manager_constants.mojom" |
module mojo.view_manager { |
@@ -72,6 +73,15 @@ interface IViewManager { |
RemoveNodeFromParent(uint32 node_id, |
uint32 server_change_id) => (bool success); |
+ // Reorders a node in its parent, relative to |relative_node_id| according to |
+ // |direction|. |
+ // Only the connection that created the node's parent can reorder its |
+ // children. |
+ ReorderNode(uint32 node_id, |
+ uint32 relative_node_id, |
+ OrderDirection direction, |
+ uint32 server_change_id) => (bool success); |
+ |
// Returns the nodes comprising the tree starting at |node_id|. |node_id| is |
// the first result in the return value, unless |node_id| is invalid, in which |
// case an empty vector is returned. The nodes are visited using a depth first |
@@ -148,6 +158,12 @@ interface IViewManagerClient { |
uint32 server_change_id, |
INode[] nodes); |
+ // Invoked when the order of nodes within a parent changes. |
+ OnNodeReordered(uint32 node_id, |
+ uint32 relative_node_id, |
+ OrderDirection direction, |
+ uint32 server_change_id); |
+ |
// Invoked when a node is deleted. |
OnNodeDeleted(uint32 node, uint32 server_change_id); |