Chromium Code Reviews| 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 "mojo/services/public/interfaces/geometry/geometry.mojom" | 5 import "mojo/services/public/interfaces/geometry/geometry.mojom" |
| 6 import "mojo/services/public/interfaces/input_events/input_events.mojom" | 6 import "mojo/services/public/interfaces/input_events/input_events.mojom" |
| 7 import "mojo/services/public/interfaces/view_manager/view_manager_constants.mojo m" | 7 import "mojo/services/public/interfaces/view_manager/view_manager_constants.mojo m" |
| 8 | 8 |
| 9 module mojo.view_manager { | 9 module mojo.view_manager { |
| 10 | 10 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 130 // notified of the additional roots by way of OnRootAdded(). | 130 // notified of the additional roots by way of OnRootAdded(). |
| 131 // | 131 // |
| 132 // A node may only be a root of one connection at a time. Subsequent calls to | 132 // A node may only be a root of one connection at a time. Subsequent calls to |
| 133 // Embed() for the same node result in the node being removed from the | 133 // Embed() for the same node result in the node being removed from the |
| 134 // current connection. The current connection is told this by way of | 134 // current connection. The current connection is told this by way of |
| 135 // OnNodeDeleted(). | 135 // OnNodeDeleted(). |
| 136 // | 136 // |
| 137 // This advances the server change id. | 137 // This advances the server change id. |
| 138 Embed(string url, uint32 node_id) => (bool success); | 138 Embed(string url, uint32 node_id) => (bool success); |
| 139 | 139 |
| 140 // Requests the view manager embed the app for |url| "somewhere". The View | |
| 141 // Manager delegates determination of what "somewhere" is to the app embedded | |
| 142 // at the service root node (i.e. the window manager). | |
| 143 EmbedRoot(string url) => (bool success); | |
|
sky
2014/07/21 19:26:53
Using 'root' here implies this gets the root, whic
| |
| 144 | |
| 140 // TODO(sky): move these to a separate interface when FIFO works. | 145 // TODO(sky): move these to a separate interface when FIFO works. |
| 141 | 146 |
| 142 // Sends OnViewInputEvent() to the owner of the specified view. | 147 // Sends OnViewInputEvent() to the owner of the specified view. |
| 143 DispatchOnViewInputEvent(uint32 view_id, mojo.Event event); | 148 DispatchOnViewInputEvent(uint32 view_id, mojo.Event event); |
| 144 }; | 149 }; |
| 145 | 150 |
| 146 // Changes to nodes/views are not sent to the connection that originated the | 151 // Changes to nodes/views are not sent to the connection that originated the |
| 147 // change. For example, if connection 1 attaches a view to a node (SetView()) | 152 // change. For example, if connection 1 attaches a view to a node (SetView()) |
| 148 // connection 1 does not receive OnNodeViewReplaced(). | 153 // connection 1 does not receive OnNodeViewReplaced(). |
| 149 [Client=ViewManagerService] | 154 [Client=ViewManagerService] |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 207 // once support for derived FIFOs is landed. | 212 // once support for derived FIFOs is landed. |
| 208 | 213 |
| 209 // Requests the window manager create a "top level" node embedding |url|. | 214 // Requests the window manager create a "top level" node embedding |url|. |
| 210 EmbedRoot(string url); | 215 EmbedRoot(string url); |
| 211 | 216 |
| 212 // Requests the view manager dispatch the event targeted at |view|. | 217 // Requests the view manager dispatch the event targeted at |view|. |
| 213 DispatchOnViewInputEvent(uint32 view, mojo.Event event); | 218 DispatchOnViewInputEvent(uint32 view, mojo.Event event); |
| 214 }; | 219 }; |
| 215 | 220 |
| 216 } | 221 } |
| OLD | NEW |