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

Unified Diff: services/ui/ws/event_dispatcher.cc

Issue 2352233002: mus drag and drop: Add API to let the client cancel the drag. (Closed)
Patch Set: A bunch of dvlogs 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/ui/ws/event_dispatcher.h ('k') | services/ui/ws/window_manager_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/event_dispatcher.cc
diff --git a/services/ui/ws/event_dispatcher.cc b/services/ui/ws/event_dispatcher.cc
index a917e9065c870ea12ee50a7433baf02543cd0d09..fb554ee13af9bfd85138d69f8f0cd8ed26992040 100644
--- a/services/ui/ws/event_dispatcher.cc
+++ b/services/ui/ws/event_dispatcher.cc
@@ -176,6 +176,11 @@ void EventDispatcher::SetDragDropSourceWindow(
std::move(mime_data), drag_operations);
}
+void EventDispatcher::CancelDragDrop() {
+ if (drag_controller_)
+ drag_controller_->Cancel();
+}
+
void EventDispatcher::EndDragDrop() {
drag_controller_.reset();
}
« no previous file with comments | « services/ui/ws/event_dispatcher.h ('k') | services/ui/ws/window_manager_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698