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

Issue 2289213002: Implement Middle Click Autoscroll on all platforms not just Windows (Closed)

Created:
4 years, 3 months ago by sunyunjia
Modified:
4 years, 3 months ago
CC:
blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, dtapuska+blinkwatch_chromium.org, eae+blinkwatch, nzolghadr+blinkwatch_chromium.org, rwlbuis, sof
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement Middle Click Autoscroll on all platforms not just Windows. Previously this was only enabled on Windows using #if OS(WIN). It is now implemented as a RuntimeFeature, and is still enabled by default on Windows. This feature is renamed from Pan Scrolling which wasn't self-explanatory. BUG=522011 Committed: https://crrev.com/87f287bbe619d07e907dc00f48e2a6ad725367c1 Cr-Commit-Position: refs/heads/master@{#417454}

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : Fixed two test and set panscrolling enabled by default for Windows #

Patch Set 4 : Update a test #

Total comments: 3

Patch Set 5 : Rename the files. #

Total comments: 4

Patch Set 6 : Add DCHECK and change the names more thoroughly #

Patch Set 7 : DCHECK and change the names more thoroughly. #

Patch Set 8 : DCHECK and change the names more thoroughly #

Patch Set 9 : Merge branch 'master' of https://chromium.googlesource.com/chromium/src into panscroll #

