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

Unified Diff: ui/aura/mus/window_tree_client.cc

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_tree_client.cc
diff --git a/ui/aura/mus/window_tree_client.cc b/ui/aura/mus/window_tree_client.cc
index 8cc1db05aa675fa6f0d90699eb40c0d918828a74..25f8eb517745d0f6f19ce02b4dbc6276f4110b07 100644
--- a/ui/aura/mus/window_tree_client.cc
+++ b/ui/aura/mus/window_tree_client.cc
@@ -1485,6 +1485,36 @@ void WindowTreeClient::WmClientJankinessChanged(ClientSpecificId client_id,
}
}
+void WindowTreeClient::WmBuildDragImage(const gfx::Point& cursor_location,
+ const SkBitmap& drag_image,
+ const gfx::Vector2d& drag_image_offset,
+ ui::mojom::DragEventSource source) {
+ if (!window_manager_delegate_)
+ return;
+
+ window_manager_delegate_->OnWmBuildDragImage(cursor_location, drag_image,
+ drag_image_offset, source);
+}
+
+void WindowTreeClient::WmMoveDragImage(
+ const gfx::Point& cursor_location,
+ const WmMoveDragImageCallback& callback) {
+ if (!window_manager_delegate_) {
+ callback.Run();
+ return;
+ }
+
+ window_manager_delegate_->OnWmMoveDragImage(cursor_location);
+ callback.Run();
+}
+
+void WindowTreeClient::WmDestroyDragImage() {
+ if (!window_manager_delegate_)
+ return;
+
+ window_manager_delegate_->OnWmDestroyDragImage();
+}
+
void WindowTreeClient::WmPerformMoveLoop(uint32_t change_id,
Id window_id,
ui::mojom::MoveLoopSource source,

Powered by Google App Engine
This is Rietveld 408576698