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

Unified Diff: services/ui/public/cpp/window_tree_client.cc

Issue 2352233002: mus drag and drop: Add API to let the client cancel the drag. (Closed)
Patch Set: Oops. Forgot the client lib side. 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
Index: services/ui/public/cpp/window_tree_client.cc
diff --git a/services/ui/public/cpp/window_tree_client.cc b/services/ui/public/cpp/window_tree_client.cc
index 016e5d8cb0f017e1a4eb9ce12917bc9471ba7175..2a779bc0bdc1e89cd00c29f92f01fe348f3978ce 100644
--- a/services/ui/public/cpp/window_tree_client.cc
+++ b/services/ui/public/cpp/window_tree_client.cc
@@ -674,6 +674,10 @@ void WindowTreeClient::PerformDragDrop(
drag_operation);
}
+void WindowTreeClient::CancelDragDrop(Window* window) {
+ tree_->CancelDragDrop(window->server_id());
sky 2016/09/21 20:40:56 Please add a comment that cleanup is done when ser
+}
+
void WindowTreeClient::PerformWindowMove(
Window* window,
ui::mojom::MoveLoopSource source,

Powered by Google App Engine
This is Rietveld 408576698