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

Issue 67383002: Initial browser-side implementation for touch-action (Closed)

Created:
7 years, 1 month ago by Rick Byers
Modified:
7 years ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, Yufeng Shen (Slow to review)
Visibility:
Public.

Description

Initial browser-side implementation for touch-action Receive SetTouchAction messages and filter GestureEvents in the browser based on them. The logic here so far is pretty trivial, but will get more complex, eg: - addition of pinch and double-tap gesture handling - support for pan-x, pan-y, pan-x/y and potentially other touch actions - more sophisticated handling of multiple fingers (pending WG discussion) See touch-action design doc at http://goo.gl/KcKbxQ for more details. Depends on blink-side change in https://codereview.chromium.org/16507017/ BUG=316735 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=239611

Patch Set 1 #

Total comments: 3

Patch Set 2 : Refactor into TouchActionFilter #

Patch Set 3 : Add tests #

Patch Set 4 : Add back accidentally removed line #

Total comments: 16

Patch Set 5 : sadrul, jdduke and abarth CR feedback #

Patch Set 6 : Fix issues from duplicate header #

Patch Set 7 : Update for new blink API - no touch ID for now #

Total comments: 18

Patch Set 8 : merge with trunk - no changes #

Patch Set 9 : Tweaks from sadrul/jdduke CR #

Total comments: 2

Patch Set 10 : merge with trunk and resolve merge conflic (no changes) #

Patch Set 11 : Merge with trunk (no changes) #

Patch Set 12 : Tweak include for moved synthetic_web_input_event_builders.h #

Unified diffs Side-by-side diffs Delta from patch set Stats (+362 lines, -0 lines) Patch
M content/browser/renderer_host/input/input_router_impl.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/input_router_impl.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +14 lines, -0 lines 0 comments Download
A content/browser/renderer_host/input/touch_action_filter.h View 1 2 3 4 5 6 7 8 1 chunk +45 lines, -0 lines 0 comments Download
A content/browser/renderer_host/input/touch_action_filter.cc View 1 2 3 4 5 6 7 8 1 chunk +63 lines, -0 lines 0 comments Download
A content/browser/renderer_host/input/touch_action_filter_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +100 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/touch_event_queue.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/touch_event_queue.cc View 1 2 3 4 5 6 7 8 1 chunk +10 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/touch_event_queue_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +54 lines, -0 lines 0 comments Download
A content/common/input/touch_action.h View 1 2 3 4 5 6 7 8 1 chunk +25 lines, -0 lines 0 comments Download
M content/common/input_messages.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +6 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_widget.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +7 lines, -0 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +28 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Rick Byers
Sadrul, please review. Jared - take a look if you like, it's the basic design ...
7 years, 1 month ago (2013-11-16 03:37:27 UTC) #1
jdduke (slow)
https://codereview.chromium.org/67383002/diff/1/content/common/view_messages.h File content/common/view_messages.h (right): https://codereview.chromium.org/67383002/diff/1/content/common/view_messages.h#newcode1865 content/common/view_messages.h:1865: IPC_MESSAGE_ROUTED2(ViewHostMsg_SetTouchAction, Could we make this an InputHostMsg and put ...
7 years, 1 month ago (2013-11-18 15:56:00 UTC) #2
sadrul
Mostly nits. Otherwise looks reasonable. (I haven't commented on all the style issues, but a ...
7 years, 1 month ago (2013-11-19 10:36:44 UTC) #3
Rick Byers
Thanks guys. I think I found all the blink style issues (somehow my brain has ...
7 years, 1 month ago (2013-11-19 22:14:59 UTC) #4
jdduke (slow)
https://codereview.chromium.org/67383002/diff/1/content/common/view_messages.h File content/common/view_messages.h (right): https://codereview.chromium.org/67383002/diff/1/content/common/view_messages.h#newcode1865 content/common/view_messages.h:1865: IPC_MESSAGE_ROUTED2(ViewHostMsg_SetTouchAction, On 2013/11/19 22:14:59, Rick Byers wrote: > On ...
7 years, 1 month ago (2013-11-20 00:35:22 UTC) #5
Rick Byers
On 2013/11/20 00:35:22, jdduke wrote: > https://codereview.chromium.org/67383002/diff/1/content/common/view_messages.h > File content/common/view_messages.h (right): > > https://codereview.chromium.org/67383002/diff/1/content/common/view_messages.h#newcode1865 > ...
7 years, 1 month ago (2013-11-20 22:24:28 UTC) #6
Rick Byers
On 2013/11/20 00:35:22, jdduke wrote: > https://codereview.chromium.org/67383002/diff/1/content/common/view_messages.h > File content/common/view_messages.h (right): > > https://codereview.chromium.org/67383002/diff/1/content/common/view_messages.h#newcode1865 > ...
7 years, 1 month ago (2013-11-20 22:24:30 UTC) #7
jdduke (slow)
lgtm with a few nits, sadrul@ will probably also want to weigh in here. The ...
7 years, 1 month ago (2013-11-20 23:03:02 UTC) #8
jdduke (slow)
On 2013/11/20 23:03:02, jdduke wrote: > lgtm with a few nits, sadrul@ will probably also ...
7 years, 1 month ago (2013-11-20 23:04:16 UTC) #9
sadrul
LGTM https://codereview.chromium.org/67383002/diff/350001/content/browser/renderer_host/input/immediate_input_router.cc File content/browser/renderer_host/input/immediate_input_router.cc (right): https://codereview.chromium.org/67383002/diff/350001/content/browser/renderer_host/input/immediate_input_router.cc#newcode485 content/browser/renderer_host/input/immediate_input_router.cc:485: // Synthetic touchsstart events should get filtered out ...
7 years, 1 month ago (2013-11-20 23:28:30 UTC) #10
Rick Byers
Thanks guys, done. +kenrb for security OWNERS in content/common/input_messages.h +piman for OWNERS of content/renderer and ...
7 years, 1 month ago (2013-11-21 02:37:36 UTC) #11
piman
LGTM+nit https://codereview.chromium.org/67383002/diff/490001/content/renderer/render_widget.cc File content/renderer/render_widget.cc (right): https://codereview.chromium.org/67383002/diff/490001/content/renderer/render_widget.cc#newcode2809 content/renderer/render_widget.cc:2809: NOTREACHED(); nit: remove default case to get a ...
7 years, 1 month ago (2013-11-21 05:16:27 UTC) #12
Rick Byers
Thanks Antoine. https://codereview.chromium.org/67383002/diff/490001/content/renderer/render_widget.cc File content/renderer/render_widget.cc (right): https://codereview.chromium.org/67383002/diff/490001/content/renderer/render_widget.cc#newcode2809 content/renderer/render_widget.cc:2809: NOTREACHED(); On 2013/11/21 05:16:27, piman wrote: > ...
7 years, 1 month ago (2013-11-21 22:34:04 UTC) #13
piman
On Thu, Nov 21, 2013 at 2:34 PM, <rbyers@chromium.org> wrote: > Thanks Antoine. > > ...
7 years, 1 month ago (2013-11-21 22:56:33 UTC) #14
kenrb
lgtm
7 years, 1 month ago (2013-11-22 19:00:13 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rbyers@chromium.org/67383002/600001
7 years ago (2013-12-09 19:17:16 UTC) #16
commit-bot: I haz the power
7 years ago (2013-12-10 00:35:56 UTC) #17
Message was sent while issue was closed.
Change committed as 239611

Powered by Google App Engine
This is Rietveld 408576698