| OLD | NEW |
| 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 "../geometry/geometry.mojom" | 5 import "../geometry/geometry.mojom" |
| 6 import "../input_events/input_events.mojom" | 6 import "../input_events/input_events.mojom" |
| 7 import "view_manager_constants.mojom" | 7 import "view_manager_constants.mojom" |
| 8 | 8 |
| 9 module mojo.view_manager { | 9 module mojo.view_manager { |
| 10 | 10 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 interface ViewManagerService { | 36 interface ViewManagerService { |
| 37 // Creates a new node with the specified id. It is up to the client to ensure | 37 // Creates a new node with the specified id. It is up to the client to ensure |
| 38 // the id is unique to the connection (the id need not be globally unique). | 38 // the id is unique to the connection (the id need not be globally unique). |
| 39 // Additionally the connection id (embedded in |node_id|) must match that of | 39 // Additionally the connection id (embedded in |node_id|) must match that of |
| 40 // the connection. | 40 // the connection. |
| 41 CreateNode(uint32 node_id) => (bool success); | 41 CreateNode(uint32 node_id) => (bool success); |
| 42 | 42 |
| 43 // Deletes a node. This does not recurse. No hierarchy change notifications | 43 // Deletes a node. This does not recurse. No hierarchy change notifications |
| 44 // are sent as a result of this. Only the connection that created the node can | 44 // are sent as a result of this. Only the connection that created the node can |
| 45 // delete it. | 45 // delete it. |
| 46 DeleteNode(uint32 node_id) => (bool success); | 46 DeleteNode(uint32 node_id, uint32 change_id) => (bool success); |
| 47 | 47 |
| 48 // Sets the specified bounds of the specified node. | 48 // Sets the specified bounds of the specified node. |
| 49 SetNodeBounds(uint32 node_id, mojo.Rect bounds) => (bool success); | 49 SetNodeBounds(uint32 node_id, mojo.Rect bounds) => (bool success); |
| 50 | 50 |
| 51 // Reparents a node. See description above class for details of |change_id|. | 51 // Reparents a node. See description above class for details of |change_id|. |
| 52 // This fails for any of the following reasons: | 52 // This fails for any of the following reasons: |
| 53 // . |server_change_id| is not the expected id. | 53 // . |server_change_id| is not the expected id. |
| 54 // . |parent| or |child| does not identify a valid node. | 54 // . |parent| or |child| does not identify a valid node. |
| 55 // . |child| is an ancestor of |parent|. | 55 // . |child| is an ancestor of |parent|. |
| 56 // . |child| is already a child of |parent|. | 56 // . |child| is already a child of |parent|. |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 OnNodeViewReplaced(uint32 node, uint32 new_view_id, uint32 old_view_id); | 175 OnNodeViewReplaced(uint32 node, uint32 new_view_id, uint32 old_view_id); |
| 176 | 176 |
| 177 // Invoked when a view is deleted. | 177 // Invoked when a view is deleted. |
| 178 OnViewDeleted(uint32 view); | 178 OnViewDeleted(uint32 view); |
| 179 | 179 |
| 180 // Invoked when an event is targeted at the specified view. | 180 // Invoked when an event is targeted at the specified view. |
| 181 OnViewInputEvent(uint32 view, mojo.Event event) => (); | 181 OnViewInputEvent(uint32 view, mojo.Event event) => (); |
| 182 }; | 182 }; |
| 183 | 183 |
| 184 } | 184 } |
| OLD | NEW |