| 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; | 5 module mojo; |
| 6 | 6 |
| 7 import "mojo/public/interfaces/application/service_provider.mojom"; | 7 import "mojo/public/interfaces/application/service_provider.mojom"; |
| 8 import "mojo/services/public/interfaces/geometry/geometry.mojom"; | 8 import "mojo/services/public/interfaces/geometry/geometry.mojom"; |
| 9 import "mojo/services/public/interfaces/input_events/input_events.mojom"; | 9 import "mojo/services/public/interfaces/input_events/input_events.mojom"; |
| 10 import "mojo/services/public/interfaces/surfaces/surface_id.mojom"; | 10 import "mojo/services/public/interfaces/surfaces/surface_id.mojom"; |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 // connection. | 123 // connection. |
| 124 // | 124 // |
| 125 // |service_provider| encapsulates services offered by the embedder to the | 125 // |service_provider| encapsulates services offered by the embedder to the |
| 126 // embedded app alongside this Embed() call. It also provides a means for | 126 // embedded app alongside this Embed() call. It also provides a means for |
| 127 // the embedder to connect to services symmetrically exposed by the embedded | 127 // the embedder to connect to services symmetrically exposed by the embedded |
| 128 // app. Note that if a different app is subsequently embedded at |view_id| | 128 // app. Note that if a different app is subsequently embedded at |view_id| |
| 129 // the |service_provider|'s connection to its client in the embedded app and | 129 // the |service_provider|'s connection to its client in the embedded app and |
| 130 // any services it provided are not broken and continue to be valid. | 130 // any services it provided are not broken and continue to be valid. |
| 131 Embed(string url, | 131 Embed(string url, |
| 132 uint32 view_id, | 132 uint32 view_id, |
| 133 ServiceProvider&? service_provider) => (bool success); | 133 ServiceProvider? service_provider) => (bool success); |
| 134 }; | 134 }; |
| 135 | 135 |
| 136 // Changes to views are not sent to the connection that originated the | 136 // Changes to views are not sent to the connection that originated the |
| 137 // change. For example, if connection 1 changes the bounds of a view by calling | 137 // change. For example, if connection 1 changes the bounds of a view by calling |
| 138 // SetBounds(), connection 1 does not receive OnViewBoundsChanged(). | 138 // SetBounds(), connection 1 does not receive OnViewBoundsChanged(). |
| 139 [Client=ViewManagerService] | 139 [Client=ViewManagerService] |
| 140 interface ViewManagerClient { | 140 interface ViewManagerClient { |
| 141 // Invoked when the client application has been embedded at |root|. | 141 // Invoked when the client application has been embedded at |root|. |
| 142 // See Embed() on ViewManagerService for more details. |window_manager_pipe| | 142 // See Embed() on ViewManagerService for more details. |window_manager_pipe| |
| 143 // is a pipe to the WindowManager. | 143 // is a pipe to the WindowManager. |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 // NOTE: This is not invoked if OnViewVisibilityChanged() is invoked. | 189 // NOTE: This is not invoked if OnViewVisibilityChanged() is invoked. |
| 190 OnViewDrawnStateChanged(uint32 view, bool drawn); | 190 OnViewDrawnStateChanged(uint32 view, bool drawn); |
| 191 | 191 |
| 192 // Invoked when a view property is changed. If this change is a removal, | 192 // Invoked when a view property is changed. If this change is a removal, |
| 193 // |new_data| is null. | 193 // |new_data| is null. |
| 194 OnViewPropertyChanged(uint32 view, string name, array<uint8>? new_data); | 194 OnViewPropertyChanged(uint32 view, string name, array<uint8>? new_data); |
| 195 | 195 |
| 196 // Invoked when an event is targeted at the specified view. | 196 // Invoked when an event is targeted at the specified view. |
| 197 OnViewInputEvent(uint32 view, mojo.Event event) => (); | 197 OnViewInputEvent(uint32 view, mojo.Event event) => (); |
| 198 }; | 198 }; |
| OLD | NEW |