| 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/surface_id.mojom"; | 7 import "cc/ipc/surface_id.mojom"; |
| 8 import "services/ui/public/interfaces/cursor.mojom"; | 8 import "services/ui/public/interfaces/cursor.mojom"; |
| 9 import "services/ui/public/interfaces/event_matcher.mojom"; | 9 import "services/ui/public/interfaces/event_matcher.mojom"; |
| 10 import "services/ui/public/interfaces/mus_constants.mojom"; | 10 import "services/ui/public/interfaces/mus_constants.mojom"; |
| (...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 443 | 443 |
| 444 // Called when the pointer leaves a window or if the drop is | 444 // Called when the pointer leaves a window or if the drop is |
| 445 // canceled. | 445 // canceled. |
| 446 OnDragLeave(uint32 window); | 446 OnDragLeave(uint32 window); |
| 447 | 447 |
| 448 // Called when the drop occurs on a window. Returns the action | 448 // Called when the drop occurs on a window. Returns the action |
| 449 // taken. | 449 // taken. |
| 450 OnCompleteDrop(uint32 window, | 450 OnCompleteDrop(uint32 window, |
| 451 uint32 key_state, | 451 uint32 key_state, |
| 452 gfx.mojom.Point position, | 452 gfx.mojom.Point position, |
| 453 uint32 effect_bitmask) => (uint32 effect_taken); | 453 uint32 effect_bitmask) => (uint32 action_taken); |
| 454 | 454 |
| 455 // Called after OnDragDrop completes for every connection which received an | 455 // Called on the client that requested PerformDragDrop() to return which drag |
| 456 // OnDragDropStart() message. This signals that a client can forget the | 456 // action was completed. This is called instead of OnChangeCompleted(). |
| 457 OnPerformDragDropCompleted(uint32 window, bool success, uint32 action_taken); |
| 458 |
| 459 // Called after OnCompleteDrop completes for every connection which received |
| 460 // an OnDragDropStart() message. This signals that a client can forget the |
| 457 // |drag_data| passed in via the first message. | 461 // |drag_data| passed in via the first message. |
| 458 OnDragDropDone(); | 462 OnDragDropDone(); |
| 459 | 463 |
| 460 // A change initiated from the client has completed. See description of | 464 // A change initiated from the client has completed. See description of |
| 461 // change ids for details. | 465 // change ids for details. |
| 462 OnChangeCompleted(uint32 change_id, bool success); | 466 OnChangeCompleted(uint32 change_id, bool success); |
| 463 | 467 |
| 464 // The WindowManager is requesting the specified window to close. If the | 468 // The WindowManager is requesting the specified window to close. If the |
| 465 // client allows the change it should delete the window. | 469 // client allows the change it should delete the window. |
| 466 RequestClose(uint32 window_id); | 470 RequestClose(uint32 window_id); |
| 467 | 471 |
| 468 // See description of WindowManager for details. | 472 // See description of WindowManager for details. |
| 469 GetWindowManager(associated WindowManager& internal); | 473 GetWindowManager(associated WindowManager& internal); |
| 470 }; | 474 }; |
| 471 | 475 |
| 472 // Mus provides this interface as a way for clients to connect and obtain a | 476 // Mus provides this interface as a way for clients to connect and obtain a |
| 473 // WindowTree handle with a supplied WindowTreeClient handle. The | 477 // WindowTree handle with a supplied WindowTreeClient handle. The |
| 474 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. | 478 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. |
| 475 interface WindowTreeFactory { | 479 interface WindowTreeFactory { |
| 476 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); | 480 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); |
| 477 }; | 481 }; |
| OLD | NEW |