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

Issue 517023004: Condense RootView::DispatchGestureEvent() to a single loop (Closed)

Created:
6 years, 3 months ago by tdanderson
Modified:
6 years, 3 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

Condense RootView::DispatchGestureEvent() to a single loop Remove the unnecessary code from RootView::DispatchGestureEvent() by condensing it to a single loop and moving parts of the implementation into RootView::PreDispatchEvent() and RootView::PostDispatchEvent(). BUG=404228 TEST=covered by existing unit tests Committed: https://crrev.com/6942fdd7ce53f12cdeb99d4155b29fd90d5ecb69 Cr-Commit-Position: refs/heads/master@{#293055}

Patch Set 1 #

Total comments: 4

Patch Set 2 : variable re-naming #

Total comments: 9

Patch Set 3 : always reset gesture handler to NULL on gesture-end #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -118 lines) Patch
M ui/views/widget/root_view.cc View 1 2 4 chunks +58 lines, -118 lines 0 comments Download

Messages

Total messages: 16 (3 generated)
tdanderson
tdanderson@chromium.org changed reviewers: + sadrul@chromium.org
6 years, 3 months ago (2014-08-28 21:15:36 UTC) #1
tdanderson
Sadrul, please take a look! https://codereview.chromium.org/517023004/diff/1/ui/views/widget/root_view.cc File ui/views/widget/root_view.cc (right): https://codereview.chromium.org/517023004/diff/1/ui/views/widget/root_view.cc#newcode675 ui/views/widget/root_view.cc:675: // not set by ...
6 years, 3 months ago (2014-08-28 21:15:36 UTC) #2
sadrul
https://codereview.chromium.org/517023004/diff/1/ui/views/widget/root_view.cc File ui/views/widget/root_view.cc (right): https://codereview.chromium.org/517023004/diff/1/ui/views/widget/root_view.cc#newcode675 ui/views/widget/root_view.cc:675: // not set by the dispatch of a previous ...
6 years, 3 months ago (2014-08-29 19:35:53 UTC) #3
tdanderson
Sadrul, can you please take another look? https://codereview.chromium.org/517023004/diff/1/ui/views/widget/root_view.cc File ui/views/widget/root_view.cc (right): https://codereview.chromium.org/517023004/diff/1/ui/views/widget/root_view.cc#newcode675 ui/views/widget/root_view.cc:675: // not ...
6 years, 3 months ago (2014-08-29 21:19:51 UTC) #4
sadrul
Sorry, a couple more questions: https://codereview.chromium.org/517023004/diff/20001/ui/views/widget/root_view.cc File ui/views/widget/root_view.cc (right): https://codereview.chromium.org/517023004/diff/20001/ui/views/widget/root_view.cc#newcode730 ui/views/widget/root_view.cc:730: gesture_handler_ = view; Instead ...
6 years, 3 months ago (2014-08-29 21:43:54 UTC) #5
tdanderson
Please see my answers below: https://codereview.chromium.org/517023004/diff/20001/ui/views/widget/root_view.cc File ui/views/widget/root_view.cc (right): https://codereview.chromium.org/517023004/diff/20001/ui/views/widget/root_view.cc#newcode730 ui/views/widget/root_view.cc:730: gesture_handler_ = view; On ...
6 years, 3 months ago (2014-08-29 21:58:07 UTC) #6
sadrul
https://codereview.chromium.org/517023004/diff/20001/ui/views/widget/root_view.cc File ui/views/widget/root_view.cc (right): https://codereview.chromium.org/517023004/diff/20001/ui/views/widget/root_view.cc#newcode730 ui/views/widget/root_view.cc:730: gesture_handler_ = view; On 2014/08/29 21:58:07, tdanderson wrote: > ...
6 years, 3 months ago (2014-09-02 14:36:01 UTC) #7
tdanderson
https://codereview.chromium.org/517023004/diff/20001/ui/views/widget/root_view.cc File ui/views/widget/root_view.cc (right): https://codereview.chromium.org/517023004/diff/20001/ui/views/widget/root_view.cc#newcode730 ui/views/widget/root_view.cc:730: gesture_handler_ = view; On 2014/09/02 14:36:01, sadrul wrote: > ...
6 years, 3 months ago (2014-09-02 17:26:35 UTC) #8
tdanderson
Sadrul, I always reset the gesture-handler on a gesture-end now. Can you please take another ...
6 years, 3 months ago (2014-09-02 20:29:07 UTC) #9
sadrul
LGTM
6 years, 3 months ago (2014-09-02 22:50:50 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdanderson@chromium.org/517023004/40001
6 years, 3 months ago (2014-09-02 23:12:05 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001) as 9b36df6820fe7b9db57dee3c479efabda1445b74
6 years, 3 months ago (2014-09-03 02:30:12 UTC) #15
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:23:02 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/6942fdd7ce53f12cdeb99d4155b29fd90d5ecb69
Cr-Commit-Position: refs/heads/master@{#293055}

Powered by Google App Engine
This is Rietveld 408576698