| 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 | 7 |
| 7 module mojo.view_manager { | 8 module mojo.view_manager { |
| 8 | 9 |
| 9 struct INode { | 10 struct INode { |
| 10 uint32 parent_id; | 11 uint32 parent_id; |
| 11 uint32 node_id; | 12 uint32 node_id; |
| 12 uint32 view_id; | 13 uint32 view_id; |
| 13 mojo.Rect bounds; | 14 mojo.Rect bounds; |
| 14 }; | 15 }; |
| 15 | 16 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 | 132 |
| 132 // Invoked when a node is deleted. | 133 // Invoked when a node is deleted. |
| 133 OnNodeDeleted(uint32 node, uint32 server_change_id); | 134 OnNodeDeleted(uint32 node, uint32 server_change_id); |
| 134 | 135 |
| 135 // Invoked when the view associated with a node is replaced by another view. | 136 // Invoked when the view associated with a node is replaced by another view. |
| 136 // 0 is used to identify a null view. | 137 // 0 is used to identify a null view. |
| 137 OnNodeViewReplaced(uint32 node, uint32 new_view_id, uint32 old_view_id); | 138 OnNodeViewReplaced(uint32 node, uint32 new_view_id, uint32 old_view_id); |
| 138 | 139 |
| 139 // Invoked when a view is deleted. | 140 // Invoked when a view is deleted. |
| 140 OnViewDeleted(uint32 view); | 141 OnViewDeleted(uint32 view); |
| 142 |
| 143 // Invoked when an event is targeted at the specified view. |
| 144 OnViewInputEvent(uint32 view, mojo.Event event) => (); |
| 141 }; | 145 }; |
| 142 | 146 |
| 143 } | 147 } |
| OLD | NEW |