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

Side by Side Diff: mojo/services/public/interfaces/view_manager/view_manager.mojom

Issue 534843002: Convert view manager to surfaces with uploading shim in client lib (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove overzealous shutdown check in cc/surfaces, add NON_EXPORTED_BASE for windows build, saturate… Created 6 years, 3 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 import "mojo/public/interfaces/application/service_provider.mojom" 5 import "mojo/public/interfaces/application/service_provider.mojom"
6 import "mojo/services/public/interfaces/geometry/geometry.mojom" 6 import "mojo/services/public/interfaces/geometry/geometry.mojom"
7 import "mojo/services/public/interfaces/input_events/input_events.mojom" 7 import "mojo/services/public/interfaces/input_events/input_events.mojom"
8 import "mojo/services/public/interfaces/surfaces/surface_id.mojom"
8 import "mojo/services/public/interfaces/view_manager/view_manager_constants.mojo m" 9 import "mojo/services/public/interfaces/view_manager/view_manager_constants.mojo m"
9 10
10 module mojo { 11 module mojo {
11 12
12 struct ViewData { 13 struct ViewData {
13 uint32 parent_id; 14 uint32 parent_id;
14 uint32 view_id; 15 uint32 view_id;
15 mojo.Rect bounds; 16 mojo.Rect bounds;
16 // True if this view is visible. The view may not be drawn on screen (see 17 // True if this view is visible. The view may not be drawn on screen (see
17 // drawn for specifics). 18 // drawn for specifics).
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 ReorderView(uint32 view_id, 99 ReorderView(uint32 view_id,
99 uint32 relative_view_id, 100 uint32 relative_view_id,
100 OrderDirection direction) => (bool success); 101 OrderDirection direction) => (bool success);
101 102
102 // Returns the views comprising the tree starting at |view_id|. |view_id| is 103 // Returns the views comprising the tree starting at |view_id|. |view_id| is
103 // the first result in the return value, unless |view_id| is invalid, in which 104 // the first result in the return value, unless |view_id| is invalid, in which
104 // case an empty vector is returned. The views are visited using a depth first 105 // case an empty vector is returned. The views are visited using a depth first
105 // search (pre-order). 106 // search (pre-order).
106 GetViewTree(uint32 view_id) => (ViewData[] views); 107 GetViewTree(uint32 view_id) => (ViewData[] views);
107 108
108 // Shows the specified image (png encoded) in the specified view. 109 // Shows the surface in the specified view.
109 SetViewContents(uint32 view_id, 110 SetViewSurfaceId(uint32 view_id, SurfaceId surface_id) => (bool success);
110 handle<shared_buffer> buffer,
111 uint32 buffer_size) => (bool success);
112 111
113 // Embeds the app for |url| in the specified view. More specifically this 112 // Embeds the app for |url| in the specified view. More specifically this
114 // creates a new connection to the specified url, expecting to get a 113 // creates a new connection to the specified url, expecting to get a
115 // ViewManagerClient and configures it with the root view |view|. Fails 114 // ViewManagerClient and configures it with the root view |view|. Fails
116 // if |view| was not created by this connection. 115 // if |view| was not created by this connection.
117 // 116 //
118 // A view may only be a root of one connection at a time. Subsequent calls to 117 // A view may only be a root of one connection at a time. Subsequent calls to
119 // Embed() for the same view result in the view being removed from the 118 // Embed() for the same view result in the view being removed from the
120 // current connection. The current connection is told this by way of 119 // current connection. The current connection is told this by way of
121 // OnViewDeleted(). 120 // OnViewDeleted().
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 // once support for derived FIFOs is landed. 205 // once support for derived FIFOs is landed.
207 206
208 // Requests the window manager create a "top level" view embedding |url|. 207 // Requests the window manager create a "top level" view embedding |url|.
209 Embed(string url, ServiceProvider&? service_provider); 208 Embed(string url, ServiceProvider&? service_provider);
210 209
211 // Requests the view manager dispatch the event. 210 // Requests the view manager dispatch the event.
212 DispatchOnViewInputEvent(mojo.Event event); 211 DispatchOnViewInputEvent(mojo.Event event);
213 }; 212 };
214 213
215 } 214 }
OLDNEW
« no previous file with comments | « mojo/services/public/interfaces/view_manager/BUILD.gn ('k') | mojo/services/surfaces/surfaces_service_application.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698