Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(858)

Side by Side Diff: third_party/mojo_services/src/view_manager/public/interfaces/view_manager.mojom

Issue 890843003: Revert of Update mojo sdk to rev 8af2ccff2eee4bfca1043015abee30482a030b30 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "geometry/public/interfaces/geometry.mojom"; 7 import "geometry/public/interfaces/geometry.mojom";
8 import "input_events/public/interfaces/input_events.mojom"; 8 import "input_events/public/interfaces/input_events.mojom";
9 import "mojo/public/interfaces/application/service_provider.mojom"; 9 import "mojo/public/interfaces/application/service_provider.mojom";
10 import "native_viewport/public/interfaces/native_viewport.mojom"; 10 import "native_viewport/public/interfaces/native_viewport.mojom";
(...skipping 17 matching lines...) Expand all
28 enum ErrorCode { 28 enum ErrorCode {
29 NONE, 29 NONE,
30 VALUE_IN_USE, 30 VALUE_IN_USE,
31 ILLEGAL_ARGUMENT, 31 ILLEGAL_ARGUMENT,
32 }; 32 };
33 33
34 // Views are identified by a uint32. The upper 16 bits are the connection id, 34 // Views are identified by a uint32. The upper 16 bits are the connection id,
35 // and the lower 16 the id assigned by the client. 35 // and the lower 16 the id assigned by the client.
36 // 36 //
37 // The root view is identified with a connection id of 0, and value of 1. 37 // The root view is identified with a connection id of 0, and value of 1.
38 [Client=ViewManagerClient]
38 interface ViewManagerService { 39 interface ViewManagerService {
39 // Creates a new view with the specified id. It is up to the client to ensure 40 // Creates a new view with the specified id. It is up to the client to ensure
40 // the id is unique to the connection (the id need not be globally unique). 41 // the id is unique to the connection (the id need not be globally unique).
41 // Additionally the connection id (embedded in |view_id|) must match that of 42 // Additionally the connection id (embedded in |view_id|) must match that of
42 // the connection. 43 // the connection.
43 // Errors: 44 // Errors:
44 // ERROR_CODE_VALUE_IN_USE: a view already exists with the specified id. 45 // ERROR_CODE_VALUE_IN_USE: a view already exists with the specified id.
45 // ERROR_CODE_ILLEGAL_ARGUMENT: The connection part of |view_id| does not 46 // ERROR_CODE_ILLEGAL_ARGUMENT: The connection part of |view_id| does not
46 // match the connection id of the client. 47 // match the connection id of the client.
47 // 48 //
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 // services it provided are not broken and continue to be valid. 132 // services it provided are not broken and continue to be valid.
132 Embed(string url, 133 Embed(string url,
133 uint32 view_id, 134 uint32 view_id,
134 ServiceProvider&? services, 135 ServiceProvider&? services,
135 ServiceProvider? exposed_services) => (bool success); 136 ServiceProvider? exposed_services) => (bool success);
136 }; 137 };
137 138
138 // Changes to views are not sent to the connection that originated the 139 // Changes to views are not sent to the connection that originated the
139 // change. For example, if connection 1 changes the bounds of a view by calling 140 // change. For example, if connection 1 changes the bounds of a view by calling
140 // SetBounds(), connection 1 does not receive OnViewBoundsChanged(). 141 // SetBounds(), connection 1 does not receive OnViewBoundsChanged().
142 [Client=ViewManagerService]
141 interface ViewManagerClient { 143 interface ViewManagerClient {
142 // Invoked when the client application has been embedded at |root|. 144 // Invoked when the client application has been embedded at |root|.
143 // See Embed() on ViewManagerService for more details. |view_manager_service| 145 // See Embed() on ViewManagerService for more details. |window_manager_pipe|
144 // will be a handle back to the view manager service, unless the connection is 146 // is a pipe to the WindowManager.
145 // to the WindowManager in which case it will be null.
146 // |window_manager_pipe| is a pipe to the WindowManager.
147 OnEmbed(uint16 connection_id, 147 OnEmbed(uint16 connection_id,
148 string embedder_url, 148 string embedder_url,
149 ViewData root, 149 ViewData root,
150 ViewManagerService? view_manager_service,
151 ServiceProvider&? services, 150 ServiceProvider&? services,
152 ServiceProvider? exposed_services, 151 ServiceProvider? exposed_services,
153 handle<message_pipe> window_manager_pipe); 152 handle<message_pipe> window_manager_pipe);
154 153
155 // Invoked when the application embedded at |view| is disconnected. 154 // Invoked when the application embedded at |view| is disconnected.
156 OnEmbeddedAppDisconnected(uint32 view); 155 OnEmbeddedAppDisconnected(uint32 view);
157 156
158 // Invoked when a view's bounds have changed. 157 // Invoked when a view's bounds have changed.
159 OnViewBoundsChanged(uint32 view, 158 OnViewBoundsChanged(uint32 view,
160 mojo.Rect old_bounds, 159 mojo.Rect old_bounds,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 // NOTE: This is not invoked if OnViewVisibilityChanged() is invoked. 198 // NOTE: This is not invoked if OnViewVisibilityChanged() is invoked.
200 OnViewDrawnStateChanged(uint32 view, bool drawn); 199 OnViewDrawnStateChanged(uint32 view, bool drawn);
201 200
202 // Invoked when a view property is changed. If this change is a removal, 201 // Invoked when a view property is changed. If this change is a removal,
203 // |new_data| is null. 202 // |new_data| is null.
204 OnViewSharedPropertyChanged(uint32 view, string name, array<uint8>? new_data); 203 OnViewSharedPropertyChanged(uint32 view, string name, array<uint8>? new_data);
205 204
206 // Invoked when an event is targeted at the specified view. 205 // Invoked when an event is targeted at the specified view.
207 OnViewInputEvent(uint32 view, mojo.Event event) => (); 206 OnViewInputEvent(uint32 view, mojo.Event event) => ();
208 }; 207 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698