OLD | NEW |
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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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. |
332 OnEmbed(uint16 connection_id, | 333 OnEmbed(uint16 connection_id, |
333 WindowData root, | 334 WindowData root, |
334 WindowTree? tree, | 335 WindowTree? tree, |
335 int64 display_id, | 336 int64 display_id, |
336 uint32 focused_window, | 337 uint32 focused_window, |
337 bool parent_drawn, | 338 bool parent_drawn, |
338 cc.mojom.FrameSinkId frame_sink_id); | 339 cc.mojom.FrameSinkId frame_sink_id, |
| 340 cc.mojom.LocalSurfaceId? local_surface_id); |
339 | 341 |
340 // Invoked when the application embedded at |window| is disconnected. In other | 342 // 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 | 343 // 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 | 344 // on the connection that created |window| as well as any ancestors that have |
343 // the embed root policy. | 345 // the embed root policy. |
344 OnEmbeddedAppDisconnected(uint32 window); | 346 OnEmbeddedAppDisconnected(uint32 window); |
345 | 347 |
346 // Sent when another connection is embedded in the Window this connection was | 348 // Sent when another connection is embedded in the Window this connection was |
347 // previously embedded in. See Embed() for more information. | 349 // previously embedded in. See Embed() for more information. |
348 OnUnembed(uint32 window); | 350 OnUnembed(uint32 window); |
349 | 351 |
350 // Sent when capture changes. This is not sent if the client initiated the | 352 // Sent when capture changes. This is not sent if the client initiated the |
351 // change. | 353 // change. |
352 OnCaptureChanged(uint32 new_capture, uint32 old_capture); | 354 OnCaptureChanged(uint32 new_capture, uint32 old_capture); |
353 | 355 |
354 // This is called on the owner of a window when it embeds a client in it, | 356 // 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 | 357 // which includes the window manager creating a new window at the request of |
356 // another client. | 358 // another client. |
357 OnFrameSinkIdAllocated(uint32 window, cc.mojom.FrameSinkId frame_sink_id); | 359 OnFrameSinkIdAllocated(uint32 window, cc.mojom.FrameSinkId frame_sink_id); |
358 | 360 |
359 // Called in response to NewTopLevelWindow() successfully completing. | 361 // Called in response to NewTopLevelWindow() successfully completing. |
360 // |parent_drawn| is true if the parent of the window is drawn, see | 362 // |parent_drawn| is true if the parent of the window is drawn, see |
361 // OnDrawnStateChanged() for details. |display_id| identifies the display this | 363 // OnDrawnStateChanged() for details. |display_id| identifies the display this |
362 // window is on. | 364 // window is on. |
363 OnTopLevelCreated(uint32 change_id, | 365 OnTopLevelCreated(uint32 change_id, |
364 WindowData data, | 366 WindowData data, |
365 int64 display_id, | 367 int64 display_id, |
366 bool parent_drawn, | 368 bool parent_drawn, |
367 cc.mojom.FrameSinkId frame_sink_id); | 369 cc.mojom.FrameSinkId frame_sink_id, |
| 370 cc.mojom.LocalSurfaceId? local_surface_id); |
368 | 371 |
369 // Invoked when a window's bounds have changed. Only the client embedded in | 372 // Invoked when a window's bounds have changed. Only the client embedded in |
370 // |window| gets a non_empty |local_surface_id|. | 373 // |window| gets a non_empty |local_surface_id|. |
371 OnWindowBoundsChanged(uint32 window, | 374 OnWindowBoundsChanged(uint32 window, |
372 gfx.mojom.Rect old_bounds, | 375 gfx.mojom.Rect old_bounds, |
373 gfx.mojom.Rect new_bounds, | 376 gfx.mojom.Rect new_bounds, |
374 cc.mojom.LocalSurfaceId? local_surface_id); | 377 cc.mojom.LocalSurfaceId? local_surface_id); |
375 | 378 |
376 OnClientAreaChanged(uint32 window_id, | 379 OnClientAreaChanged(uint32 window_id, |
377 gfx.mojom.Insets new_client_area, | 380 gfx.mojom.Insets new_client_area, |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 // See description of WindowManager for details. | 528 // See description of WindowManager for details. |
526 GetWindowManager(associated WindowManager& internal); | 529 GetWindowManager(associated WindowManager& internal); |
527 }; | 530 }; |
528 | 531 |
529 // Mus provides this interface as a way for clients to connect and obtain a | 532 // Mus provides this interface as a way for clients to connect and obtain a |
530 // WindowTree handle with a supplied WindowTreeClient handle. The | 533 // WindowTree handle with a supplied WindowTreeClient handle. The |
531 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. | 534 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. |
532 interface WindowTreeFactory { | 535 interface WindowTreeFactory { |
533 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); | 536 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); |
534 }; | 537 }; |
OLD | NEW |