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

Issue 12582009: Implement windows mousewheel scroll by page functionality (Closed)

Created:
7 years, 9 months ago by jamesr
Modified:
7 years, 9 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, cc-bugs_chromium.org, jam
Visibility:
Public.

Description

Implement windows mousewheel scroll by page functionality Windows has a system setting to enable vertical scrolling by page. This implements support for that feature in the compositor's input handling. "By page" means scrolling by a fraction of the visible content height. BUG=180655 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=190082

Patch Set 1 #

Patch Set 2 : works #

Patch Set 3 : basic test, revert bad layer_impl changes #

Patch Set 4 : add some explanation #

Total comments: 2

Patch Set 5 : basic math check #

Patch Set 6 : fix scroll distance calculation to more closely match windows behavior #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -2 lines) Patch
M cc/input/input_handler.h View 1 2 chunks +5 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 1 chunk +43 lines, -0 lines 3 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 1 chunk +33 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 1 chunk +0 lines, -2 lines 0 comments Download
M webkit/compositor_bindings/web_to_ccinput_handler_adapter.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
jamesr
This patch works in manual testing but I haven't written tests yet. It needs a ...
7 years, 9 months ago (2013-03-22 23:57:26 UTC) #1
jamesr
PTAL. This has some comments explaining what this thing is and a super basic sanity ...
7 years, 9 months ago (2013-03-23 00:25:45 UTC) #2
enne (OOO)
https://codereview.chromium.org/12582009/diff/8001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/12582009/diff/8001/cc/trees/layer_tree_host_impl.cc#newcode1587 cc/trees/layer_tree_host_impl.cc:1587: // http://msdn.microsoft.com/en-us/library/windows/desktop/ms645601(v=vs.85).aspx#_win32_The_Mouse_Wheel 80 col. ;) https://codereview.chromium.org/12582009/diff/8001/cc/trees/layer_tree_host_impl.h File cc/trees/layer_tree_host_impl.h (right): ...
7 years, 9 months ago (2013-03-23 00:25:51 UTC) #3
jamesr
On 2013/03/23 00:25:51, enne wrote: > https://codereview.chromium.org/12582009/diff/8001/cc/trees/layer_tree_host_impl.cc > File cc/trees/layer_tree_host_impl.cc (right): > > https://codereview.chromium.org/12582009/diff/8001/cc/trees/layer_tree_host_impl.cc#newcode1587 > ...
7 years, 9 months ago (2013-03-23 00:28:21 UTC) #4
enne (OOO)
lgtm
7 years, 9 months ago (2013-03-23 00:30:53 UTC) #5
jamesr
D'oh, something in the math is a bit off (this doesn't scroll by exactly the ...
7 years, 9 months ago (2013-03-23 00:57:21 UTC) #6
jamesr
I got the wrong magic number for ScrollbarTheme::maxOverlapBetweenPages. I got 40 from here: https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/Source/WebCore/platform/mac/ScrollbarThemeMac.h&q=maxOverlapBetweenPages&sq=package:chromium&l=76&ct=rc&cd=3 but ...
7 years, 9 months ago (2013-03-23 01:02:22 UTC) #7
jamesr
On 2013/03/23 01:02:22, jamesr wrote: > I got the wrong magic number for ScrollbarTheme::maxOverlapBetweenPages. I ...
7 years, 9 months ago (2013-03-23 01:04:21 UTC) #8
Vangelis Kokkevis
https://codereview.chromium.org/12582009/diff/18002/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/12582009/diff/18002/cc/trees/layer_tree_host_impl.cc#newcode1603 cc/trees/layer_tree_host_impl.cc:1603: float height = layer_impl->vertical_scrollbar_layer()->bounds().height(); If you're scrolling an overflow-scroll ...
7 years, 9 months ago (2013-03-23 01:49:14 UTC) #9
jamesr
On 2013/03/23 01:49:14, Vangelis Kokkevis wrote: > https://codereview.chromium.org/12582009/diff/18002/cc/trees/layer_tree_host_impl.cc > File cc/trees/layer_tree_host_impl.cc (right): > > https://codereview.chromium.org/12582009/diff/18002/cc/trees/layer_tree_host_impl.cc#newcode1603 ...
7 years, 9 months ago (2013-03-23 02:25:09 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/12582009/18002
7 years, 9 months ago (2013-03-23 12:48:09 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/12582009/18002
7 years, 9 months ago (2013-03-23 15:04:44 UTC) #12
commit-bot: I haz the power
7 years, 9 months ago (2013-03-23 21:36:17 UTC) #13
Message was sent while issue was closed.
Change committed as 190082

Powered by Google App Engine
This is Rietveld 408576698