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

Issue 1841053002: Fix mouse wheel scrolling on PDFs. (Closed)

Created:
4 years, 8 months ago by dtapuska
Modified:
4 years, 8 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dglazkov+blink, dtapuska+blinkwatch_chromium.org, dtapuska+chromiumwatch_chromium.org, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix mouse wheel scrolling on PDFs. With the fix for flash not receiving wheel events (see https://codereview.chromium.org/1828203003/) this broke PDFs scrolling since they do want the events but then the events get resent. When the events were resent they didn't have the appropriate canScroll set on them causing gestures not to be generate. Do not conflate canScroll in the mouse wheel event queue to prevent the default action in blink. Just plumb it via a WebSetting instead. This setting will eventually be removed when the default wheel event path is removed. BUG=598658 Committed: https://crrev.com/1f6dc1b24dfb56e0199b851f1c121195e33f2bd6 Cr-Commit-Position: refs/heads/master@{#384081}

Patch Set 1 #

Patch Set 2 : Fix unittest #

Total comments: 2

Patch Set 3 : Fix gesture fling #

Total comments: 4

Patch Set 4 : Return WebGestureEvent #

Total comments: 2

Patch Set 5 : Add comment #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -22 lines) Patch
M content/browser/renderer_host/input/mouse_wheel_event_queue.cc View 1 chunk +1 line, -5 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Settings.in View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/input/EventHandler.cpp View 1 chunk +4 lines, -0 lines 2 comments Download
M third_party/WebKit/Source/web/WebSettingsImpl.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebSettingsImpl.cpp View 1 2 2 chunks +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 3 4 2 chunks +43 lines, -15 lines 0 comments Download
M third_party/WebKit/public/web/WebSettings.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 28 (10 generated)
dtapuska
4 years, 8 months ago (2016-03-29 15:08:39 UTC) #3
tdresser
Why can't the resent events have the canScroll bit set correctly? https://codereview.chromium.org/1841053002/diff/20001/third_party/WebKit/Source/core/frame/Settings.in File third_party/WebKit/Source/core/frame/Settings.in (right): ...
4 years, 8 months ago (2016-03-29 17:23:18 UTC) #4
dtapuska
https://codereview.chromium.org/1841053002/diff/20001/third_party/WebKit/Source/core/frame/Settings.in File third_party/WebKit/Source/core/frame/Settings.in (right): https://codereview.chromium.org/1841053002/diff/20001/third_party/WebKit/Source/core/frame/Settings.in#newcode391 third_party/WebKit/Source/core/frame/Settings.in:391: # Whether the browser process sends gesture events for ...
4 years, 8 months ago (2016-03-29 19:03:44 UTC) #5
tdresser
I'm still not clear on why the resent events can't have the canScroll bit set ...
4 years, 8 months ago (2016-03-29 19:16:03 UTC) #6
dtapuska
https://codereview.chromium.org/1841053002/diff/40001/third_party/WebKit/Source/web/WebViewImpl.cpp File third_party/WebKit/Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/1841053002/diff/40001/third_party/WebKit/Source/web/WebViewImpl.cpp#newcode646 third_party/WebKit/Source/web/WebViewImpl.cpp:646: void WebViewImpl::populateGestureScrollEventFromFling(WebInputEvent::Type type, WebGestureDevice sourceDevice, WebGestureEvent* gestureEvent) On 2016/03/29 ...
4 years, 8 months ago (2016-03-29 19:42:05 UTC) #7
tdresser
LGTM! https://codereview.chromium.org/1841053002/diff/60001/third_party/WebKit/Source/web/WebViewImpl.cpp File third_party/WebKit/Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/1841053002/diff/60001/third_party/WebKit/Source/web/WebViewImpl.cpp#newcode692 third_party/WebKit/Source/web/WebViewImpl.cpp:692: handleGestureEvent(syntheticScrollBegin); We should probably have a TODO here ...
4 years, 8 months ago (2016-03-29 19:51:33 UTC) #8
dtapuska
https://codereview.chromium.org/1841053002/diff/60001/third_party/WebKit/Source/web/WebViewImpl.cpp File third_party/WebKit/Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/1841053002/diff/60001/third_party/WebKit/Source/web/WebViewImpl.cpp#newcode692 third_party/WebKit/Source/web/WebViewImpl.cpp:692: handleGestureEvent(syntheticScrollBegin); On 2016/03/29 19:51:33, tdresser wrote: > We should ...
4 years, 8 months ago (2016-03-29 20:07:01 UTC) #9
dtapuska
On 2016/03/29 20:07:01, dtapuska wrote: > https://codereview.chromium.org/1841053002/diff/60001/third_party/WebKit/Source/web/WebViewImpl.cpp > File third_party/WebKit/Source/web/WebViewImpl.cpp (right): > > https://codereview.chromium.org/1841053002/diff/60001/third_party/WebKit/Source/web/WebViewImpl.cpp#newcode692 > ...
4 years, 8 months ago (2016-03-30 18:19:21 UTC) #12
Charlie Reis
On 2016/03/30 18:19:21, dtapuska wrote: > Ping for review. Ah, I didn't get a mail ...
4 years, 8 months ago (2016-03-30 18:26:26 UTC) #13
dtapuska
On 2016/03/29 17:23:18, tdresser wrote: > Why can't the resent events have the canScroll bit ...
4 years, 8 months ago (2016-03-30 18:34:31 UTC) #14
aelias_OOO_until_Jul13
lgtm
4 years, 8 months ago (2016-03-30 18:59:44 UTC) #15
bokan
In the description you mentioned the "fix for flash not receiving wheel events", could you ...
4 years, 8 months ago (2016-03-30 19:01:50 UTC) #16
dtapuska
On 2016/03/30 19:01:50, bokan wrote: > In the description you mentioned the "fix for flash ...
4 years, 8 months ago (2016-03-30 19:15:32 UTC) #19
dtapuska
https://codereview.chromium.org/1841053002/diff/80001/third_party/WebKit/Source/core/input/EventHandler.cpp File third_party/WebKit/Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/1841053002/diff/80001/third_party/WebKit/Source/core/input/EventHandler.cpp#newcode1849 third_party/WebKit/Source/core/input/EventHandler.cpp:1849: if (settings && settings->wheelGesturesEnabled()) On 2016/03/30 19:01:50, bokan wrote: ...
4 years, 8 months ago (2016-03-30 19:15:45 UTC) #20
bokan
thanks, Blink changes lgtm
4 years, 8 months ago (2016-03-30 19:18:29 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1841053002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1841053002/80001
4 years, 8 months ago (2016-03-30 19:21:46 UTC) #24
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 8 months ago (2016-03-30 20:39:50 UTC) #26
commit-bot: I haz the power
4 years, 8 months ago (2016-03-30 20:41:28 UTC) #28
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/1f6dc1b24dfb56e0199b851f1c121195e33f2bd6
Cr-Commit-Position: refs/heads/master@{#384081}

Powered by Google App Engine
This is Rietveld 408576698