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_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 Loading... |
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); |
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 18 matching lines...) Expand all Loading... |
346 OnEmbeddedAppDisconnected(uint32 window); | 350 OnEmbeddedAppDisconnected(uint32 window); |
347 | 351 |
348 // Sent when another connection is embedded in the Window this connection was | 352 // Sent when another connection is embedded in the Window this connection was |
349 // previously embedded in. See Embed() for more information. | 353 // previously embedded in. See Embed() for more information. |
350 OnUnembed(uint32 window); | 354 OnUnembed(uint32 window); |
351 | 355 |
352 // Sent when capture changes. This is not sent if the client initiated the | 356 // Sent when capture changes. This is not sent if the client initiated the |
353 // change. | 357 // change. |
354 OnCaptureChanged(uint32 new_capture, uint32 old_capture); | 358 OnCaptureChanged(uint32 new_capture, uint32 old_capture); |
355 | 359 |
356 // This is called on the owner of a window when it embeds a client in it, | 360 // This is called in response to GetFrameSinkId(), or on the owner of a window |
357 // which includes the window manager creating a new window at the request of | 361 // when it embeds a client in it, which includes the window manager creating |
358 // another client. | 362 // a new window at the request of another client. |
359 OnFrameSinkIdAllocated(uint32 window, cc.mojom.FrameSinkId frame_sink_id); | 363 OnFrameSinkIdAllocated(uint32 window, cc.mojom.FrameSinkId frame_sink_id); |
360 | 364 |
361 // Called in response to NewTopLevelWindow() successfully completing. | 365 // Called in response to NewTopLevelWindow() successfully completing. |
362 // |parent_drawn| is true if the parent of the window is drawn, see | 366 // |parent_drawn| is true if the parent of the window is drawn, see |
363 // OnDrawnStateChanged() for details. |display_id| identifies the display this | 367 // OnDrawnStateChanged() for details. |display_id| identifies the display this |
364 // window is on. |frame_sink_id| uniquely identifies the client in the display | 368 // window is on. |frame_sink_id| uniquely identifies the client in the display |
365 // compositor. If the top level window has a size, |local_surface_id| | 369 // compositor. If the top level window has a size, |local_surface_id| |
366 // identifies the ID to use to submit CompositorFrames. | 370 // identifies the ID to use to submit CompositorFrames. |
367 OnTopLevelCreated(uint32 change_id, | 371 OnTopLevelCreated(uint32 change_id, |
368 WindowData data, | 372 WindowData data, |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 // See description of WindowManager for details. | 534 // See description of WindowManager for details. |
531 GetWindowManager(associated WindowManager& internal); | 535 GetWindowManager(associated WindowManager& internal); |
532 }; | 536 }; |
533 | 537 |
534 // Mus provides this interface as a way for clients to connect and obtain a | 538 // Mus provides this interface as a way for clients to connect and obtain a |
535 // WindowTree handle with a supplied WindowTreeClient handle. The | 539 // WindowTree handle with a supplied WindowTreeClient handle. The |
536 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. | 540 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. |
537 interface WindowTreeFactory { | 541 interface WindowTreeFactory { |
538 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); | 542 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); |
539 }; | 543 }; |
OLD | NEW |