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

Unified Diff: services/ui/public/cpp/window.h

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.h
diff --git a/services/ui/public/cpp/window.h b/services/ui/public/cpp/window.h
index c781c37d600a05d13eb37fdbda21cad754383885..e33c3bde212e3f68658360fe9a770ebd605ec0ef 100644
--- a/services/ui/public/cpp/window.h
+++ b/services/ui/public/cpp/window.h
@@ -243,6 +243,9 @@ class Window {
const SkBitmap& bitmap,
const base::Callback<void(bool, uint32_t)>& callback);
+ // Cancels the in progress drag started with PerformDragDrop().
+ void CancelDragDrop();
+
// Tells the window manager to take control of moving the window. Returns
// true if the move wasn't canceled.
void PerformWindowMove(mojom::MoveLoopSource source,

Powered by Google App Engine
This is Rietveld 408576698