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

Issue 2158423002: Wheel scroll latching enabled behind flag. (Closed)

Created:
4 years, 5 months ago by sahel
Modified:
4 years, 4 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, cc-bugs_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, dtapuska+chromiumwatch_chromium.org, jam, kinuko+watch, tdresser+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

The scroll latching feature for touchpad and wheel scrolls is enabled behind a flag. The current patch includes the flag definition and wheel scroll latching. The touchpad scroll latching support will be added in different cls. To test it, use the --enable-features=TouchpadScrollLatching runtime flag. BUG=526463 TEST=MouseWheelEventQueueTests/MouseWheelEventQueueTest.WheelScrollLatching/0, MouseWheelEventQueueTests/MouseWheelEventQueueTest.WheelScrollLatching/1 Committed: https://crrev.com/b9e7f19ba7f4d11ce46fc3217d542193b7904ed8 Cr-Commit-Position: refs/heads/master@{#411974}

Patch Set 1 #

Total comments: 8

Patch Set 2 : features deleted from blink features. #

Total comments: 9

Patch Set 3 : unit_tests_fixed #

Total comments: 11

Patch Set 4 : The patch is only for flag definition and wheel scroll latiching. #

Total comments: 8

Patch Set 5 : The name of the flag modified to represent both wheel and touchpad scroll latching. #

Total comments: 6

Patch Set 6 : flag name changed. #

Total comments: 3

Patch Set 7 : Scroll latching unit test added. #

Total comments: 7

Patch Set 8 : #

Total comments: 18

