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

Unified Diff: ui/aura/mus/window_manager_delegate.h

Issue 2764963003: aura-mus: add a drag representation image. (Closed)
Patch Set: Patch cleanup. Created 3 years, 9 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: ui/aura/mus/window_manager_delegate.h
diff --git a/ui/aura/mus/window_manager_delegate.h b/ui/aura/mus/window_manager_delegate.h
index 3558795f4316c0caa3ea19b29a3b3f8b3f7ae389..dc7853b0b13a590779c79a4f3b978099c80a1619 100644
--- a/ui/aura/mus/window_manager_delegate.h
+++ b/ui/aura/mus/window_manager_delegate.h
@@ -117,6 +117,21 @@ class AURA_EXPORT WindowManagerDelegate {
const std::set<Window*>& client_windows,
bool janky) = 0;
+ // Called when a Mus client has started a drag, and wants this image to be
+ // the drag representation.
+ virtual void OnWmBuildDragImage(const gfx::Point& cursor_location,
+ const SkBitmap& drag_image,
+ const gfx::Vector2d& drag_image_offset,
+ ui::mojom::DragEventSource source) = 0;
+
+ // Called during drags when the drag location has changed and the drag
+ // representation must be moved.
+ virtual void OnWmMoveDragImage(const gfx::Point& cursor_location) = 0;
+
+ // Called when a drag is complete or canceled, and signals that the drag image
+ // should be removed.
+ virtual void OnWmDestroyDragImage() = 0;
+
// When a new display is added OnWmWillCreateDisplay() is called, and then
// OnWmNewDisplay(). OnWmWillCreateDisplay() is intended to add the display
// to the set of displays (see Screen).

Powered by Google App Engine
This is Rietveld 408576698