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

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

Issue 2778363002: Mus-WS / Aura-Mus: Propagate LocalSurfaceId on WindowTreeHost creation (Closed)
Patch Set: Add comments Created 3 years, 8 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
« no previous file with comments | « services/ui/public/interfaces/window_manager.mojom ('k') | services/ui/ws/test_utils.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 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_info.mojom"; 10 import "cc/ipc/surface_info.mojom";
10 import "cc/ipc/mojo_compositor_frame_sink.mojom"; 11 import "cc/ipc/mojo_compositor_frame_sink.mojom";
11 import "services/ui/public/interfaces/cursor.mojom"; 12 import "services/ui/public/interfaces/cursor.mojom";
12 import "services/ui/public/interfaces/event_matcher.mojom"; 13 import "services/ui/public/interfaces/event_matcher.mojom";
13 import "services/ui/public/interfaces/mus_constants.mojom"; 14 import "services/ui/public/interfaces/mus_constants.mojom";
14 import "services/ui/public/interfaces/window_manager.mojom"; 15 import "services/ui/public/interfaces/window_manager.mojom";
15 import "services/ui/public/interfaces/window_manager_constants.mojom"; 16 import "services/ui/public/interfaces/window_manager_constants.mojom";
16 import "services/ui/public/interfaces/window_tree_constants.mojom"; 17 import "services/ui/public/interfaces/window_tree_constants.mojom";
17 import "skia/public/interfaces/bitmap.mojom"; 18 import "skia/public/interfaces/bitmap.mojom";
18 import "ui/base/mojo/ui_base_types.mojom"; 19 import "ui/base/mojo/ui_base_types.mojom";
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 // Changes to windows are not sent to the connection that originated the 322 // Changes to windows are not sent to the connection that originated the
322 // change. For example, if connection 1 changes the bounds of a window by 323 // change. For example, if connection 1 changes the bounds of a window by
323 // calling SetWindowBounds(), connection 1 does not receive 324 // calling SetWindowBounds(), connection 1 does not receive
324 // OnWindowBoundsChanged(). 325 // OnWindowBoundsChanged().
325 interface WindowTreeClient { 326 interface WindowTreeClient {
326 // Invoked when the client application has been embedded at |root|. 327 // Invoked when the client application has been embedded at |root|.
327 // See Embed() on WindowTree for more details. |tree| will be a handle back to 328 // See Embed() on WindowTree for more details. |tree| will be a handle back to
328 // the window manager service, unless the connection is to the root connection 329 // the window manager service, unless the connection is to the root connection
329 // in which case it will be null. |parent_drawn| is true if roots parent is 330 // in which case it will be null. |parent_drawn| is true if roots parent is
330 // drawn, see OnParentDrawnStateChanged() for details. |display_id| identifies 331 // drawn, see OnParentDrawnStateChanged() for details. |display_id| identifies
331 // the display this root window is on. 332 // the display this root window is on. |frame_sink_id| uniquely identifies the
333 // client in the display compositor. If the embedded window has a size,
334 // |local_surface_id| identifies the ID to use to submit CompositorFrames.
332 OnEmbed(uint16 connection_id, 335 OnEmbed(uint16 connection_id,
333 WindowData root, 336 WindowData root,
334 WindowTree? tree, 337 WindowTree? tree,
335 int64 display_id, 338 int64 display_id,
336 uint32 focused_window, 339 uint32 focused_window,
337 bool parent_drawn, 340 bool parent_drawn,
338 cc.mojom.FrameSinkId frame_sink_id); 341 cc.mojom.FrameSinkId frame_sink_id,
342 cc.mojom.LocalSurfaceId? local_surface_id);
339 343
340 // Invoked when the application embedded at |window| is disconnected. In other 344 // Invoked when the application embedded at |window| is disconnected. In other
341 // words the embedded app closes the connection to the server. This is called 345 // words the embedded app closes the connection to the server. This is called
342 // on the connection that created |window| as well as any ancestors that have 346 // on the connection that created |window| as well as any ancestors that have
343 // the embed root policy. 347 // the embed root policy.
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 on the owner of a window when it embeds a client in it,
355 // which includes the window manager creating a new window at the request of 359 // which includes the window manager creating a new window at the request of
356 // another client. 360 // 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. 366 // window is on. |frame_sink_id| uniquely identifies the client in the display
367 // compositor. If the top level window has a size, |local_surface_id|
368 // identifies the ID to use to submit CompositorFrames.
363 OnTopLevelCreated(uint32 change_id, 369 OnTopLevelCreated(uint32 change_id,
364 WindowData data, 370 WindowData data,
365 int64 display_id, 371 int64 display_id,
366 bool parent_drawn, 372 bool parent_drawn,
367 cc.mojom.FrameSinkId frame_sink_id); 373 cc.mojom.FrameSinkId frame_sink_id,
374 cc.mojom.LocalSurfaceId? local_surface_id);
368 375
369 // Invoked when a window's bounds have changed. Only the client embedded in 376 // Invoked when a window's bounds have changed. Only the client embedded in
370 // |window| gets a non_empty |local_surface_id|. 377 // |window| gets a non_empty |local_surface_id|.
371 OnWindowBoundsChanged(uint32 window, 378 OnWindowBoundsChanged(uint32 window,
372 gfx.mojom.Rect old_bounds, 379 gfx.mojom.Rect old_bounds,
373 gfx.mojom.Rect new_bounds, 380 gfx.mojom.Rect new_bounds,
374 cc.mojom.LocalSurfaceId? local_surface_id); 381 cc.mojom.LocalSurfaceId? local_surface_id);
375 382
376 OnClientAreaChanged(uint32 window_id, 383 OnClientAreaChanged(uint32 window_id,
377 gfx.mojom.Insets new_client_area, 384 gfx.mojom.Insets new_client_area,
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 // See description of WindowManager for details. 532 // See description of WindowManager for details.
526 GetWindowManager(associated WindowManager& internal); 533 GetWindowManager(associated WindowManager& internal);
527 }; 534 };
528 535
529 // Mus provides this interface as a way for clients to connect and obtain a 536 // Mus provides this interface as a way for clients to connect and obtain a
530 // WindowTree handle with a supplied WindowTreeClient handle. The 537 // WindowTree handle with a supplied WindowTreeClient handle. The
531 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. 538 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one.
532 interface WindowTreeFactory { 539 interface WindowTreeFactory {
533 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); 540 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client);
534 }; 541 };
OLDNEW
« no previous file with comments | « services/ui/public/interfaces/window_manager.mojom ('k') | services/ui/ws/test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698