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

Issue 1131093002: Implement direction-specific touch-action values (chromium side). (Closed)

Created:
5 years, 7 months ago by dtapuska
Modified:
5 years, 7 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, jdduke+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement direction-specific touch-action values. Add PanLeft, PanRight, PanUp and PanDown support by generalizing the PanX and PanY code. The fix for the bug is a 3 part change and is required because of the dependencies of blink as there is a static cast (causing a ABI dependency). To work around this ABI problem this is part 1 adding the PanXXX definitions to the content classes and disabling the static assertions and casting. The second change is https://codereview.chromium.org/1137483003/. Once that change has landed a follow up change to this change one will remove the #if 0 and re-add the static cast between blink::WebTouchAction and content::TouchAction BUG=476556 TEST=content_unittests Committed: https://crrev.com/a98ac8d7b972c2ca598391e550bef58e2d537684 Cr-Commit-Position: refs/heads/master@{#329011}

Patch Set 1 #

Total comments: 11

Patch Set 2 : Fix nits from patch set 1 #

Total comments: 4

Patch Set 3 : Clarify the axis clearing code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+222 lines, -147 lines) Patch
M content/browser/renderer_host/input/touch_action_filter.cc View 1 2 5 chunks +46 lines, -11 lines 0 comments Download
M content/browser/renderer_host/input/touch_action_filter_unittest.cc View 1 2 chunks +136 lines, -131 lines 0 comments Download
M content/common/input/touch_action.h View 1 chunk +12 lines, -4 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 chunks +28 lines, -1 line 0 comments Download

Messages

