| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 DeleteView(uint32 view_id) => (bool success); | 99 DeleteView(uint32 view_id) => (bool success); |
| 100 | 100 |
| 101 // Sets the view a node is showing. | 101 // Sets the view a node is showing. |
| 102 SetView(uint32 node_id, uint32 view_id) => (bool success); | 102 SetView(uint32 node_id, uint32 view_id) => (bool success); |
| 103 | 103 |
| 104 // Shows the specified image (png encoded) in the specified view. | 104 // Shows the specified image (png encoded) in the specified view. |
| 105 SetViewContents(uint32 view_id, | 105 SetViewContents(uint32 view_id, |
| 106 handle<shared_buffer> buffer, | 106 handle<shared_buffer> buffer, |
| 107 uint32 buffer_size) => (bool success); | 107 uint32 buffer_size) => (bool success); |
| 108 | 108 |
| 109 // Sets focus to the specified node. |
| 110 SetFocus(uint32 node_id) => (bool success); |
| 111 |
| 109 // Embeds the app at |url| in the specified nodes. More specifically this | 112 // Embeds the app at |url| in the specified nodes. More specifically this |
| 110 // creates a new connection to the specified url, expecting to get an | 113 // creates a new connection to the specified url, expecting to get an |
| 111 // IViewManagerClient and configures it with the root nodes |nodes|. Fails | 114 // IViewManagerClient and configures it with the root nodes |nodes|. Fails |
| 112 // if |nodes| is empty or contains nodes that were not created by this | 115 // if |nodes| is empty or contains nodes that were not created by this |
| 113 // connection. | 116 // connection. |
| 114 // If a particular client invokes Embed() multiple times with the same url, | 117 // If a particular client invokes Embed() multiple times with the same url, |
| 115 // the connection is reused. When this happens the IViewManagerClient is | 118 // the connection is reused. When this happens the IViewManagerClient is |
| 116 // notified of the additional roots by way of OnRootsAdded(). | 119 // notified of the additional roots by way of OnRootsAdded(). |
| 117 Embed(string url, uint32[] nodes) => (bool success); | 120 Embed(string url, uint32[] nodes) => (bool success); |
| 118 }; | 121 }; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 OnNodeViewReplaced(uint32 node, uint32 new_view_id, uint32 old_view_id); | 175 OnNodeViewReplaced(uint32 node, uint32 new_view_id, uint32 old_view_id); |
| 173 | 176 |
| 174 // Invoked when a view is deleted. | 177 // Invoked when a view is deleted. |
| 175 OnViewDeleted(uint32 view); | 178 OnViewDeleted(uint32 view); |
| 176 | 179 |
| 177 // Invoked when an event is targeted at the specified view. | 180 // Invoked when an event is targeted at the specified view. |
| 178 OnViewInputEvent(uint32 view, mojo.Event event) => (); | 181 OnViewInputEvent(uint32 view, mojo.Event event) => (); |
| 179 }; | 182 }; |
| 180 | 183 |
| 181 } | 184 } |
| OLD | NEW |