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

Side by Side Diff: components/mus/public/interfaces/window_tree.mojom

Issue 1484533002: mus: Introduce AttachSurface to allow creating Surface prior to OnEmbed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Sadrul's comments Created 5 years 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
« no previous file with comments | « components/mus/public/cpp/window_surface.h ('k') | components/mus/ws/window_tree_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 mus.mojom; 5 module mus.mojom;
6 6
7 import "components/mus/public/interfaces/compositor_frame.mojom"; 7 import "components/mus/public/interfaces/compositor_frame.mojom";
8 import "components/mus/public/interfaces/input_events.mojom"; 8 import "components/mus/public/interfaces/input_events.mojom";
9 import "components/mus/public/interfaces/mus_constants.mojom"; 9 import "components/mus/public/interfaces/mus_constants.mojom";
10 import "components/mus/public/interfaces/surface_id.mojom"; 10 import "components/mus/public/interfaces/surface_id.mojom";
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // as any of their roots. 108 // as any of their roots.
109 SetWindowVisibility(uint32 window_id, bool visible) => (bool success); 109 SetWindowVisibility(uint32 window_id, bool visible) => (bool success);
110 110
111 // Sets an individual named property. Setting an individual property to null 111 // Sets an individual named property. Setting an individual property to null
112 // deletes the property. 112 // deletes the property.
113 SetWindowProperty(uint32 change_id, 113 SetWindowProperty(uint32 change_id,
114 uint32 window_id, 114 uint32 window_id,
115 string name, 115 string name,
116 array<uint8>? value); 116 array<uint8>? value);
117 117
118 // Requests a Surface for a particular window. 118 // Attaches a Surface to a particular window.
119 RequestSurface(uint32 window_id, 119 AttachSurface(uint32 window_id,
120 SurfaceType type, 120 SurfaceType type,
121 Surface& surface, 121 Surface& surface,
122 SurfaceClient client); 122 SurfaceClient client);
123 123
124 // Reparents a window. 124 // Reparents a window.
125 // This fails for any of the following reasons: 125 // This fails for any of the following reasons:
126 // . |parent| or |child| does not identify a valid window. 126 // . |parent| or |child| does not identify a valid window.
127 // . |child| is an ancestor of |parent|. 127 // . |child| is an ancestor of |parent|.
128 // . |child| is already a child of |parent|. 128 // . |child| is already a child of |parent|.
129 // 129 //
130 // This may result in a connection getting OnWindowDeleted(). See 130 // This may result in a connection getting OnWindowDeleted(). See
131 // RemoveWindowFromParent for details. 131 // RemoveWindowFromParent for details.
132 AddWindow(uint32 parent, uint32 child) => (bool success); 132 AddWindow(uint32 parent, uint32 child) => (bool success);
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 // WindowManager interface once we get associated interfaces. 319 // WindowManager interface once we get associated interfaces.
320 320
321 // Calls to SetWindowBounds() for windows owned by the window manager end up 321 // Calls to SetWindowBounds() for windows owned by the window manager end up
322 // here. The window manager should reply with WmResponse() as appropriate. 322 // here. The window manager should reply with WmResponse() as appropriate.
323 WmSetBounds(uint32 change_id, uint32 window_id, mojo.Rect bounds); 323 WmSetBounds(uint32 change_id, uint32 window_id, mojo.Rect bounds);
324 WmSetProperty(uint32 change_id, 324 WmSetProperty(uint32 change_id,
325 uint32 window_id, 325 uint32 window_id,
326 string name, 326 string name,
327 array<uint8>? value); 327 array<uint8>? value);
328 }; 328 };
OLDNEW
« no previous file with comments | « components/mus/public/cpp/window_surface.h ('k') | components/mus/ws/window_tree_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698