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 module mojo.services.view_manager { | 5 module mojo.services.view_manager { |
6 | 6 |
7 struct INode { | 7 struct INode { |
8 uint32 parent_id; | 8 uint32 parent_id; |
9 uint32 node_id; | 9 uint32 node_id; |
10 uint32 view_id; | 10 uint32 view_id; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 // Invoked when a change is done to the hierarchy. A value of 0 is used to | 89 // Invoked when a change is done to the hierarchy. A value of 0 is used to |
90 // identify a null node. For example, if the old_parent is NULL, 0 is | 90 // identify a null node. For example, if the old_parent is NULL, 0 is |
91 // supplied. See description above ViewManager for details on the change ids. | 91 // supplied. See description above ViewManager for details on the change ids. |
92 OnNodeHierarchyChanged(uint32 node, | 92 OnNodeHierarchyChanged(uint32 node, |
93 uint32 new_parent, | 93 uint32 new_parent, |
94 uint32 old_parent, | 94 uint32 old_parent, |
95 uint32 server_change_id, | 95 uint32 server_change_id, |
96 uint32 client_change_id); | 96 uint32 client_change_id); |
97 | 97 |
98 // Invoked when a node is deleted. | 98 // Invoked when a node is deleted. |
99 OnNodeDeleted(uint32 node, uint32 server_change_id, uint32 client_change_id); | 99 OnNodeDeleted(uint32 node, |
| 100 uint32 server_change_id, |
| 101 uint32 client_change_id); |
100 | 102 |
101 | 103 |
102 // Invoked when the view associated with a node is replaced by another view. | 104 // Invoked when the view associated with a node is replaced by another view. |
103 // 0 is used to identify a null view. | 105 // 0 is used to identify a null view. |
104 OnNodeViewReplaced(uint32 node, | 106 OnNodeViewReplaced(uint32 node, |
105 uint32 new_view_id, | 107 uint32 new_view_id, |
106 uint32 old_view_id, | 108 uint32 old_view_id, |
107 uint32 client_change_id); | 109 uint32 client_change_id); |
108 | |
109 // Invoked when a view is deleted. | |
110 OnViewDeleted(uint32 view, uint32 server_change_id, uint32 client_change_id); | |
111 }; | 110 }; |
112 | 111 |
113 } | 112 } |
OLD | NEW |