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 "../../../../public/interfaces/geometry/geometry.mojom" | 5 import "../../../../public/interfaces/geometry/geometry.mojom" |
6 | 6 |
7 module mojo.view_manager { | 7 module mojo.view_manager { |
8 | 8 |
9 struct INode { | 9 struct INode { |
10 uint32 parent_id; | 10 uint32 parent_id; |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
94 }; | 94 }; |
95 | 95 |
96 // Changes to nodes/views are not sent to the connection that originated the | 96 // Changes to nodes/views are not sent to the connection that originated the |
97 // change. For example, if connection 1 attaches a view to a node (SetView()) | 97 // change. For example, if connection 1 attaches a view to a node (SetView()) |
98 // connection 1 does not receive OnNodeViewReplaced(). | 98 // connection 1 does not receive OnNodeViewReplaced(). |
99 interface IViewManagerClient { | 99 interface IViewManagerClient { |
100 // Invoked once the connection has been established. |connection_id| is the id | 100 // Invoked once the connection has been established. |connection_id| is the id |
101 // that uniquely identifies this connection. |next_server_change_id| is the | 101 // that uniquely identifies this connection. |next_server_change_id| is the |
102 // id of the next change the server is expecting. |nodes| are the nodes | 102 // id of the next change the server is expecting. |nodes| are the nodes |
103 // parented to the root. | 103 // parented to the root. |
104 OnConnectionEstablished(uint16 connection_id, | 104 OnViewManagerConnectionEstablished(uint16 connection_id, |
Ben Goodger (Google)
2014/05/23 20:21:46
I suspect this will evolve into an Init() method w
| |
105 uint32 next_server_change_id, | 105 uint32 next_server_change_id, |
106 INode[] nodes); | 106 INode[] nodes); |
107 | 107 |
108 // This is sent to clients when a change is made to the server that results | 108 // This is sent to clients when a change is made to the server that results |
109 // in the |server_change_id| changing but the client isn't notified. This is | 109 // in the |server_change_id| changing but the client isn't notified. This is |
110 // not sent if the client receives a callback giving a new | 110 // not sent if the client receives a callback giving a new |
111 // |server_change_id|. For example, if a client 1 changes the hierarchy in | 111 // |server_change_id|. For example, if a client 1 changes the hierarchy in |
112 // some way but client 2 isn't notified of the change, then client 2 gets | 112 // some way but client 2 isn't notified of the change, then client 2 gets |
113 // OnServerChangeIdAdvanced(). | 113 // OnServerChangeIdAdvanced(). |
114 OnServerChangeIdAdvanced(uint32 next_server_change_id); | 114 OnServerChangeIdAdvanced(uint32 next_server_change_id); |
115 | 115 |
116 // Invoked when a node's bounds have changed. | 116 // Invoked when a node's bounds have changed. |
(...skipping 16 matching lines...) Expand all Loading... | |
133 | 133 |
134 // Invoked when the view associated with a node is replaced by another view. | 134 // Invoked when the view associated with a node is replaced by another view. |
135 // 0 is used to identify a null view. | 135 // 0 is used to identify a null view. |
136 OnNodeViewReplaced(uint32 node, uint32 new_view_id, uint32 old_view_id); | 136 OnNodeViewReplaced(uint32 node, uint32 new_view_id, uint32 old_view_id); |
137 | 137 |
138 // Invoked when a view is deleted. | 138 // Invoked when a view is deleted. |
139 OnViewDeleted(uint32 view); | 139 OnViewDeleted(uint32 view); |
140 }; | 140 }; |
141 | 141 |
142 } | 142 } |
OLD | NEW |