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

Issue 2973963003: Release mouse pointer capture when it starts drag (Closed)

Created:
3 years, 5 months ago by Navid Zolghadr
Modified:
3 years, 4 months ago
Reviewers:
mustaq, dtapuska, Rick Byers
CC:
chromium-reviews, blink-reviews-w3ctests_chromium.org, dtapuska+blinkwatch_chromium.org, eae+blinkwatch, dcheng, blink-reviews-events_chromium.org, dglazkov+blink, Navid Zolghadr, blink-reviews, kinuko+watch, blink-reviews-api_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Release mouse pointer capture when it starts drag This CL releases mouse pointer capture if there was one in place when drag operation starts. Note that this doesn't do anything for touch drag operation as that needs to be solved when we have a better coordination of gesture and touch events. BUG=706106, 720201 Review-Url: https://codereview.chromium.org/2973963003 Cr-Commit-Position: refs/heads/master@{#490010} Committed: https://chromium.googlesource.com/chromium/src/+/656f9b939150e9a40553757cea46d385bcb423d9

Patch Set 1 #

Total comments: 6

Patch Set 2 : Add TODOs and comments #

Total comments: 2

Patch Set 3 : Remove is_cancel from parameters #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+227 lines, -0 lines) Patch
A third_party/WebKit/LayoutTests/external/wpt/pointerevents/html/pointerevent_drag_interaction-manual.html View 1 1 chunk +87 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt_automation/pointerevents/html/pointerevent_drag_interaction-manual-automation.js View 1 chunk +17 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/events/PointerEventFactory.h View 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/events/PointerEventFactory.cpp View 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/events/PointerEventFactoryTest.cpp View 1 2 3 chunks +41 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/input/EventHandler.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/input/EventHandler.cpp View 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/input/MouseEventManager.cpp View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/input/PointerEventManager.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/input/PointerEventManager.cpp View 1 1 chunk +26 lines, -0 lines 1 comment Download
M third_party/WebKit/Source/platform/WebPointerEvent.cpp View 1 2 2 chunks +16 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebPointerEvent.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (18 generated)
Navid Zolghadr
3 years, 5 months ago (2017-07-07 19:09:47 UTC) #4
mustaq
LGTM with nits. https://codereview.chromium.org/2973963003/diff/1/third_party/WebKit/LayoutTests/external/wpt/pointerevents/html/pointerevent_drag_interaction-manual.html File third_party/WebKit/LayoutTests/external/wpt/pointerevents/html/pointerevent_drag_interaction-manual.html (right): https://codereview.chromium.org/2973963003/diff/1/third_party/WebKit/LayoutTests/external/wpt/pointerevents/html/pointerevent_drag_interaction-manual.html#newcode47 third_party/WebKit/LayoutTests/external/wpt/pointerevents/html/pointerevent_drag_interaction-manual.html:47: assert_equals(received_events.join(','), "pointerdown@target0,dragstart@target0,pointercancel@target0", "Pointercancel should be fired ...
3 years, 5 months ago (2017-07-10 16:17:31 UTC) #7
Navid Zolghadr
https://codereview.chromium.org/2973963003/diff/1/third_party/WebKit/LayoutTests/external/wpt/pointerevents/html/pointerevent_drag_interaction-manual.html File third_party/WebKit/LayoutTests/external/wpt/pointerevents/html/pointerevent_drag_interaction-manual.html (right): https://codereview.chromium.org/2973963003/diff/1/third_party/WebKit/LayoutTests/external/wpt/pointerevents/html/pointerevent_drag_interaction-manual.html#newcode47 third_party/WebKit/LayoutTests/external/wpt/pointerevents/html/pointerevent_drag_interaction-manual.html:47: assert_equals(received_events.join(','), "pointerdown@target0,dragstart@target0,pointercancel@target0", "Pointercancel should be fired with the expected ...
3 years, 5 months ago (2017-07-11 15:41:06 UTC) #12
dtapuska
https://codereview.chromium.org/2973963003/diff/20001/third_party/WebKit/public/platform/WebPointerEvent.h File third_party/WebKit/public/platform/WebPointerEvent.h (right): https://codereview.chromium.org/2973963003/diff/20001/third_party/WebKit/public/platform/WebPointerEvent.h#newcode30 third_party/WebKit/public/platform/WebPointerEvent.h:30: BLINK_PLATFORM_EXPORT WebPointerEvent(const WebMouseEvent&, bool is_cancel); Can we get rid ...
3 years, 5 months ago (2017-07-11 16:00:52 UTC) #13
Navid Zolghadr
https://codereview.chromium.org/2973963003/diff/20001/third_party/WebKit/public/platform/WebPointerEvent.h File third_party/WebKit/public/platform/WebPointerEvent.h (right): https://codereview.chromium.org/2973963003/diff/20001/third_party/WebKit/public/platform/WebPointerEvent.h#newcode30 third_party/WebKit/public/platform/WebPointerEvent.h:30: BLINK_PLATFORM_EXPORT WebPointerEvent(const WebMouseEvent&, bool is_cancel); On 2017/07/11 16:00:52, dtapuska ...
3 years, 5 months ago (2017-07-12 18:36:45 UTC) #16
Navid Zolghadr
ptal
3 years, 5 months ago (2017-07-13 16:21:23 UTC) #19
dtapuska
On 2017/07/13 16:21:23, Navid Zolghadr wrote: > ptal lgtm
3 years, 5 months ago (2017-07-13 19:20:21 UTC) #20
dtapuska
https://codereview.chromium.org/2973963003/diff/40001/third_party/WebKit/Source/core/input/PointerEventManager.cpp File third_party/WebKit/Source/core/input/PointerEventManager.cpp (right): https://codereview.chromium.org/2973963003/diff/40001/third_party/WebKit/Source/core/input/PointerEventManager.cpp#newcode498 third_party/WebKit/Source/core/input/PointerEventManager.cpp:498: DCHECK(web_pointer_event.GetType() == WebInputEvent::Type::kPointerCancel); DCHECK_EQ is preferred
3 years, 5 months ago (2017-07-13 19:21:36 UTC) #21
Navid Zolghadr
rbyers@chromium.org please take a look at * third_party/WebKit/public/platform/WebPointerEvent.h
3 years, 4 months ago (2017-07-26 19:56:18 UTC) #23
Rick Byers
public/platform LGTM
3 years, 4 months ago (2017-07-26 23:50:06 UTC) #24
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/2973963003/40001
3 years, 4 months ago (2017-07-27 15:35:56 UTC) #27
commit-bot: I haz the power
3 years, 4 months ago (2017-07-27 17:27:26 UTC) #30
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/656f9b939150e9a40553757cea46...

Powered by Google App Engine
This is Rietveld 408576698