Total messages: 22 (3 generated)
dtapuska
5 years, 7 months ago (2015-05-07 19:04:33 UTC) #2
dtapuska
https://codereview.chromium.org/1131093002/diff/1/content/browser/renderer_host/input/touch_action_filter.cc File content/browser/renderer_host/input/touch_action_filter.cc (right): https://codereview.chromium.org/1131093002/diff/1/content/browser/renderer_host/input/touch_action_filter.cc#newcode195 content/browser/renderer_host/input/touch_action_filter.cc:195: } else if (gesture_event.data.scrollBegin.deltaXHint > 0 && Please check ...
5 years, 7 months ago (2015-05-07 19:06:30 UTC) #3
Rick Byers
This is excellent, thanks! Can you please clarify the CL description slightly to make it ...
5 years, 7 months ago (2015-05-07 20:37:37 UTC) #4
dtapuska
https://codereview.chromium.org/1131093002/diff/1/content/browser/renderer_host/input/touch_action_filter.cc File content/browser/renderer_host/input/touch_action_filter.cc (right): https://codereview.chromium.org/1131093002/diff/1/content/browser/renderer_host/input/touch_action_filter.cc#newcode38 content/browser/renderer_host/input/touch_action_filter.cc:38: if (allowed_touch_action_ & TOUCH_ACTION_PAN_X && On 2015/05/07 20:37:37, Rick ...
5 years, 7 months ago (2015-05-07 21:03:07 UTC) #5
Rick Byers
LGTM +jdduke for OWNERS in content/browser/renderer_host/input +jochen for OWNERS in the rest of content/
5 years, 7 months ago (2015-05-08 13:23:37 UTC) #7
jdduke (slow)
https://codereview.chromium.org/1131093002/diff/20001/content/browser/renderer_host/input/touch_action_filter.cc File content/browser/renderer_host/input/touch_action_filter.cc (right): https://codereview.chromium.org/1131093002/diff/20001/content/browser/renderer_host/input/touch_action_filter.cc#newcode40 content/browser/renderer_host/input/touch_action_filter.cc:40: if (allowed_touch_action_ & TOUCH_ACTION_PAN_X && Is this correct? What ...
5 years, 7 months ago (2015-05-08 16:46:41 UTC) #8
Rick Byers
https://codereview.chromium.org/1131093002/diff/20001/content/browser/renderer_host/input/touch_action_filter.cc File content/browser/renderer_host/input/touch_action_filter.cc (right): https://codereview.chromium.org/1131093002/diff/20001/content/browser/renderer_host/input/touch_action_filter.cc#newcode40 content/browser/renderer_host/input/touch_action_filter.cc:40: if (allowed_touch_action_ & TOUCH_ACTION_PAN_X && On 2015/05/08 16:46:41, jdduke ...
5 years, 7 months ago (2015-05-08 16:55:08 UTC) #9
jdduke (slow)
https://codereview.chromium.org/1131093002/diff/20001/content/browser/renderer_host/input/touch_action_filter.cc File content/browser/renderer_host/input/touch_action_filter.cc (right): https://codereview.chromium.org/1131093002/diff/20001/content/browser/renderer_host/input/touch_action_filter.cc#newcode40 content/browser/renderer_host/input/touch_action_filter.cc:40: if (allowed_touch_action_ & TOUCH_ACTION_PAN_X && On 2015/05/08 16:55:08, Rick ...
5 years, 7 months ago (2015-05-08 16:58:35 UTC) #10
dtapuska
On 2015/05/08 16:58:35, jdduke wrote: > https://codereview.chromium.org/1131093002/diff/20001/content/browser/renderer_host/input/touch_action_filter.cc > File content/browser/renderer_host/input/touch_action_filter.cc (right): > > https://codereview.chromium.org/1131093002/diff/20001/content/browser/renderer_host/input/touch_action_filter.cc#newcode40 > ...
5 years, 7 months ago (2015-05-08 17:05:32 UTC) #11
jochen (gone - plz use gerrit)
can you please file a tracking bug an include it in the CL description?
5 years, 7 months ago (2015-05-08 17:26:06 UTC) #12
dtapuska
On 2015/05/08 17:26:06, jochen wrote: > can you please file a tracking bug an include ...
5 years, 7 months ago (2015-05-08 17:37:35 UTC) #13
dtapuska
https://codereview.chromium.org/1131093002/diff/20001/content/browser/renderer_host/input/touch_action_filter.cc File content/browser/renderer_host/input/touch_action_filter.cc (right): https://codereview.chromium.org/1131093002/diff/20001/content/browser/renderer_host/input/touch_action_filter.cc#newcode40 content/browser/renderer_host/input/touch_action_filter.cc:40: if (allowed_touch_action_ & TOUCH_ACTION_PAN_X && On 2015/05/08 16:58:35, jdduke ...
5 years, 7 months ago (2015-05-08 17:44:51 UTC) #14
jdduke (slow)
content/browser/renderer_host/input and content/common/input lgtm.
5 years, 7 months ago (2015-05-08 17:47:30 UTC) #15
Rick Byers
On 2015/05/08 17:47:30, jdduke wrote: > content/browser/renderer_host/input and content/common/input lgtm. still LGTM
5 years, 7 months ago (2015-05-08 17:51:07 UTC) #16
Rick Byers
https://codereview.chromium.org/1131093002/diff/1/content/browser/renderer_host/input/touch_action_filter.cc#newcode195 > content/browser/renderer_host/input/touch_action_filter.cc:195: } else if > (gesture_event.data.scrollBegin.deltaXHint > 0 && > On 2015/05/07 19:06:30, ...
5 years, 7 months ago (2015-05-08 18:04:26 UTC) #17
jochen (gone - plz use gerrit)
lgtm
5 years, 7 months ago (2015-05-08 18:09:13 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1131093002/40001
5 years, 7 months ago (2015-05-08 18:29:46 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 7 months ago (2015-05-08 19:29:19 UTC) #21
commit-bot: I haz the power
5 years, 7 months ago (2015-05-08 19:31:00 UTC) #22
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/a98ac8d7b972c2ca598391e550bef58e2d537684
Cr-Commit-Position: refs/heads/master@{#329011}

Powered by Google App Engine
This is Rietveld 408576698