Patch Set 9 : Wheel scroll latching enabled behind flag #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+194 lines, -21 lines) Patch
M content/browser/renderer_host/input/input_router_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -1 line 0 comments Download
M content/browser/renderer_host/input/mouse_wheel_event_queue.h View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -4 lines 0 comments Download
M content/browser/renderer_host/input/mouse_wheel_event_queue.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -2 lines 0 comments Download
M content/browser/renderer_host/input/mouse_wheel_event_queue_unittest.cc View 1 2 3 4 5 6 7 8 9 7 chunks +84 lines, -14 lines 0 comments Download
M content/public/common/content_features.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_features.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/VirtualTestSuites View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/events/wheel/mouse-wheel-scroll-latching.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +74 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/events/wheel/mouse-wheel-scroll-latching-expected.txt View 1 2 3 4 5 6 7 9 10 1 chunk +7 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/virtual/wheelscrolllatching/fast/events/wheel/README.txt View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 81 (44 generated)
sahel
4 years, 5 months ago (2016-07-19 17:23:13 UTC) #4
sahel
ericrk@chromium.org: Please review changes in layer_tree_host_impl.cc nasko@chromium.org: Please review changes in runtime_features.cc content_features.h content_features.cc esprehn@chromium.org: ...
4 years, 5 months ago (2016-07-19 17:40:20 UTC) #6
dtapuska
https://codereview.chromium.org/2158423002/diff/1/content/browser/renderer_host/input/mouse_wheel_event_queue.cc File content/browser/renderer_host/input/mouse_wheel_event_queue.cc (right): https://codereview.chromium.org/2158423002/diff/1/content/browser/renderer_host/input/mouse_wheel_event_queue.cc#newcode46 content/browser/renderer_host/input/mouse_wheel_event_queue.cc:46: base::FeatureList::IsEnabled(features::kTouchpadScrollLatching); I don't think this will build on mac. ...
4 years, 5 months ago (2016-07-19 17:41:31 UTC) #8
dtapuska
On 2016/07/19 17:41:31, dtapuska wrote: > https://codereview.chromium.org/2158423002/diff/1/content/browser/renderer_host/input/mouse_wheel_event_queue.cc > File content/browser/renderer_host/input/mouse_wheel_event_queue.cc (right): > > https://codereview.chromium.org/2158423002/diff/1/content/browser/renderer_host/input/mouse_wheel_event_queue.cc#newcode46 > ...
4 years, 5 months ago (2016-07-19 17:42:29 UTC) #9
esprehn
Why are we addinga runtime flag for blink if nothing uses it in this patch?
4 years, 5 months ago (2016-07-19 19:21:37 UTC) #10
dtapuska
On 2016/07/19 19:21:37, esprehn wrote: > Why are we addinga runtime flag for blink if ...
4 years, 5 months ago (2016-07-19 19:39:23 UTC) #11
esprehn
On 2016/07/19 at 19:39:23, dtapuska wrote: > On 2016/07/19 19:21:37, esprehn wrote: > > Why ...
4 years, 5 months ago (2016-07-19 19:41:09 UTC) #12
esprehn
https://codereview.chromium.org/2158423002/diff/20001/third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in File third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in (right): https://codereview.chromium.org/2158423002/diff/20001/third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in#newcode222 third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in:222: TouchpadScrollLatching You don't need this one either. :)
4 years, 5 months ago (2016-07-19 19:42:03 UTC) #13
ericrk
https://codereview.chromium.org/2158423002/diff/20001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/2158423002/diff/20001/cc/trees/layer_tree_host_impl.cc#newcode2691 cc/trees/layer_tree_host_impl.cc:2691: return FlingScrollBegin(); To make sure I'm understanding this: Is ...
4 years, 5 months ago (2016-07-19 20:21:51 UTC) #14
sahel
https://codereview.chromium.org/2158423002/diff/1/content/browser/renderer_host/input/mouse_wheel_event_queue.cc File content/browser/renderer_host/input/mouse_wheel_event_queue.cc (right): https://codereview.chromium.org/2158423002/diff/1/content/browser/renderer_host/input/mouse_wheel_event_queue.cc#newcode46 content/browser/renderer_host/input/mouse_wheel_event_queue.cc:46: base::FeatureList::IsEnabled(features::kTouchpadScrollLatching); On 2016/07/19 17:41:31, dtapuska wrote: > I don't ...
4 years, 5 months ago (2016-07-19 22:47:03 UTC) #15
nasko
content/public/common looks good. I'll stamp it once all the other reviews are complete. https://codereview.chromium.org/2158423002/diff/40001/content/public/common/content_features.cc File ...
4 years, 5 months ago (2016-07-20 00:07:35 UTC) #16
ericrk
layer_tree_host_impl.cc LGTM https://codereview.chromium.org/2158423002/diff/20001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/2158423002/diff/20001/cc/trees/layer_tree_host_impl.cc#newcode3246 cc/trees/layer_tree_host_impl.cc:3246: if (scroll_state->is_in_inertial_phase()) { On 2016/07/19 22:47:03, sahel ...
4 years, 5 months ago (2016-07-20 17:44:35 UTC) #17
tdresser
https://codereview.chromium.org/2158423002/diff/40001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/2158423002/diff/40001/cc/trees/layer_tree_host_impl.cc#newcode2690 cc/trees/layer_tree_host_impl.cc:2690: // In Mac a scroll begin with inertial_phase = ...
4 years, 5 months ago (2016-07-22 15:43:15 UTC) #19
sahel
As discussed with tdresser@ I split the cl into two different cls: The current patch ...
4 years, 5 months ago (2016-07-25 15:54:53 UTC) #22
nasko
https://codereview.chromium.org/2158423002/diff/60001/content/browser/renderer_host/input/mouse_wheel_event_queue.cc File content/browser/renderer_host/input/mouse_wheel_event_queue.cc (right): https://codereview.chromium.org/2158423002/diff/60001/content/browser/renderer_host/input/mouse_wheel_event_queue.cc#newcode41 content/browser/renderer_host/input/mouse_wheel_event_queue.cc:41: touchpad_scroll_latching_(touchpad_scroll_latching), It doesn't seem this member variable is used ...
4 years, 5 months ago (2016-07-25 16:00:18 UTC) #23
sahel
https://codereview.chromium.org/2158423002/diff/60001/content/browser/renderer_host/input/mouse_wheel_event_queue.cc File content/browser/renderer_host/input/mouse_wheel_event_queue.cc (right): https://codereview.chromium.org/2158423002/diff/60001/content/browser/renderer_host/input/mouse_wheel_event_queue.cc#newcode41 content/browser/renderer_host/input/mouse_wheel_event_queue.cc:41: touchpad_scroll_latching_(touchpad_scroll_latching), On 2016/07/25 16:00:18, nasko wrote: > It doesn't ...
4 years, 5 months ago (2016-07-25 16:05:11 UTC) #24
tdresser
https://codereview.chromium.org/2158423002/diff/40001/content/browser/renderer_host/input/mouse_wheel_event_queue.h File content/browser/renderer_host/input/mouse_wheel_event_queue.h (right): https://codereview.chromium.org/2158423002/diff/40001/content/browser/renderer_host/input/mouse_wheel_event_queue.h#newcode23 content/browser/renderer_host/input/mouse_wheel_event_queue.h:23: const int64_t kDefaultWheelScrollLatchingTransactionMs = 100; On 2016/07/25 15:54:53, sahel ...
4 years, 5 months ago (2016-07-25 16:46:55 UTC) #25
sahel
https://codereview.chromium.org/2158423002/diff/60001/content/browser/renderer_host/input/mouse_wheel_event_queue.cc File content/browser/renderer_host/input/mouse_wheel_event_queue.cc (right): https://codereview.chromium.org/2158423002/diff/60001/content/browser/renderer_host/input/mouse_wheel_event_queue.cc#newcode44 content/browser/renderer_host/input/mouse_wheel_event_queue.cc:44: scroll_transaction_ms_ = touchpad_scroll_latching_ On 2016/07/25 16:46:55, tdresser wrote: > ...
4 years, 5 months ago (2016-07-25 17:58:26 UTC) #28
tdresser
Looking great! Can you add a test? https://codereview.chromium.org/2158423002/diff/120001/content/browser/renderer_host/input/mouse_wheel_event_queue.cc File content/browser/renderer_host/input/mouse_wheel_event_queue.cc (right): https://codereview.chromium.org/2158423002/diff/120001/content/browser/renderer_host/input/mouse_wheel_event_queue.cc#newcode41 content/browser/renderer_host/input/mouse_wheel_event_queue.cc:41: touchpad_wheel_scroll_latching_(touchpad_wheel_scroll_latching), Sorry ...
4 years, 5 months ago (2016-07-25 20:37:29 UTC) #29
sahel
https://codereview.chromium.org/2158423002/diff/120001/content/browser/renderer_host/input/mouse_wheel_event_queue.cc File content/browser/renderer_host/input/mouse_wheel_event_queue.cc (right): https://codereview.chromium.org/2158423002/diff/120001/content/browser/renderer_host/input/mouse_wheel_event_queue.cc#newcode41 content/browser/renderer_host/input/mouse_wheel_event_queue.cc:41: touchpad_wheel_scroll_latching_(touchpad_wheel_scroll_latching), On 2016/07/25 20:37:29, tdresser wrote: > Sorry for ...
4 years, 5 months ago (2016-07-25 21:28:35 UTC) #30
dtapuska
https://codereview.chromium.org/2158423002/diff/140001/content/browser/renderer_host/input/mouse_wheel_event_queue_unittest.cc File content/browser/renderer_host/input/mouse_wheel_event_queue_unittest.cc (right): https://codereview.chromium.org/2158423002/diff/140001/content/browser/renderer_host/input/mouse_wheel_event_queue_unittest.cc#newcode151 content/browser/renderer_host/input/mouse_wheel_event_queue_unittest.cc:151: new MouseWheelEventQueue(this, kTouchpadAndWheelScrollLatching)); should this be a parameterized test? ...
4 years, 4 months ago (2016-07-25 22:31:07 UTC) #31
tdresser
https://codereview.chromium.org/2158423002/diff/140001/content/browser/renderer_host/input/mouse_wheel_event_queue_unittest.cc File content/browser/renderer_host/input/mouse_wheel_event_queue_unittest.cc (right): https://codereview.chromium.org/2158423002/diff/140001/content/browser/renderer_host/input/mouse_wheel_event_queue_unittest.cc#newcode151 content/browser/renderer_host/input/mouse_wheel_event_queue_unittest.cc:151: new MouseWheelEventQueue(this, kTouchpadAndWheelScrollLatching)); On 2016/07/25 22:31:07, dtapuska wrote: > ...
4 years, 4 months ago (2016-07-26 12:19:01 UTC) #32
sahel
https://codereview.chromium.org/2158423002/diff/140001/content/browser/renderer_host/input/mouse_wheel_event_queue_unittest.cc File content/browser/renderer_host/input/mouse_wheel_event_queue_unittest.cc (right): https://codereview.chromium.org/2158423002/diff/140001/content/browser/renderer_host/input/mouse_wheel_event_queue_unittest.cc#newcode151 content/browser/renderer_host/input/mouse_wheel_event_queue_unittest.cc:151: new MouseWheelEventQueue(this, kTouchpadAndWheelScrollLatching)); On 2016/07/25 22:31:07, dtapuska wrote: > ...
4 years, 4 months ago (2016-07-26 21:20:13 UTC) #34
sahel
I added a unittest to test the latching feature with both enabled and disabled values. ...
4 years, 4 months ago (2016-07-27 14:25:32 UTC) #35
tdresser
We do want an end-to-end integration test as well, which is probably easiest to write ...
4 years, 4 months ago (2016-07-27 14:38:12 UTC) #36
sahel
I had to add a virtual test suite because I couldn't enable the feature with ...
4 years, 4 months ago (2016-08-11 15:57:40 UTC) #37
tdresser
+lanwei@ to comment on use of gpu benchmarking extension. https://codereview.chromium.org/2158423002/diff/160001/content/browser/renderer_host/input/mouse_wheel_event_queue_unittest.cc File content/browser/renderer_host/input/mouse_wheel_event_queue_unittest.cc (right): https://codereview.chromium.org/2158423002/diff/160001/content/browser/renderer_host/input/mouse_wheel_event_queue_unittest.cc#newcode404 content/browser/renderer_host/input/mouse_wheel_event_queue_unittest.cc:404: ...
4 years, 4 months ago (2016-08-12 13:28:32 UTC) #39
sahel
https://codereview.chromium.org/2158423002/diff/180001/content/browser/renderer_host/input/mouse_wheel_event_queue.cc File content/browser/renderer_host/input/mouse_wheel_event_queue.cc (right): https://codereview.chromium.org/2158423002/diff/180001/content/browser/renderer_host/input/mouse_wheel_event_queue.cc#newcode41 content/browser/renderer_host/input/mouse_wheel_event_queue.cc:41: enable_scroll_latching_(enable_scroll_latching), On 2016/08/12 13:28:32, tdresser wrote: > Do we ...
4 years, 4 months ago (2016-08-12 15:45:29 UTC) #40
tdresser
LGTM!
4 years, 4 months ago (2016-08-12 15:52:04 UTC) #41
dtapuska
lgtm
4 years, 4 months ago (2016-08-12 15:57:52 UTC) #42
lanwei
LGTM on the chrome.gpuBenchmarking function. You cannot pass null to the function, have to be ...
4 years, 4 months ago (2016-08-12 16:18:44 UTC) #51
nasko
content/ rubberstamp LGTM
4 years, 4 months ago (2016-08-12 16:19:50 UTC) #52
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/2158423002/240001
4 years, 4 months ago (2016-08-15 13:52:32 UTC) #68
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/51952) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 4 months ago (2016-08-15 13:54:25 UTC) #70
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/2158423002/260001
4 years, 4 months ago (2016-08-15 16:47:35 UTC) #77
commit-bot: I haz the power
Committed patchset #12 (id:260001)
4 years, 4 months ago (2016-08-15 16:51:39 UTC) #79
commit-bot: I haz the power
4 years, 4 months ago (2016-08-15 16:55:04 UTC) #81
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/b9e7f19ba7f4d11ce46fc3217d542193b7904ed8
Cr-Commit-Position: refs/heads/master@{#411974}

Powered by Google App Engine
This is Rietveld 408576698