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/local_surface_id.mojom"; | 8 import "cc/ipc/local_surface_id.mojom"; |
8 import "cc/ipc/surface_info.mojom"; | 9 import "cc/ipc/surface_info.mojom"; |
9 import "cc/ipc/mojo_compositor_frame_sink.mojom"; | 10 import "cc/ipc/mojo_compositor_frame_sink.mojom"; |
10 import "services/ui/public/interfaces/cursor.mojom"; | 11 import "services/ui/public/interfaces/cursor.mojom"; |
11 import "services/ui/public/interfaces/event_matcher.mojom"; | 12 import "services/ui/public/interfaces/event_matcher.mojom"; |
12 import "services/ui/public/interfaces/mus_constants.mojom"; | 13 import "services/ui/public/interfaces/mus_constants.mojom"; |
13 import "services/ui/public/interfaces/window_manager.mojom"; | 14 import "services/ui/public/interfaces/window_manager.mojom"; |
14 import "services/ui/public/interfaces/window_manager_constants.mojom"; | 15 import "services/ui/public/interfaces/window_manager_constants.mojom"; |
15 import "services/ui/public/interfaces/window_tree_constants.mojom"; | 16 import "services/ui/public/interfaces/window_tree_constants.mojom"; |
16 import "ui/base/mojo/ui_base_types.mojom"; | 17 import "ui/base/mojo/ui_base_types.mojom"; |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 // See Embed() on WindowTree for more details. |tree| will be a handle back to | 315 // See Embed() on WindowTree for more details. |tree| will be a handle back to |
315 // the window manager service, unless the connection is to the root connection | 316 // the window manager service, unless the connection is to the root connection |
316 // in which case it will be null. |parent_drawn| is true if roots parent is | 317 // in which case it will be null. |parent_drawn| is true if roots parent is |
317 // drawn, see OnParentDrawnStateChanged() for details. |display_id| identifies | 318 // drawn, see OnParentDrawnStateChanged() for details. |display_id| identifies |
318 // the display this root window is on. | 319 // the display this root window is on. |
319 OnEmbed(uint16 connection_id, | 320 OnEmbed(uint16 connection_id, |
320 WindowData root, | 321 WindowData root, |
321 WindowTree? tree, | 322 WindowTree? tree, |
322 int64 display_id, | 323 int64 display_id, |
323 uint32 focused_window, | 324 uint32 focused_window, |
324 bool parent_drawn); | 325 bool parent_drawn, |
| 326 cc.mojom.FrameSinkId frame_sink_id); |
325 | 327 |
326 // Invoked when the application embedded at |window| is disconnected. In other | 328 // Invoked when the application embedded at |window| is disconnected. In other |
327 // words the embedded app closes the connection to the server. This is called | 329 // words the embedded app closes the connection to the server. This is called |
328 // on the connection that created |window| as well as any ancestors that have | 330 // on the connection that created |window| as well as any ancestors that have |
329 // the embed root policy. | 331 // the embed root policy. |
330 OnEmbeddedAppDisconnected(uint32 window); | 332 OnEmbeddedAppDisconnected(uint32 window); |
331 | 333 |
332 // Sent when another connection is embedded in the Window this connection was | 334 // Sent when another connection is embedded in the Window this connection was |
333 // previously embedded in. See Embed() for more information. | 335 // previously embedded in. See Embed() for more information. |
334 OnUnembed(uint32 window); | 336 OnUnembed(uint32 window); |
335 | 337 |
336 // Sent when capture changes. This is not sent if the client initiated the | 338 // Sent when capture changes. This is not sent if the client initiated the |
337 // change. | 339 // change. |
338 OnCaptureChanged(uint32 new_capture, uint32 old_capture); | 340 OnCaptureChanged(uint32 new_capture, uint32 old_capture); |
339 | 341 |
340 // Called in response to NewTopLevelWindow() successfully completing. | 342 // Called in response to NewTopLevelWindow() successfully completing. |
341 // |parent_drawn| is true if the parent of the window is drawn, see | 343 // |parent_drawn| is true if the parent of the window is drawn, see |
342 // OnDrawnStateChanged() for details. |display_id| identifies the display this | 344 // OnDrawnStateChanged() for details. |display_id| identifies the display this |
343 // window is on. | 345 // window is on. |
344 OnTopLevelCreated(uint32 change_id, | 346 OnTopLevelCreated(uint32 change_id, |
345 WindowData data, | 347 WindowData data, |
346 int64 display_id, | 348 int64 display_id, |
347 bool parent_drawn); | 349 bool parent_drawn, |
| 350 cc.mojom.FrameSinkId frame_sink_id); |
348 | 351 |
349 // Invoked when a window's bounds have changed. Only the client embedded in | 352 // Invoked when a window's bounds have changed. Only the client embedded in |
350 // |window| gets a non_empty |local_surface_id|. | 353 // |window| gets a non_empty |local_surface_id|. |
351 OnWindowBoundsChanged(uint32 window, | 354 OnWindowBoundsChanged(uint32 window, |
352 gfx.mojom.Rect old_bounds, | 355 gfx.mojom.Rect old_bounds, |
353 gfx.mojom.Rect new_bounds, | 356 gfx.mojom.Rect new_bounds, |
354 cc.mojom.LocalSurfaceId? local_surface_id); | 357 cc.mojom.LocalSurfaceId? local_surface_id); |
355 | 358 |
356 OnClientAreaChanged(uint32 window_id, | 359 OnClientAreaChanged(uint32 window_id, |
357 gfx.mojom.Insets new_client_area, | 360 gfx.mojom.Insets new_client_area, |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
505 // See description of WindowManager for details. | 508 // See description of WindowManager for details. |
506 GetWindowManager(associated WindowManager& internal); | 509 GetWindowManager(associated WindowManager& internal); |
507 }; | 510 }; |
508 | 511 |
509 // Mus provides this interface as a way for clients to connect and obtain a | 512 // Mus provides this interface as a way for clients to connect and obtain a |
510 // WindowTree handle with a supplied WindowTreeClient handle. The | 513 // WindowTree handle with a supplied WindowTreeClient handle. The |
511 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. | 514 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. |
512 interface WindowTreeFactory { | 515 interface WindowTreeFactory { |
513 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); | 516 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); |
514 }; | 517 }; |
OLD | NEW |