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 | 7 |
8 module mojo.view_manager { | 8 module mojo.view_manager { |
9 | 9 |
10 struct INode { | 10 struct INode { |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 // Changes to nodes/views are not sent to the connection that originated the | 109 // Changes to nodes/views are not sent to the connection that originated the |
110 // change. For example, if connection 1 attaches a view to a node (SetView()) | 110 // change. For example, if connection 1 attaches a view to a node (SetView()) |
111 // connection 1 does not receive OnNodeViewReplaced(). | 111 // connection 1 does not receive OnNodeViewReplaced(). |
112 [Client=IViewManager] | 112 [Client=IViewManager] |
113 interface IViewManagerClient { | 113 interface IViewManagerClient { |
114 // Invoked once the connection has been established. |connection_id| is the id | 114 // Invoked once the connection has been established. |connection_id| is the id |
115 // that uniquely identifies this connection. |next_server_change_id| is the | 115 // that uniquely identifies this connection. |next_server_change_id| is the |
116 // id of the next change the server is expecting. |nodes| are the nodes | 116 // id of the next change the server is expecting. |nodes| are the nodes |
117 // parented to the root. | 117 // parented to the root. |
118 OnViewManagerConnectionEstablished(uint16 connection_id, | 118 OnViewManagerConnectionEstablished(uint16 connection_id, |
| 119 string creator_url, |
119 uint32 next_server_change_id, | 120 uint32 next_server_change_id, |
120 INode[] nodes); | 121 INode[] nodes); |
121 | 122 |
122 // See description of IViewManager::Connect() for details as to when this is | 123 // See description of IViewManager::Connect() for details as to when this is |
123 // invoked. | 124 // invoked. |
124 OnRootsAdded(INode[] nodes); | 125 OnRootsAdded(INode[] nodes); |
125 | 126 |
126 // This is sent to clients when a change is made to the server that results | 127 // This is sent to clients when a change is made to the server that results |
127 // in the |server_change_id| changing but the client isn't notified. This is | 128 // in the |server_change_id| changing but the client isn't notified. This is |
128 // not sent if the client receives a callback giving a new | 129 // not sent if the client receives a callback giving a new |
(...skipping 25 matching lines...) Expand all Loading... |
154 OnNodeViewReplaced(uint32 node, uint32 new_view_id, uint32 old_view_id); | 155 OnNodeViewReplaced(uint32 node, uint32 new_view_id, uint32 old_view_id); |
155 | 156 |
156 // Invoked when a view is deleted. | 157 // Invoked when a view is deleted. |
157 OnViewDeleted(uint32 view); | 158 OnViewDeleted(uint32 view); |
158 | 159 |
159 // Invoked when an event is targeted at the specified view. | 160 // Invoked when an event is targeted at the specified view. |
160 OnViewInputEvent(uint32 view, mojo.Event event) => (); | 161 OnViewInputEvent(uint32 view, mojo.Event event) => (); |
161 }; | 162 }; |
162 | 163 |
163 } | 164 } |
OLD | NEW |