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

Issue 1019153002: Mac: Add rails for scrolling. (Closed)

Created:
5 years, 9 months ago by ccameron
Modified:
5 years, 9 months ago
Reviewers:
jdduke (slow), tdresser
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, jam, penghuang+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, James Su, jdduke+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mac: Add rails for scrolling. Add a MouseWheelRailsFilter structure to compute the rail mode for input events, based on some simple hysteresis. Make InputHandlerProxy honor the rails requests of MouseWheel events. This is not an ideal long-term implementation -- the rails should be passed to cc::InputHandler, so that they can be handled correctly by other event types. This version is being used so that it may be merged. BUG=468454 Committed: https://crrev.com/a51f1f51c94835659073afa96a7a57f3544c6da9 Cr-Commit-Position: refs/heads/master@{#321738}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Incorporate review feeback #

Total comments: 4

Patch Set 3 : s/fabsf/std::abs/g #

Total comments: 7

Patch Set 4 : Incorporate review feedback #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -11 lines) Patch
A content/browser/renderer_host/input/mouse_wheel_rails_filter_mac.h View 1 1 chunk +27 lines, -0 lines 2 comments Download
A content/browser/renderer_host/input/mouse_wheel_rails_filter_mac.cc View 1 2 1 chunk +38 lines, -0 lines 0 comments Download
A content/browser/renderer_host/input/mouse_wheel_rails_filter_unittest_mac.cc View 1 2 3 1 chunk +64 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.h View 1 2 3 4 chunks +6 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M content/content_browser.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/input/input_handler_proxy.cc View 1 3 chunks +16 lines, -8 lines 1 comment Download

Messages

