| 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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 // Tells the window manager to cancel any in progress window move started with | 278 // Tells the window manager to cancel any in progress window move started with |
| 279 // StartWindowMove() and to revert the window bounds to how they were. | 279 // StartWindowMove() and to revert the window bounds to how they were. |
| 280 CancelWindowMove(uint32 window_id); | 280 CancelWindowMove(uint32 window_id); |
| 281 | 281 |
| 282 // Called by the client to start a drag operation. |source_window_id| is the | 282 // Called by the client to start a drag operation. |source_window_id| is the |
| 283 // source window, |drag_data| is the entire set of mime to raw data | 283 // source window, |drag_data| is the entire set of mime to raw data |
| 284 // mapping. We send this during the start of the drag because most views | 284 // mapping. We send this during the start of the drag because most views |
| 285 // clients will try to read all this data on first entry. | 285 // clients will try to read all this data on first entry. |
| 286 PerformDragDrop(uint32 change_id, | 286 PerformDragDrop(uint32 change_id, |
| 287 uint32 source_window_id, | 287 uint32 source_window_id, |
| 288 int32 drag_pointer, | |
| 289 map<string, array<uint8>> drag_data, | 288 map<string, array<uint8>> drag_data, |
| 290 uint32 drag_operation); | 289 uint32 drag_operation); |
| 291 | 290 |
| 292 // Called by the client to cancel any in progress drag drop operation. This | 291 // Called by the client to cancel any in progress drag drop operation. This |
| 293 // will result in a change completed for the underlying change. | 292 // will result in a change completed for the underlying change. |
| 294 CancelDragDrop(uint32 window_id); | 293 CancelDragDrop(uint32 window_id); |
| 295 }; | 294 }; |
| 296 | 295 |
| 297 // Changes to windows are not sent to the connection that originated the | 296 // Changes to windows are not sent to the connection that originated the |
| 298 // change. For example, if connection 1 changes the bounds of a window by | 297 // change. For example, if connection 1 changes the bounds of a window by |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 476 // See description of WindowManager for details. | 475 // See description of WindowManager for details. |
| 477 GetWindowManager(associated WindowManager& internal); | 476 GetWindowManager(associated WindowManager& internal); |
| 478 }; | 477 }; |
| 479 | 478 |
| 480 // Mus provides this interface as a way for clients to connect and obtain a | 479 // Mus provides this interface as a way for clients to connect and obtain a |
| 481 // WindowTree handle with a supplied WindowTreeClient handle. The | 480 // WindowTree handle with a supplied WindowTreeClient handle. The |
| 482 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. | 481 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. |
| 483 interface WindowTreeFactory { | 482 interface WindowTreeFactory { |
| 484 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); | 483 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); |
| 485 }; | 484 }; |
| OLD | NEW |