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

Issue 2337233004: MacViews: Fix sending mouse exit event and releasing capture on D&D. (Closed)

Created:
4 years, 3 months ago by snake
Modified:
4 years, 2 months ago
CC:
chromium-reviews, tfarina, dcheng, spqchan
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MacViews: Fix sending mouse exit event and releasing capture on D&D. Currently, clicks immediately after a drag in a MacViews window are ignored. This is because initiating a drag and drop session with -[NSView beginDraggingSessionWithItems:..] suppresses the mouse events that would result in capture being released. To fix, explicitly release Widget capture before starting the dragging session. BUG=646792 Committed: https://crrev.com/48134b46f0a22980774d9b9cb074e04b4971ada5 Cr-Commit-Position: refs/heads/master@{#420925}

Patch Set 1 #

Total comments: 22

Patch Set 2 : Fix review issues. #

Patch Set 3 : Fix review issues. #

Total comments: 3

Patch Set 4 : Fix review issues. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -0 lines) Patch
M ui/views/cocoa/drag_drop_client_mac.mm View 1 1 chunk +5 lines, -0 lines 0 comments Download
M ui/views/cocoa/drag_drop_client_mac_unittest.mm View 1 3 chunks +49 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (10 generated)
tapted
https://codereview.chromium.org/2337233004/diff/1/ui/base/cocoa/base_view.h File ui/base/cocoa/base_view.h (left): https://codereview.chromium.org/2337233004/diff/1/ui/base/cocoa/base_view.h#oldcode31 ui/base/cocoa/base_view.h:31: base::scoped_nsobject<NSEvent> pendingExitEvent_; spqchan is right - we can't change ...
4 years, 3 months ago (2016-09-19 00:31:01 UTC) #4
snake
On 2016/09/19 00:31:01, tapted wrote: > https://codereview.chromium.org/2337233004/diff/1/ui/base/cocoa/base_view.h > File ui/base/cocoa/base_view.h (left): > > https://codereview.chromium.org/2337233004/diff/1/ui/base/cocoa/base_view.h#oldcode31 > ...
4 years, 3 months ago (2016-09-19 13:22:53 UTC) #5
tapted
can you move these threads back into context in the code? you can do this ...
4 years, 3 months ago (2016-09-20 07:26:41 UTC) #6
snake
https://codereview.chromium.org/2337233004/diff/1/ui/base/cocoa/base_view.h File ui/base/cocoa/base_view.h (left): https://codereview.chromium.org/2337233004/diff/1/ui/base/cocoa/base_view.h#oldcode31 ui/base/cocoa/base_view.h:31: base::scoped_nsobject<NSEvent> pendingExitEvent_; On 2016/09/19 00:31:01, tapted wrote: > spqchan ...
4 years, 3 months ago (2016-09-20 15:04:27 UTC) #7
tapted
+avi (moved dcheng to cc) - see below. Thanks for the extra info! Let's put ...
4 years, 3 months ago (2016-09-21 10:07:05 UTC) #9
snake
https://codereview.chromium.org/2337233004/diff/1/ui/views/cocoa/bridged_content_view.h File ui/views/cocoa/bridged_content_view.h (right): https://codereview.chromium.org/2337233004/diff/1/ui/views/cocoa/bridged_content_view.h#newcode74 ui/views/cocoa/bridged_content_view.h:74: // Resend a mouse event captured while the widget ...
4 years, 3 months ago (2016-09-21 12:29:52 UTC) #11
Avi (use Gerrit)
Wow. No, I really don't remember that CL nor its context. Of what I remember, ...
4 years, 3 months ago (2016-09-21 14:51:55 UTC) #12
tapted
Finally had a bit more time to patch this in and play around some more. ...
4 years, 3 months ago (2016-09-22 00:32:37 UTC) #14
snake
https://codereview.chromium.org/2337233004/diff/40001/ui/views/cocoa/bridged_content_view.mm File ui/views/cocoa/bridged_content_view.mm (right): https://codereview.chromium.org/2337233004/diff/40001/ui/views/cocoa/bridged_content_view.mm#newcode560 ui/views/cocoa/bridged_content_view.mm:560: - (void)mouseDown:(NSEvent*)theEvent { What about this MacViews specific fix, ...
4 years, 3 months ago (2016-09-22 18:22:39 UTC) #15
tapted
https://codereview.chromium.org/2337233004/diff/40001/ui/views/cocoa/bridged_content_view.mm File ui/views/cocoa/bridged_content_view.mm (right): https://codereview.chromium.org/2337233004/diff/40001/ui/views/cocoa/bridged_content_view.mm#newcode560 ui/views/cocoa/bridged_content_view.mm:560: - (void)mouseDown:(NSEvent*)theEvent { On 2016/09/22 18:22:39, snake wrote: > ...
4 years, 3 months ago (2016-09-23 07:10:21 UTC) #16
snake
https://codereview.chromium.org/2337233004/diff/40001/ui/views/cocoa/bridged_content_view.mm File ui/views/cocoa/bridged_content_view.mm (right): https://codereview.chromium.org/2337233004/diff/40001/ui/views/cocoa/bridged_content_view.mm#newcode560 ui/views/cocoa/bridged_content_view.mm:560: - (void)mouseDown:(NSEvent*)theEvent { On 2016/09/23 07:10:21, tapted wrote: > ...
4 years, 2 months ago (2016-09-26 10:28:48 UTC) #17
tapted
lgtm - thanks note I removed the part of the CL description about BaseView - ...
4 years, 2 months ago (2016-09-26 11:19:17 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2337233004/60001
4 years, 2 months ago (2016-09-26 17:20:23 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-09-26 17:51:59 UTC) #23
commit-bot: I haz the power
4 years, 2 months ago (2016-09-26 17:54:58 UTC) #25
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/48134b46f0a22980774d9b9cb074e04b4971ada5
Cr-Commit-Position: refs/heads/master@{#420925}

Powered by Google App Engine
This is Rietveld 408576698