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

Issue 2401503002: Align drag threshold across content types. (Closed)

Created:
4 years, 2 months ago by pwnall
Modified:
4 years, 2 months ago
Reviewers:
dcheng
CC:
chromium-reviews, blink-reviews, nzolghadr+blinkwatch_chromium.org, dtapuska+blinkwatch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Align drag threshold across content types. We inherited WebKit's drag and drop implementation, which has a threshold of 40px for links, 5px for images, and 3px for text. While these are very thoughtful defaults, the right behavior for an application is to use drag thresholds dictated by the platform. This CL unifies all the drag and drop thesholds, paving the way for having them read from the underlying platform, which is explored in https://crbug.com/653490 WebKit also used the term "drag hysteresis" instead of threshold. This CL switches to threshold to match the documentation of the platforms that we run on. BUG=20486 Committed: https://crrev.com/fe307646932b8cd2948b88a02f380685341334f3 Cr-Commit-Position: refs/heads/master@{#426447}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Better patch based on feedback, added layout test. #

Total comments: 2

Patch Set 3 : Converted layout test to testharness.js. #

Total comments: 4

Patch Set 4 : Addressed nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -30 lines) Patch
A third_party/WebKit/LayoutTests/fast/events/drag-and-drop-thresholds.html View 1 2 3 1 chunk +96 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/input/MouseEventManager.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/input/MouseEventManager.cpp View 1 2 3 4 chunks +14 lines, -29 lines 0 comments Download

Messages

Total messages: 37 (25 generated)
Peter Kasting
Drive-by (don't make me the reviewer of record) How hard is is it to actually ...
4 years, 2 months ago (2016-10-06 09:05:36 UTC) #5
dcheng
Given that the values are so close together now, I wonder if it even makes ...
4 years, 2 months ago (2016-10-06 09:14:43 UTC) #7
Peter Kasting
On 2016/10/06 09:14:43, dcheng wrote: > Given that the values are so close together now, ...
4 years, 2 months ago (2016-10-06 09:15:36 UTC) #8
pwnall
On 2016/10/06 09:05:36, Peter Kasting wrote: > How hard is is it to actually get ...
4 years, 2 months ago (2016-10-20 01:39:57 UTC) #19
pwnall
dcheng@: Thank you for volunteering to review this CL! PTAL? https://chromiumcodereview.appspot.com/2401503002/diff/1/third_party/WebKit/Source/core/input/MouseEventManager.cpp File third_party/WebKit/Source/core/input/MouseEventManager.cpp (right): https://chromiumcodereview.appspot.com/2401503002/diff/1/third_party/WebKit/Source/core/input/MouseEventManager.cpp#newcode70 ...
4 years, 2 months ago (2016-10-20 01:40:39 UTC) #20
dcheng
https://chromiumcodereview.appspot.com/2401503002/diff/60001/third_party/WebKit/LayoutTests/fast/events/drag-and-drop-thresholds.html File third_party/WebKit/LayoutTests/fast/events/drag-and-drop-thresholds.html (right): https://chromiumcodereview.appspot.com/2401503002/diff/60001/third_party/WebKit/LayoutTests/fast/events/drag-and-drop-thresholds.html#newcode103 third_party/WebKit/LayoutTests/fast/events/drag-and-drop-thresholds.html:103: </script> Thanks for the good test! Would you be ...
4 years, 2 months ago (2016-10-20 02:40:48 UTC) #21
pwnall
PTAL? https://codereview.chromium.org/2401503002/diff/60001/third_party/WebKit/LayoutTests/fast/events/drag-and-drop-thresholds.html File third_party/WebKit/LayoutTests/fast/events/drag-and-drop-thresholds.html (right): https://codereview.chromium.org/2401503002/diff/60001/third_party/WebKit/LayoutTests/fast/events/drag-and-drop-thresholds.html#newcode103 third_party/WebKit/LayoutTests/fast/events/drag-and-drop-thresholds.html:103: </script> On 2016/10/20 02:40:47, dcheng wrote: > Thanks ...
4 years, 2 months ago (2016-10-20 05:25:30 UTC) #26
dcheng
LGTM with nits. https://codereview.chromium.org/2401503002/diff/80001/third_party/WebKit/LayoutTests/fast/events/drag-and-drop-thresholds.html File third_party/WebKit/LayoutTests/fast/events/drag-and-drop-thresholds.html (right): https://codereview.chromium.org/2401503002/diff/80001/third_party/WebKit/LayoutTests/fast/events/drag-and-drop-thresholds.html#newcode27 third_party/WebKit/LayoutTests/fast/events/drag-and-drop-thresholds.html:27: function runTest(t, _, target, deltaX, deltaY, ...
4 years, 2 months ago (2016-10-20 09:11:55 UTC) #29
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/2401503002/100001
4 years, 2 months ago (2016-10-20 09:47:39 UTC) #32
pwnall
Thank you very much for the quick turnaround! https://codereview.chromium.org/2401503002/diff/80001/third_party/WebKit/LayoutTests/fast/events/drag-and-drop-thresholds.html File third_party/WebKit/LayoutTests/fast/events/drag-and-drop-thresholds.html (right): https://codereview.chromium.org/2401503002/diff/80001/third_party/WebKit/LayoutTests/fast/events/drag-and-drop-thresholds.html#newcode27 third_party/WebKit/LayoutTests/fast/events/drag-and-drop-thresholds.html:27: function ...
4 years, 2 months ago (2016-10-20 09:47:46 UTC) #33
commit-bot: I haz the power
Committed patchset #4 (id:100001)
4 years, 2 months ago (2016-10-20 11:05:20 UTC) #35
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:17:17 UTC) #37
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/fe307646932b8cd2948b88a02f380685341334f3
Cr-Commit-Position: refs/heads/master@{#426447}

Powered by Google App Engine
This is Rietveld 408576698