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

Issue 481433006: Support targeting for gestures in ViewTargeter (Closed)

Created:
6 years, 4 months ago by tdanderson
Modified:
6 years, 3 months ago
Reviewers:
sadrul
CC:
chromium-reviews, tfarina, ben+views_chromium.org, tdanderson+views_chromium.org
Project:
chromium
Visibility:
Public.

Description

Support targeting for gestures in ViewTargeter Move the gesture event targeting logic from RootView::DispatchGestureEvent() into ViewTargeter's overrides of FindTargetForEvent() and FindNextBestTarget(). BUG=404224 TEST=ViewTargeterTest.ViewTargeterForGestureEvents Committed: https://crrev.com/a7b4a883cc904ecda130e0a8d91204f3770f2fae Cr-Commit-Position: refs/heads/master@{#292321}

Patch Set 1 #

Patch Set 2 : test added, some re-naming #

Total comments: 1

Patch Set 3 : rebase against ToT #

Patch Set 4 : whitespace #

Total comments: 6

Patch Set 5 : Introduce RootViewTargeter #

Total comments: 5

Patch Set 6 : comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+303 lines, -32 lines) Patch
M ui/views/view_targeter.h View 1 2 3 4 2 chunks +14 lines, -0 lines 0 comments Download
M ui/views/view_targeter.cc View 1 2 3 4 5 3 chunks +29 lines, -0 lines 0 comments Download
M ui/views/view_targeter_unittest.cc View 1 2 3 4 5 chunks +111 lines, -9 lines 0 comments Download
M ui/views/views.gyp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/widget/root_view.h View 1 2 3 4 4 chunks +12 lines, -2 lines 0 comments Download
M ui/views/widget/root_view.cc View 1 2 3 4 8 chunks +18 lines, -21 lines 0 comments Download
A ui/views/widget/root_view_targeter.h View 1 2 3 4 1 chunk +47 lines, -0 lines 0 comments Download
A ui/views/widget/root_view_targeter.cc View 1 2 3 4 5 1 chunk +70 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
tdanderson
Sadrul, what do you think about landing this in early M39 (once I add a ...
6 years, 4 months ago (2014-08-15 22:42:47 UTC) #1
tdanderson
Sadrul, I have added a test and changed this from WIP to ready for formal ...
6 years, 4 months ago (2014-08-16 20:34:23 UTC) #2
tdanderson
Sadrul, can you please take a look? Note my inline comment in PS2.
6 years, 4 months ago (2014-08-25 19:53:56 UTC) #3
sadrul
https://codereview.chromium.org/481433006/diff/60001/ui/views/view_targeter.cc File ui/views/view_targeter.cc (right): https://codereview.chromium.org/481433006/diff/60001/ui/views/view_targeter.cc#newcode111 ui/views/view_targeter.cc:111: internal::RootView* root_view = static_cast<internal::RootView*>(root); This is pretty ugly. How ...
6 years, 3 months ago (2014-08-26 16:21:44 UTC) #4
tdanderson
Sadrul, can you please take another look? https://codereview.chromium.org/481433006/diff/60001/ui/views/view_targeter.cc File ui/views/view_targeter.cc (right): https://codereview.chromium.org/481433006/diff/60001/ui/views/view_targeter.cc#newcode111 ui/views/view_targeter.cc:111: internal::RootView* root_view ...
6 years, 3 months ago (2014-08-26 20:21:15 UTC) #5
sadrul
LGTM https://codereview.chromium.org/481433006/diff/80001/ui/views/view_targeter.cc File ui/views/view_targeter.cc (right): https://codereview.chromium.org/481433006/diff/80001/ui/views/view_targeter.cc#newcode91 ui/views/view_targeter.cc:91: NOTREACHED(); On 2014/08/26 20:21:15, tdanderson wrote: > There ...
6 years, 3 months ago (2014-08-27 22:49:54 UTC) #6
tdanderson
https://codereview.chromium.org/481433006/diff/80001/ui/views/view_targeter.cc File ui/views/view_targeter.cc (right): https://codereview.chromium.org/481433006/diff/80001/ui/views/view_targeter.cc#newcode91 ui/views/view_targeter.cc:91: NOTREACHED(); On 2014/08/27 22:49:54, sadrul wrote: > On 2014/08/26 ...
6 years, 3 months ago (2014-08-27 23:25:57 UTC) #7
tdanderson
The CQ bit was checked by tdanderson@chromium.org
6 years, 3 months ago (2014-08-27 23:26:01 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdanderson@chromium.org/481433006/100001
6 years, 3 months ago (2014-08-27 23:27:51 UTC) #9
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux ...
6 years, 3 months ago (2014-08-28 02:45:39 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 3 months ago (2014-08-28 02:50:53 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_swarming/builds/8778)
6 years, 3 months ago (2014-08-28 02:50:54 UTC) #12
tdanderson
The CQ bit was checked by tdanderson@chromium.org
6 years, 3 months ago (2014-08-28 03:54:15 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdanderson@chromium.org/481433006/100001
6 years, 3 months ago (2014-08-28 03:55:04 UTC) #14
commit-bot: I haz the power
Committed patchset #6 (id:100001) as f7290bcce1b59595b2585d93322e2663ed6254af
6 years, 3 months ago (2014-08-28 04:33:30 UTC) #15
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 02:57:33 UTC) #16
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/a7b4a883cc904ecda130e0a8d91204f3770f2fae
Cr-Commit-Position: refs/heads/master@{#292321}

Powered by Google App Engine
This is Rietveld 408576698