Patch Set 10 : Merge branch 'master' of https://chromium.googlesource.com/chromium/src into panscroll #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -958 lines) Patch
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/NeverFixTests View 1 2 3 4 5 1 chunk +0 lines, -11 lines 0 comments Download
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -2 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/events/middleClickAutoscroll-click.html View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A + third_party/WebKit/LayoutTests/fast/events/middleClickAutoscroll-click-expected.txt View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/events/middleClickAutoscroll-click-hyperlink.html View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/events/middleClickAutoscroll-click-hyperlink-expected.txt View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/events/middleClickAutoscroll-crash.html View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/events/middleClickAutoscroll-crash-expected.txt View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/events/middleClickAutoscroll-drag.html View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A + third_party/WebKit/LayoutTests/fast/events/middleClickAutoscroll-drag-expected.txt View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/events/middleClickAutoscroll-drag-scrollable-iframe-div.html View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/events/middleClickAutoscroll-drag-scrollable-iframe-div-expected.txt View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/events/middleClickAutoscroll-event-fired.html View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A + third_party/WebKit/LayoutTests/fast/events/middleClickAutoscroll-event-fired-expected.txt View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/events/middleClickAutoscroll-in-iframe.html View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A + third_party/WebKit/LayoutTests/fast/events/middleClickAutoscroll-in-iframe-expected.txt View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/events/middleClickAutoscroll-modal-scrollable-iframe-div.html View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/events/middleClickAutoscroll-modal-scrollable-iframe-div-expected.txt View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/events/middleClickAutoscroll-nested-divs.html View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A + third_party/WebKit/LayoutTests/fast/events/middleClickAutoscroll-nested-divs-expected.txt View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/events/middleClickAutoscroll-nested-divs-forbidden.html View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A + third_party/WebKit/LayoutTests/fast/events/middleClickAutoscroll-nested-divs-forbidden-expected.txt View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/events/middleClickAutoscroll-panIcon.html View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/events/middleClickAutoscroll-panIcon-expected.html View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/events/middleClickAutoscroll-use-count.html View 1 2 3 4 5 6 7 1 chunk +4 lines, -4 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/events/panScroll-click.html View 1 2 3 4 1 chunk +0 lines, -32 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/events/panScroll-click-expected.txt View 1 2 3 4 1 chunk +0 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/events/panScroll-click-hyperlink.html View 1 2 3 4 1 chunk +0 lines, -92 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/events/panScroll-click-hyperlink-expected.txt View 1 2 3 4 1 chunk +0 lines, -10 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/events/panScroll-crash.html View 1 2 3 4 1 chunk +0 lines, -12 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/events/panScroll-crash-expected.txt View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
D third_party/WebKit/LayoutTests/fast/events/panScroll-drag.html View 1 2 3 4 1 chunk +0 lines, -32 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/events/panScroll-drag-expected.txt View 1 2 3 4 1 chunk +0 lines, -6 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/events/panScroll-drag-scrollable-iframe-div.html View 1 2 3 4 1 chunk +0 lines, -76 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/events/panScroll-drag-scrollable-iframe-div-expected.txt View 1 2 3 4 1 chunk +0 lines, -11 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/events/panScroll-event-fired.html View 1 2 3 4 1 chunk +0 lines, -37 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/events/panScroll-event-fired-expected.txt View 1 2 3 4 1 chunk +0 lines, -6 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/events/panScroll-in-iframe.html View 1 2 3 4 1 chunk +0 lines, -31 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/events/panScroll-in-iframe-expected.txt View 1 2 3 4 1 chunk +0 lines, -6 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/events/panScroll-modal-scrollable-iframe-div.html View 1 2 3 4 1 chunk +0 lines, -76 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/events/panScroll-modal-scrollable-iframe-div-expected.txt View 1 2 3 4 1 chunk +0 lines, -11 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/events/panScroll-nested-divs.html View 1 2 3 4 1 chunk +0 lines, -46 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/events/panScroll-nested-divs-expected.txt View 1 2 3 4 1 chunk +0 lines, -6 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/events/panScroll-nested-divs-forbidden.html View 1 2 3 4 1 chunk +0 lines, -52 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/events/panScroll-nested-divs-forbidden-expected.txt View 1 2 3 4 1 chunk +0 lines, -16 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/events/panScroll-panIcon.html View 1 2 3 4 1 chunk +0 lines, -61 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/events/panScroll-panIcon-expected.html View 1 2 3 4 1 chunk +0 lines, -44 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/events/panScroll-use-count.html View 1 2 3 4 5 6 7 1 chunk +0 lines, -35 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/events/pointerevents/multi-pointer-preventdefault.html View 1 2 4 2 chunks +6 lines, -6 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/events/resources/middleClickAutoscroll.js View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/events/resources/panScroll.js View 1 2 3 4 1 chunk +0 lines, -82 lines 0 comments Download
A + third_party/WebKit/LayoutTests/platform/win/fast/events/middleClickAutoscroll-click-hyperlink-expected.txt View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/fast/events/panScroll-click-hyperlink-expected.txt View 1 2 3 4 1 chunk +0 lines, -11 lines 0 comments Download
A + third_party/WebKit/ManualTests/middleClickAutoscroll.html View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download
D third_party/WebKit/ManualTests/panScroll.html View 1 2 3 4 1 chunk +0 lines, -32 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Node.cpp View 1 2 3 4 5 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounter.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/input/EventHandler.h View 1 2 3 4 5 1 chunk +1 line, -4 lines 0 comments Download
M third_party/WebKit/Source/core/input/EventHandler.cpp View 1 2 3 4 5 5 chunks +20 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/core/input/KeyboardEventManager.cpp View 1 2 3 4 5 1 chunk +3 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/input/ScrollManager.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/input/ScrollManager.cpp View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/page/AutoscrollController.h View 1 2 3 4 5 2 chunks +9 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/core/page/AutoscrollController.cpp View 1 2 3 4 5 6 7 8 9 8 chunks +34 lines, -44 lines 0 comments Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebRuntimeFeatures.cpp View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebRuntimeFeatures.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 99 (77 generated)
sunyunjia
Hi Dave, I'm not sure if this is the right approach for this issue. Can ...
4 years, 3 months ago (2016-08-30 16:05:07 UTC) #4
dtapuska
On 2016/08/30 at 16:05:07, sunyunjia wrote: > Hi Dave, I'm not sure if this is ...
4 years, 3 months ago (2016-08-30 17:37:57 UTC) #9
sunyunjia
PTAL, Thanks! https://codereview.chromium.org/2289213002/diff/140001/third_party/WebKit/Source/core/input/EventHandler.cpp File third_party/WebKit/Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/2289213002/diff/140001/third_party/WebKit/Source/core/input/EventHandler.cpp#newcode839 third_party/WebKit/Source/core/input/EventHandler.cpp:839: updatePointerTargetAndDispatchEvents(EventTypeNames::mousedown, mev.innerNode(), m_clickCount, mev.event()); I'm not sure ...
4 years, 3 months ago (2016-09-01 01:50:31 UTC) #31
Navid Zolghadr
https://codereview.chromium.org/2289213002/diff/140001/third_party/WebKit/Source/core/input/EventHandler.cpp File third_party/WebKit/Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/2289213002/diff/140001/third_party/WebKit/Source/core/input/EventHandler.cpp#newcode839 third_party/WebKit/Source/core/input/EventHandler.cpp:839: updatePointerTargetAndDispatchEvents(EventTypeNames::mousedown, mev.innerNode(), m_clickCount, mev.event()); On 2016/09/01 01:50:31, sunyunjia wrote: ...
4 years, 3 months ago (2016-09-02 17:36:57 UTC) #33
Rick Byers
bokan@ has more context in this code than I do, so he's probably the better ...
4 years, 3 months ago (2016-09-06 14:12:01 UTC) #37
bokan
Code looks fine. Please add in the description that we've changed the name from Pan ...
4 years, 3 months ago (2016-09-07 16:33:47 UTC) #45
sunyunjia
PTAL, thanks!
4 years, 3 months ago (2016-09-08 02:33:30 UTC) #63
jochen (gone - plz use gerrit)
content/ lgtm please reformat the CL description according to chromium.org/developers/contributing-code#Writing_change_list_descriptions
4 years, 3 months ago (2016-09-08 12:43:04 UTC) #64
jochen (gone - plz use gerrit)
actually, please don't rename the use counter, that'll just confuse the UMA dashboard. Either use ...
4 years, 3 months ago (2016-09-08 12:44:27 UTC) #65
dtapuska
On 2016/09/08 12:44:27, jochen wrote: > actually, please don't rename the use counter, that'll just ...
4 years, 3 months ago (2016-09-08 13:09:10 UTC) #66
jochen (gone - plz use gerrit)
can you please ask somebody from the metrics team to chime in (//tools/metrics/OWNERS I think)?
4 years, 3 months ago (2016-09-08 13:50:44 UTC) #67
bokan
Source/core lgtm. As Jochen mentioned, please format the description according to https://www.chromium.org/developers/contributing-code#TOC-Writing-change-list-descriptions. You may want ...
4 years, 3 months ago (2016-09-08 13:57:39 UTC) #68
sunyunjia
On 2016/09/08 13:09:10, dtapuska wrote: > On 2016/09/08 12:44:27, jochen wrote: > > actually, please ...
4 years, 3 months ago (2016-09-08 14:26:34 UTC) #72
tdresser
On 2016/09/08 14:26:34, sunyunjia wrote: > On 2016/09/08 13:09:10, dtapuska wrote: > > On 2016/09/08 ...
4 years, 3 months ago (2016-09-08 14:29:54 UTC) #73
Ilya Sherman
On 2016/09/08 14:29:54, tdresser wrote: > On 2016/09/08 14:26:34, sunyunjia wrote: > > On 2016/09/08 ...
4 years, 3 months ago (2016-09-08 19:51:06 UTC) #74
tdresser
On 2016/09/08 19:51:06, Ilya Sherman (Away Sep 9-20) wrote: > On 2016/09/08 14:29:54, tdresser wrote: ...
4 years, 3 months ago (2016-09-08 19:52:06 UTC) #75
Ilya Sherman
On 2016/09/08 19:52:06, tdresser wrote: > On 2016/09/08 19:51:06, Ilya Sherman (Away Sep 9-20) wrote: ...
4 years, 3 months ago (2016-09-08 19:54:57 UTC) #76
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2289213002/260001
4 years, 3 months ago (2016-09-08 19:57:32 UTC) #79
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/255848)
4 years, 3 months ago (2016-09-08 20:06:37 UTC) #81
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2289213002/300001
4 years, 3 months ago (2016-09-09 00:29:06 UTC) #95
commit-bot: I haz the power
Committed patchset #10 (id:300001)
4 years, 3 months ago (2016-09-09 00:38:40 UTC) #97
commit-bot: I haz the power
4 years, 3 months ago (2016-09-09 00:42:02 UTC) #99
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/87f287bbe619d07e907dc00f48e2a6ad725367c1
Cr-Commit-Position: refs/heads/master@{#417454}

Powered by Google App Engine
This is Rietveld 408576698