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

Issue 2448173002: Fix processing of mouse events on MacViews.

Created:
4 years, 1 month ago by snake
Modified:
4 years, 1 month ago
Reviewers:
tapted
CC:
chromium-reviews, tfarina, tdresser+watch_chromium.org, mac-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix processing of mouse events on MacViews. BUG=659959 Before, In MacViews on any click the MouseUp event are delivered to BridgedContentView::processCapturedMouseEvent: , not to BaseView::MouseUp:, and BaseView::dragging_ flag not reset. This happens, beacause on MouseDown we call native_widget_->SetCapture() in views::Widget::OnMouseEvent, and after that all messages are delivered using other way. As result, some times, any mouse exit events are blocked in BaseView::MouseExited, because BaseView::dragging_ still is true. (and hovers are broken). To fix this, in BridgedContentView, implemented logic like in BaseView, considering with mouse capturing.

Patch Set 1 #

Total comments: 12

Patch Set 2 : Fix processing of mouse events on MacViews. #

Patch Set 3 : Fix processing of mouse events on MacViews. #

Total comments: 8

Patch Set 4 : Fix review issues. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+342 lines, -72 lines) Patch
M ui/base/cocoa/base_view.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/base/cocoa/base_view.mm View 1 chunk +46 lines, -0 lines 0 comments Download
M ui/views/cocoa/bridged_content_view.h View 1 chunk +2 lines, -3 lines 0 comments Download
M ui/views/cocoa/bridged_content_view.mm View 1 5 chunks +17 lines, -49 lines 0 comments Download
M ui/views/cocoa/bridged_native_widget.h View 3 chunks +9 lines, -0 lines 0 comments Download
M ui/views/cocoa/bridged_native_widget.mm View 1 2 3 chunks +102 lines, -2 lines 0 comments Download
M ui/views/test/event_generator_delegate_mac.mm View 3 chunks +41 lines, -18 lines 0 comments Download
M ui/views/widget/native_widget_mac_unittest.mm View 1 2 3 3 chunks +122 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (4 generated)
snake
4 years, 1 month ago (2016-10-25 15:29:20 UTC) #3
Avi (use Gerrit)
I stopped review about halfway through. First, there seem to be quite a few changes ...
4 years, 1 month ago (2016-10-25 15:34:50 UTC) #5
snake
https://codereview.chromium.org/2448173002/diff/1/ui/events/cocoa/events_mac.mm File ui/events/cocoa/events_mac.mm (right): https://codereview.chromium.org/2448173002/diff/1/ui/events/cocoa/events_mac.mm#newcode46 ui/events/cocoa/events_mac.mm:46: return ET_MOUSEWHEEL; On 2016/10/25 15:34:50, Avi wrote: > This ...
4 years, 1 month ago (2016-10-25 15:46:18 UTC) #6
snake
https://codereview.chromium.org/2448173002/diff/1/ui/events/cocoa/events_mac.mm File ui/events/cocoa/events_mac.mm (right): https://codereview.chromium.org/2448173002/diff/1/ui/events/cocoa/events_mac.mm#newcode46 ui/events/cocoa/events_mac.mm:46: return ET_MOUSEWHEEL; On 2016/10/25 15:46:18, snake wrote: > On ...
4 years, 1 month ago (2016-10-25 20:52:06 UTC) #7
tapted
There's too much going on here to review - please split it up. (see comments). ...
4 years, 1 month ago (2016-10-26 00:57:00 UTC) #8
snake
>Also you previously had a patch in >https://codereview.chromium.org/2337233004 >for http://crbug.com/646792. that bug is marked fixed. ...
4 years, 1 month ago (2016-10-26 12:44:57 UTC) #9
tapted
On 2016/10/26 12:44:57, snake wrote: > >Also you previously had a patch in > >https://codereview.chromium.org/2337233004 ...
4 years, 1 month ago (2016-10-27 02:39:10 UTC) #10
snake
> > >Also you previously had a patch in > > >https://codereview.chromium.org/2337233004 > > >for ...
4 years, 1 month ago (2016-10-27 10:54:22 UTC) #12
snake
Also i have updated description with new bug id.
4 years, 1 month ago (2016-10-27 11:44:11 UTC) #13
tapted
On 2016/10/27 10:54:22, snake wrote: > > > >Also you previously had a patch in ...
4 years, 1 month ago (2016-10-27 12:30:13 UTC) #14
snake
On 2016/10/27 12:30:13, tapted wrote: > On 2016/10/27 10:54:22, snake wrote: > > > > ...
4 years, 1 month ago (2016-10-27 13:32:27 UTC) #15
tapted
> > > > ui::ET_MOUSE_EXITED and ui::ET_MOUSE_ENTERED are generated by > > > > RootView::OnMouseMoved(const ...
4 years, 1 month ago (2016-10-28 05:43:16 UTC) #16
snake
> We shouldn't rely too much on what EventGenerator does -- it's only used for ...
4 years, 1 month ago (2016-10-28 14:42:20 UTC) #17
snake
4 years, 1 month ago (2016-11-02 23:07:03 UTC) #18
NSTrackingMouseEnteredAndExited added in
https://codereview.chromium.org/2466263006/

Powered by Google App Engine
This is Rietveld 408576698