Commit 205ec90e authored by Oliver Renault's avatar Oliver Renault Committed by Commit Bot

[Mac] Fix cursor when dropping to desktop

Allow mouse cursor to be a green plus when dropping items to desktop

Bug: 905238
Change-Id: I90a6f7156e681271f577f1f604f1d75ada4beba2
Reviewed-on: https://chromium-review.googlesource.com/c/1334994Reviewed-by: default avatarAvi Drissman <avi@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#609410}
parent 7138e978
...@@ -172,7 +172,8 @@ void WebContentsViewMac::StartDragging( ...@@ -172,7 +172,8 @@ void WebContentsViewMac::StartDragging(
// The drag invokes a nested event loop, arrange to continue // The drag invokes a nested event loop, arrange to continue
// processing events. // processing events.
base::MessageLoopCurrent::ScopedNestableTaskAllower allow; base::MessageLoopCurrent::ScopedNestableTaskAllower allow;
NSDragOperation mask = static_cast<NSDragOperation>(allowed_operations); NSDragOperation mask = static_cast<NSDragOperation>(allowed_operations) &
~NSDragOperationGeneric;
NSPoint offset = NSPointFromCGPoint( NSPoint offset = NSPointFromCGPoint(
gfx::PointAtOffsetFromOrigin(image_offset).ToCGPoint()); gfx::PointAtOffsetFromOrigin(image_offset).ToCGPoint());
[cocoa_view_ startDragWithDropData:drop_data [cocoa_view_ startDragWithDropData:drop_data
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment