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

Issue 1403893003: Plumb gesture source value through Blink. (Closed)

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

Description

Plumb gesture source value through Blink. The sourceDevice field of WebGestureEvent needs to be plumbed through blink (PlatformGestureEvent, GestureEvent) since InputHandlerProxy (1) uses sourceDevice, and (2) may receive events that have travelled through Blink to a PluginContainer and been forwarded to another process. BUG=445319 Committed: https://crrev.com/3bb814794b2509e95944cf36af0cc7538611ae03 Cr-Commit-Position: refs/heads/master@{#354946}

Patch Set 1 #

Patch Set 2 : Fix AnimateInput/InputHandlerProxyTest.* #

Patch Set 3 : Fix PinchZoomGestureScrollsVisualViewportOnly. #

Patch Set 4 : Add missing sourceDevice initialization in EventSender. #

Total comments: 12

Patch Set 5 : Address comments: never use uninitialized, track fling source device. #

Total comments: 11

Patch Set 6 : Address suggestions, deal with test fallout. #

Patch Set 7 : Playing whack-a-mole with failing tests ... #

Patch Set 8 : Check fling source device before ending animation. #

Patch Set 9 : Make compilers happy. #

Total comments: 16

Patch Set 10 : Address suggestions. #

Patch Set 11 : Add GestureEventStreamValidator source device compatibility check. #

Total comments: 22

Patch Set 12 : Convert more tests (related to CL) to use Touchscreen. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -14 lines) Patch
M components/test_runner/event_sender.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
M content/common/input/gesture_event_stream_validator.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +7 lines, -0 lines 0 comments Download
M content/public/test/browser_test_utils.cc View 1 2 3 4 5 6 7 8 9 4 chunks +5 lines, -0 lines 0 comments Download
M content/public/test/render_view_test.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/input/input_handler_proxy.cc View 1 2 3 4 5 6 7 8 9 3 chunks +13 lines, -4 lines 0 comments Download
M content/renderer/input/input_handler_proxy_unittest.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/events/GestureEvent.h View 4 chunks +9 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/events/GestureEvent.cpp View 1 2 3 4 3 chunks +17 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/PlatformGestureEvent.h View 3 chunks +12 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/LinkHighlightImplTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebInputEventConversion.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +21 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 3 4 5 6 7 8 9 7 chunks +11 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/ImeOnFocusTest.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/tests/TopControlsTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/tests/VisualViewportTest.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/WebInputEventConversionTest.cpp View 1 2 3 4 5 6 7 8 9 19 chunks +19 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebViewTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebGestureDevice.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebInputEvent.h View 1 2 3 4 5 6 7 8 9 11 1 chunk +1 line, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 48 (15 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1403893003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1403893003/1
5 years, 2 months ago (2015-10-14 13:37:20 UTC) #2
wjmaclean
Plumbing patch, please take a look?
5 years, 2 months ago (2015-10-14 14:10:00 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/66453)
5 years, 2 months ago (2015-10-14 14:14:18 UTC) #7
tdresser
Failing DCHECKs look related, can you take a look?
5 years, 2 months ago (2015-10-14 14:25:59 UTC) #8
wjmaclean
On 2015/10/14 14:25:59, tdresser wrote: > Failing DCHECKs look related, can you take a look? ...
5 years, 2 months ago (2015-10-14 14:31:36 UTC) #9
jdduke (slow)
Ugg, yet another argument for getting rid of one of these intermediate event types =/.
5 years, 2 months ago (2015-10-14 15:08:06 UTC) #10
wjmaclean
On 2015/10/14 15:08:06, jdduke wrote: > Ugg, yet another argument for getting rid of one ...
5 years, 2 months ago (2015-10-14 15:09:39 UTC) #11
tdresser
https://codereview.chromium.org/1403893003/diff/60001/content/renderer/input/input_handler_proxy.cc File content/renderer/input/input_handler_proxy.cc (right): https://codereview.chromium.org/1403893003/diff/60001/content/renderer/input/input_handler_proxy.cc#newcode503 content/renderer/input/input_handler_proxy.cc:503: if (gesture_event.sourceDevice == blink::WebGestureDeviceTouchpad) { This might read a ...
5 years, 2 months ago (2015-10-14 15:14:20 UTC) #12
wjmaclean
ptal ... https://codereview.chromium.org/1403893003/diff/60001/content/renderer/input/input_handler_proxy.cc File content/renderer/input/input_handler_proxy.cc (right): https://codereview.chromium.org/1403893003/diff/60001/content/renderer/input/input_handler_proxy.cc#newcode503 content/renderer/input/input_handler_proxy.cc:503: if (gesture_event.sourceDevice == blink::WebGestureDeviceTouchpad) { On 2015/10/14 ...
5 years, 2 months ago (2015-10-14 15:55:10 UTC) #13
tdresser
Tests are still failing. https://codereview.chromium.org/1403893003/diff/80001/components/test_runner/event_sender.cc File components/test_runner/event_sender.cc (right): https://codereview.chromium.org/1403893003/diff/80001/components/test_runner/event_sender.cc#newcode1660 components/test_runner/event_sender.cc:1660: event.sourceDevice = blink::WebGestureDeviceTouchpad; In an ...
5 years, 2 months ago (2015-10-14 17:18:56 UTC) #14
wjmaclean
> Tests are still failing. Yes, fallout as we exclude uninitialized from more places ...
5 years, 2 months ago (2015-10-14 18:03:28 UTC) #15
wjmaclean
PTAL? (I think the WebGL conformance test failures are unrelated ...)
5 years, 2 months ago (2015-10-16 20:01:48 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1403893003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1403893003/140001
5 years, 2 months ago (2015-10-16 20:03:15 UTC) #18
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_compile_dbg/builds/73354)
5 years, 2 months ago (2015-10-16 20:19:46 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1403893003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1403893003/160001
5 years, 2 months ago (2015-10-16 20:43:18 UTC) #22
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/118290)
5 years, 2 months ago (2015-10-16 22:15:07 UTC) #24
tdresser
LGTM with nits. I'm thinking it probably would be worth it to DCHECK when reading ...
5 years, 2 months ago (2015-10-19 12:52:40 UTC) #25
wjmaclean
creis@ - please look at content/public/ changes rbyers@ and/or jdduke@ - please look at remainder? ...
5 years, 2 months ago (2015-10-19 15:26:55 UTC) #27
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1403893003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1403893003/180001
5 years, 2 months ago (2015-10-19 15:44:33 UTC) #29
jdduke (slow)
Can you add a simple source validation check in GestureEventStreamValidator::Validate?
5 years, 2 months ago (2015-10-19 16:24:44 UTC) #30
wjmaclean
jdduke@ - is this what you had in mind?
5 years, 2 months ago (2015-10-19 18:02:45 UTC) #31
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1403893003/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1403893003/200001
5 years, 2 months ago (2015-10-19 18:09:15 UTC) #33
jdduke (slow)
https://codereview.chromium.org/1403893003/diff/200001/content/common/input/gesture_event_stream_validator.cc File content/common/input/gesture_event_stream_validator.cc (right): https://codereview.chromium.org/1403893003/diff/200001/content/common/input/gesture_event_stream_validator.cc#newcode108 content/common/input/gesture_event_stream_validator.cc:108: error_msg->append( Hmm, I was thinking something even more basic, ...
5 years, 2 months ago (2015-10-19 18:15:38 UTC) #34
Rick Byers
third_party/WebKit LGTM with a bunch of nits (mainly that tests should really be using only ...
5 years, 2 months ago (2015-10-19 18:20:29 UTC) #35
Charlie Reis
content/public LGTM. (Didn't look at the rest.)
5 years, 2 months ago (2015-10-19 18:37:47 UTC) #36
wjmaclean
https://codereview.chromium.org/1403893003/diff/200001/content/common/input/gesture_event_stream_validator.cc File content/common/input/gesture_event_stream_validator.cc (right): https://codereview.chromium.org/1403893003/diff/200001/content/common/input/gesture_event_stream_validator.cc#newcode108 content/common/input/gesture_event_stream_validator.cc:108: error_msg->append( On 2015/10/19 18:15:38, jdduke wrote: > Hmm, I ...
5 years, 2 months ago (2015-10-19 18:58:49 UTC) #37
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1403893003/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1403893003/220001
5 years, 2 months ago (2015-10-19 19:00:29 UTC) #39
Rick Byers
On 2015/10/19 18:58:49, wjmaclean wrote: > https://codereview.chromium.org/1403893003/diff/200001/content/common/input/gesture_event_stream_validator.cc > File content/common/input/gesture_event_stream_validator.cc (right): > > https://codereview.chromium.org/1403893003/diff/200001/content/common/input/gesture_event_stream_validator.cc#newcode108 > ...
5 years, 2 months ago (2015-10-19 19:07:22 UTC) #40
jdduke (slow)
content/*/input lgtm
5 years, 2 months ago (2015-10-19 19:58:53 UTC) #41
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-19 20:57:04 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1403893003/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1403893003/220001
5 years, 2 months ago (2015-10-20 01:07:35 UTC) #46
commit-bot: I haz the power
Committed patchset #12 (id:220001)
5 years, 2 months ago (2015-10-20 01:13:40 UTC) #47
commit-bot: I haz the power
5 years, 2 months ago (2015-10-20 01:14:18 UTC) #48
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/3bb814794b2509e95944cf36af0cc7538611ae03
Cr-Commit-Position: refs/heads/master@{#354946}

Powered by Google App Engine
This is Rietveld 408576698