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

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

Issue 2886873002: Only send the FrameSinkId to client when it is necessary (Closed)
Patch Set: Fix build issues 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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 // Changes to windows are not sent to the connection that originated the 320 // 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 321 // change. For example, if connection 1 changes the bounds of a window by
322 // calling SetWindowBounds(), connection 1 does not receive 322 // calling SetWindowBounds(), connection 1 does not receive
323 // OnWindowBoundsChanged(). 323 // OnWindowBoundsChanged().
324 interface WindowTreeClient { 324 interface WindowTreeClient {
325 // Invoked when the client application has been embedded at |root|. 325 // 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 326 // 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 327 // the window manager service, unless the connection is to the root connection
328 // in which case it will be null. |parent_drawn| is true if roots parent is 328 // in which case it will be null. |parent_drawn| is true if roots parent is
329 // drawn, see OnParentDrawnStateChanged() for details. |display_id| identifies 329 // drawn, see OnParentDrawnStateChanged() for details. |display_id| identifies
330 // the display this root window is on. |frame_sink_id| uniquely identifies the 330 // the display this root window is on. If the embedded window has a size,
331 // client in the frame sink manager. If the embedded window has a size,
332 // |local_surface_id| identifies the ID to use to submit CompositorFrames. 331 // |local_surface_id| identifies the ID to use to submit CompositorFrames.
333 OnEmbed(uint16 connection_id, 332 OnEmbed(uint16 connection_id,
334 WindowData root, 333 WindowData root,
335 WindowTree? tree, 334 WindowTree? tree,
336 int64 display_id, 335 int64 display_id,
337 uint32 focused_window, 336 uint32 focused_window,
338 bool parent_drawn, 337 bool parent_drawn,
339 cc.mojom.FrameSinkId frame_sink_id,
340 cc.mojom.LocalSurfaceId? local_surface_id); 338 cc.mojom.LocalSurfaceId? local_surface_id);
341 339
342 // Invoked when the application embedded at |window| is disconnected. In other 340 // Invoked when the application embedded at |window| is disconnected. In other
343 // words the embedded app closes the connection to the server. This is called 341 // words the embedded app closes the connection to the server. This is called
344 // on the connection that created |window| as well as any ancestors that have 342 // on the connection that created |window| as well as any ancestors that have
345 // the embed root policy. 343 // the embed root policy.
346 OnEmbeddedAppDisconnected(uint32 window); 344 OnEmbeddedAppDisconnected(uint32 window);
347 345
348 // Sent when another connection is embedded in the Window this connection was 346 // Sent when another connection is embedded in the Window this connection was
349 // previously embedded in. See Embed() for more information. 347 // previously embedded in. See Embed() for more information.
350 OnUnembed(uint32 window); 348 OnUnembed(uint32 window);
351 349
352 // Sent when capture changes. This is not sent if the client initiated the 350 // Sent when capture changes. This is not sent if the client initiated the
353 // change. 351 // change.
354 OnCaptureChanged(uint32 new_capture, uint32 old_capture); 352 OnCaptureChanged(uint32 new_capture, uint32 old_capture);
355 353
356 // This is called on the owner of a window when it embeds a client in it, 354 // This is called on the owner of a window when it embeds a client in it,
357 // which includes the window manager creating a new window at the request of 355 // which includes the window manager creating a new window at the request of
358 // another client. 356 // another client.
359 OnFrameSinkIdAllocated(uint32 window, cc.mojom.FrameSinkId frame_sink_id); 357 OnFrameSinkIdAllocated(uint32 window, cc.mojom.FrameSinkId frame_sink_id);
360 358
361 // Called in response to NewTopLevelWindow() successfully completing. 359 // Called in response to NewTopLevelWindow() successfully completing.
362 // |parent_drawn| is true if the parent of the window is drawn, see 360 // |parent_drawn| is true if the parent of the window is drawn, see
363 // OnDrawnStateChanged() for details. |display_id| identifies the display this 361 // OnDrawnStateChanged() for details. |display_id| identifies the display this
364 // window is on. |frame_sink_id| uniquely identifies the client in the display 362 // window is on. If the top level window has a size, |local_surface_id|
365 // compositor. If the top level window has a size, |local_surface_id|
366 // identifies the ID to use to submit CompositorFrames. 363 // identifies the ID to use to submit CompositorFrames.
367 OnTopLevelCreated(uint32 change_id, 364 OnTopLevelCreated(uint32 change_id,
368 WindowData data, 365 WindowData data,
369 int64 display_id, 366 int64 display_id,
370 bool parent_drawn, 367 bool parent_drawn,
371 cc.mojom.FrameSinkId frame_sink_id,
372 cc.mojom.LocalSurfaceId? local_surface_id); 368 cc.mojom.LocalSurfaceId? local_surface_id);
373 369
374 // Invoked when a window's bounds have changed. Only the client embedded in 370 // Invoked when a window's bounds have changed. Only the client embedded in
375 // |window| gets a non_empty |local_surface_id|. 371 // |window| gets a non_empty |local_surface_id|.
376 OnWindowBoundsChanged(uint32 window, 372 OnWindowBoundsChanged(uint32 window,
377 gfx.mojom.Rect old_bounds, 373 gfx.mojom.Rect old_bounds,
378 gfx.mojom.Rect new_bounds, 374 gfx.mojom.Rect new_bounds,
379 cc.mojom.LocalSurfaceId? local_surface_id); 375 cc.mojom.LocalSurfaceId? local_surface_id);
380 376
381 OnClientAreaChanged(uint32 window_id, 377 OnClientAreaChanged(uint32 window_id,
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 // See description of WindowManager for details. 526 // See description of WindowManager for details.
531 GetWindowManager(associated WindowManager& internal); 527 GetWindowManager(associated WindowManager& internal);
532 }; 528 };
533 529
534 // Mus provides this interface as a way for clients to connect and obtain a 530 // Mus provides this interface as a way for clients to connect and obtain a
535 // WindowTree handle with a supplied WindowTreeClient handle. The 531 // WindowTree handle with a supplied WindowTreeClient handle. The
536 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. 532 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one.
537 interface WindowTreeFactory { 533 interface WindowTreeFactory {
538 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); 534 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client);
539 }; 535 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698