Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(934)

Side by Side Diff: services/ui/public/interfaces/window_tree.mojom

Issue 2349973010: mus drag and drop: return the completed effect to the caller. (Closed)
Patch Set: Rename some effect_taken to action_taken for consistency. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « services/ui/public/cpp/window_tree_client.cc ('k') | services/ui/ws/drag_controller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 };
OLDNEW
« no previous file with comments | « services/ui/public/cpp/window_tree_client.cc ('k') | services/ui/ws/drag_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698