Total messages: 17 (3 generated)
jdduke (slow)
https://codereview.chromium.org/1019153002/diff/1/content/browser/renderer_host/input/mouse_wheel_rails_filter_mac.h File content/browser/renderer_host/input/mouse_wheel_rails_filter_mac.h (right): https://codereview.chromium.org/1019153002/diff/1/content/browser/renderer_host/input/mouse_wheel_rails_filter_mac.h#newcode17 content/browser/renderer_host/input/mouse_wheel_rails_filter_mac.h:17: ~MouseWheelRailsFilterMac(); I think we're missing a file here?
5 years, 9 months ago (2015-03-18 23:39:14 UTC) #2
ccameron
Yup -- updated https://codereview.chromium.org/1019153002/diff/1/content/browser/renderer_host/input/mouse_wheel_rails_filter_mac.h File content/browser/renderer_host/input/mouse_wheel_rails_filter_mac.h (right): https://codereview.chromium.org/1019153002/diff/1/content/browser/renderer_host/input/mouse_wheel_rails_filter_mac.h#newcode17 content/browser/renderer_host/input/mouse_wheel_rails_filter_mac.h:17: ~MouseWheelRailsFilterMac(); On 2015/03/18 23:39:13, jdduke wrote: ...
5 years, 9 months ago (2015-03-19 00:09:21 UTC) #3
jdduke (slow)
https://codereview.chromium.org/1019153002/diff/20001/content/browser/renderer_host/input/mouse_wheel_rails_filter_mac.cc File content/browser/renderer_host/input/mouse_wheel_rails_filter_mac.cc (right): https://codereview.chromium.org/1019153002/diff/20001/content/browser/renderer_host/input/mouse_wheel_rails_filter_mac.cc#newcode21 content/browser/renderer_host/input/mouse_wheel_rails_filter_mac.cc:21: const float kDecayConstant = 0.8f; Without hooking this to ...
5 years, 9 months ago (2015-03-19 00:21:54 UTC) #4
ccameron
Updated https://codereview.chromium.org/1019153002/diff/20001/content/browser/renderer_host/input/mouse_wheel_rails_filter_mac.cc File content/browser/renderer_host/input/mouse_wheel_rails_filter_mac.cc (right): https://codereview.chromium.org/1019153002/diff/20001/content/browser/renderer_host/input/mouse_wheel_rails_filter_mac.cc#newcode21 content/browser/renderer_host/input/mouse_wheel_rails_filter_mac.cc:21: const float kDecayConstant = 0.8f; On 2015/03/19 00:21:53, ...
5 years, 9 months ago (2015-03-19 00:42:26 UTC) #5
tdresser
https://codereview.chromium.org/1019153002/diff/40001/content/browser/renderer_host/input/mouse_wheel_rails_filter_mac.cc File content/browser/renderer_host/input/mouse_wheel_rails_filter_mac.cc (right): https://codereview.chromium.org/1019153002/diff/40001/content/browser/renderer_host/input/mouse_wheel_rails_filter_mac.cc#newcode33 content/browser/renderer_host/input/mouse_wheel_rails_filter_mac.cc:33: if (decayed_delta_.y() >= decayed_delta_.x()) Do we want to rail ...
5 years, 9 months ago (2015-03-19 13:03:41 UTC) #7
ccameron
Thanks -- updated. https://codereview.chromium.org/1019153002/diff/40001/content/browser/renderer_host/input/mouse_wheel_rails_filter_mac.cc File content/browser/renderer_host/input/mouse_wheel_rails_filter_mac.cc (right): https://codereview.chromium.org/1019153002/diff/40001/content/browser/renderer_host/input/mouse_wheel_rails_filter_mac.cc#newcode33 content/browser/renderer_host/input/mouse_wheel_rails_filter_mac.cc:33: if (decayed_delta_.y() >= decayed_delta_.x()) On 2015/03/19 ...
5 years, 9 months ago (2015-03-19 19:33:15 UTC) #8
tdresser
https://codereview.chromium.org/1019153002/diff/40001/content/browser/renderer_host/input/mouse_wheel_rails_filter_mac.cc File content/browser/renderer_host/input/mouse_wheel_rails_filter_mac.cc (right): https://codereview.chromium.org/1019153002/diff/40001/content/browser/renderer_host/input/mouse_wheel_rails_filter_mac.cc#newcode33 content/browser/renderer_host/input/mouse_wheel_rails_filter_mac.cc:33: if (decayed_delta_.y() >= decayed_delta_.x()) On 2015/03/19 19:33:14, ccameron wrote: ...
5 years, 9 months ago (2015-03-19 20:57:51 UTC) #9
ccameron
On 2015/03/19 20:57:51, tdresser wrote: > https://codereview.chromium.org/1019153002/diff/40001/content/browser/renderer_host/input/mouse_wheel_rails_filter_mac.cc > File content/browser/renderer_host/input/mouse_wheel_rails_filter_mac.cc > (right): > > https://codereview.chromium.org/1019153002/diff/40001/content/browser/renderer_host/input/mouse_wheel_rails_filter_mac.cc#newcode33 ...
5 years, 9 months ago (2015-03-19 21:05:58 UTC) #10
jdduke (slow)
content/browser/renderer_host/input and content/renderer/input lgtm. A sanity InputHandlerProxyTest would be welcome :). https://codereview.chromium.org/1019153002/diff/60001/content/browser/renderer_host/input/mouse_wheel_rails_filter_mac.h File content/browser/renderer_host/input/mouse_wheel_rails_filter_mac.h (right): ...
5 years, 9 months ago (2015-03-19 22:27:45 UTC) #11
jdduke (slow)
On 2015/03/19 20:57:51, tdresser wrote: > On 2015/03/19 19:33:14, ccameron wrote: > > Exactly. This ...
5 years, 9 months ago (2015-03-19 22:30:58 UTC) #12
tdresser
On 2015/03/19 22:30:58, jdduke wrote: > On 2015/03/19 20:57:51, tdresser wrote: > > On 2015/03/19 ...
5 years, 9 months ago (2015-03-20 15:43:46 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1019153002/60001
5 years, 9 months ago (2015-03-23 05:23:14 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 9 months ago (2015-03-23 06:21:40 UTC) #16
commit-bot: I haz the power
5 years, 9 months ago (2015-03-23 06:22:10 UTC) #17
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/a51f1f51c94835659073afa96a7a57f3544c6da9
Cr-Commit-Position: refs/heads/master@{#321738}

Powered by Google App Engine
This is Rietveld 408576698