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

Side by Side Diff: services/ui/public/interfaces/window_tree.mojom

Issue 2875753002: Implement aura::WindowPortMus::CreateCompositorFrameSink() (Closed)
Patch Set: Rebase Created 3 years, 7 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 ui.mojom; 5 module ui.mojom;
6 6
7 import "cc/ipc/frame_sink_id.mojom"; 7 import "cc/ipc/frame_sink_id.mojom";
8 import "cc/ipc/local_surface_id.mojom"; 8 import "cc/ipc/local_surface_id.mojom";
9 import "cc/ipc/surface_id.mojom"; 9 import "cc/ipc/surface_id.mojom";
10 import "cc/ipc/surface_info.mojom"; 10 import "cc/ipc/surface_info.mojom";
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 gfx.mojom.Point screen_location, 308 gfx.mojom.Point screen_location,
309 map<string, array<uint8>> drag_data, 309 map<string, array<uint8>> drag_data,
310 skia.mojom.Bitmap? drag_image, 310 skia.mojom.Bitmap? drag_image,
311 gfx.mojom.Vector2d drag_image_offset, 311 gfx.mojom.Vector2d drag_image_offset,
312 uint32 drag_operation, 312 uint32 drag_operation,
313 PointerKind source); 313 PointerKind source);
314 314
315 // Called by the client to cancel any in progress drag drop operation. This 315 // Called by the client to cancel any in progress drag drop operation. This
316 // will result in a change completed for the underlying change. 316 // will result in a change completed for the underlying change.
317 CancelDragDrop(uint32 window_id); 317 CancelDragDrop(uint32 window_id);
318
319 // Get the FrameSinkId for the given window_id. The OnFrameSinkIdAllocated()
320 // will be called with the FrameSinkId.
321 GetFrameSinkId(uint32 window_id);
Fady Samuel 2017/05/18 16:48:51 Who calls this? The embedder? And then the embedde
Peng 2017/05/18 19:37:59 Removed, since the SurfaceInfo will be send to cli
318 }; 322 };
319 323
320 // Changes to windows are not sent to the connection that originated the 324 // Changes to windows are not sent to the connection that originated the
321 // change. For example, if connection 1 changes the bounds of a window by 325 // change. For example, if connection 1 changes the bounds of a window by
322 // calling SetWindowBounds(), connection 1 does not receive 326 // calling SetWindowBounds(), connection 1 does not receive
323 // OnWindowBoundsChanged(). 327 // OnWindowBoundsChanged().
324 interface WindowTreeClient { 328 interface WindowTreeClient {
325 // Invoked when the client application has been embedded at |root|. 329 // Invoked when the client application has been embedded at |root|.
326 // See Embed() on WindowTree for more details. |tree| will be a handle back to 330 // See Embed() on WindowTree for more details. |tree| will be a handle back to
327 // the window manager service, unless the connection is to the root connection 331 // the window manager service, unless the connection is to the root connection
(...skipping 16 matching lines...) Expand all
344 OnEmbeddedAppDisconnected(uint32 window); 348 OnEmbeddedAppDisconnected(uint32 window);
345 349
346 // Sent when another connection is embedded in the Window this connection was 350 // Sent when another connection is embedded in the Window this connection was
347 // previously embedded in. See Embed() for more information. 351 // previously embedded in. See Embed() for more information.
348 OnUnembed(uint32 window); 352 OnUnembed(uint32 window);
349 353
350 // Sent when capture changes. This is not sent if the client initiated the 354 // Sent when capture changes. This is not sent if the client initiated the
351 // change. 355 // change.
352 OnCaptureChanged(uint32 new_capture, uint32 old_capture); 356 OnCaptureChanged(uint32 new_capture, uint32 old_capture);
353 357
354 // This is called on the owner of a window when it embeds a client in it, 358 // This is called in response to GetFrameSinkId(), or on the owner of a window
355 // which includes the window manager creating a new window at the request of 359 // when it embeds a client in it, which includes the window manager creating
356 // another client. 360 // a new window at the request of another client.
357 OnFrameSinkIdAllocated(uint32 window, cc.mojom.FrameSinkId frame_sink_id); 361 OnFrameSinkIdAllocated(uint32 window, cc.mojom.FrameSinkId frame_sink_id);
358 362
359 // Called in response to NewTopLevelWindow() successfully completing. 363 // Called in response to NewTopLevelWindow() successfully completing.
360 // |parent_drawn| is true if the parent of the window is drawn, see 364 // |parent_drawn| is true if the parent of the window is drawn, see
361 // OnDrawnStateChanged() for details. |display_id| identifies the display this 365 // OnDrawnStateChanged() for details. |display_id| identifies the display this
362 // window is on. If the top level window has a size, |local_surface_id| 366 // window is on. If the top level window has a size, |local_surface_id|
363 // identifies the ID to use to submit CompositorFrames. 367 // identifies the ID to use to submit CompositorFrames.
364 OnTopLevelCreated(uint32 change_id, 368 OnTopLevelCreated(uint32 change_id,
365 WindowData data, 369 WindowData data,
366 int64 display_id, 370 int64 display_id,
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 // See description of WindowManager for details. 530 // See description of WindowManager for details.
527 GetWindowManager(associated WindowManager& internal); 531 GetWindowManager(associated WindowManager& internal);
528 }; 532 };
529 533
530 // Mus provides this interface as a way for clients to connect and obtain a 534 // Mus provides this interface as a way for clients to connect and obtain a
531 // WindowTree handle with a supplied WindowTreeClient handle. The 535 // WindowTree handle with a supplied WindowTreeClient handle. The
532 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. 536 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one.
533 interface WindowTreeFactory { 537 interface WindowTreeFactory {
534 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); 538 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client);
535 }; 539 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698