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

Issue 560053002: Do not interchange MOUSE_MOVED and MOUSE_DRAGGED events in Widget (Closed)

Created:
6 years, 3 months ago by tdanderson
Modified:
6 years, 2 months ago
Reviewers:
sadrul
CC:
chromium-reviews, tfarina, ben+views_chromium.org, tdanderson+views_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Do not interchange MOUSE_MOVED and MOUSE_DRAGGED events in Widget In Widget::OnMouseEvent(), do not handle MOUSE_MOVED events as MOUSE_DRAGGED events, and do not handle MOUSE_DRAGGED events as MOUSE_MOVED events; instead trust that the mouse event type has been set correctly before arriving at Widget. This also allows us to remove the member |is_mouse_button_pressed_| from Widget. BUG=412929, 412931 TEST=WidgetTest.DragIntoView

Patch Set 1 #

Patch Set 2 : WIP #

Patch Set 3 : WIP #

Patch Set 4 : WIP #

Patch Set 5 : WIP test #

Patch Set 6 : for review #

Total comments: 6

Patch Set 7 : WIP #

Patch Set 8 : comments addressed #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -27 lines) Patch
M ui/views/view_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 1 comment Download
M ui/views/widget/root_view.cc View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M ui/views/widget/widget.h View 1 2 3 4 5 6 7 1 chunk +1 line, -5 lines 0 comments Download
M ui/views/widget/widget.cc View 1 2 3 4 5 6 7 9 chunks +10 lines, -21 lines 0 comments Download
M ui/views/widget/widget_unittest.cc View 1 2 3 4 5 6 1 chunk +78 lines, -0 lines 2 comments Download

Messages

Total messages: 12 (2 generated)
tdanderson
Sadrul, some tests are in progress, but how does this look to you so far? ...
6 years, 3 months ago (2014-09-11 15:19:47 UTC) #2
tdanderson
Sadrul, can you PTAL?
6 years, 3 months ago (2014-09-24 21:19:34 UTC) #3
sadrul
For testing: Do we have enough tests that cover dragging views (e.g. in/out of bookmark ...
6 years, 2 months ago (2014-09-25 16:19:38 UTC) #4
tdanderson
Sadrul, PTAL. Regarding testing, it looks as though we do have existing tests for dragging ...
6 years, 2 months ago (2014-09-26 18:49:40 UTC) #5
sadrul
LGTM https://codereview.chromium.org/560053002/diff/140001/ui/views/view_unittest.cc File ui/views/view_unittest.cc (right): https://codereview.chromium.org/560053002/diff/140001/ui/views/view_unittest.cc#newcode371 ui/views/view_unittest.cc:371: root->OnMouseReleased(released); whoa https://codereview.chromium.org/560053002/diff/140001/ui/views/widget/widget_unittest.cc File ui/views/widget/widget_unittest.cc (right): https://codereview.chromium.org/560053002/diff/140001/ui/views/widget/widget_unittest.cc#newcode3268 ui/views/widget/widget_unittest.cc:3268: ...
6 years, 2 months ago (2014-09-26 20:59:13 UTC) #6
tdanderson
Just did some manual testing with this CL on Windows and saw no obvious problems, ...
6 years, 2 months ago (2014-09-29 18:38:13 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/560053002/140001
6 years, 2 months ago (2014-09-29 18:38:41 UTC) #9
commit-bot: I haz the power
Committed patchset #8 (id:140001) as bb96ba92657cad0140a30983f2bfe72ed47f4dc5
6 years, 2 months ago (2014-09-29 18:43:45 UTC) #10
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/bddf8dd3c089b6a9065b8d17e410739455143499 Cr-Commit-Position: refs/heads/master@{#297215}
6 years, 2 months ago (2014-09-29 18:44:36 UTC) #11
tdanderson
6 years, 1 month ago (2014-11-07 18:28:26 UTC) #12
Message was sent while issue was closed.
A revert of this CL (patchset #8 id:140001) has been created in
https://codereview.chromium.org/703643004/ by tdanderson@chromium.org.

The reason for reverting is: Responsible for the crash reported in
crbug.com/430427. Relanding will require addressing crbug.com/431350 first..

Powered by Google App Engine
This is Rietveld 408576698