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

Issue 1635863006: Pointerevent capture APIs (Closed)

Created:
4 years, 11 months ago by Navid Zolghadr
Modified:
4 years, 9 months ago
Reviewers:
mustaq, Rick Byers
CC:
chromium-reviews, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews-bindings_chromium.org, blink-reviews, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Pointerevent capture APIs Adding setPointerCapture and releasePointerCapture APIs It's the first one in a series of planned changes to implement capture. Adds basic capturing capabilities for mouse using the set and release APIs. We will cover got/lost firing in crbug/592280. Transition events for mouse is blocking on crbug/587955. BUG=580169 Committed: https://crrev.com/ded5afeb2fc486424ed5c5b2b135edbd708d4a52 Cr-Commit-Position: refs/heads/master@{#379558}

Patch Set 1 #

Patch Set 2 : #

Total comments: 22

Patch Set 3 : Rebasing and applying the comments #

Patch Set 4 : Yet another rebase #

Total comments: 48

Patch Set 5 : Applying comments #

Patch Set 6 : Rebasing #

Patch Set 7 : #

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+568 lines, -47 lines) Patch
A third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/mouse-pointer-capture.html View 1 2 3 4 5 6 7 1 chunk +109 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/mouse-pointer-capture-expected.txt View 1 2 3 4 5 6 7 1 chunk +147 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/PrivateScriptRunner.js View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/DOMException.cpp View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Element.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Element.cpp View 1 2 3 4 5 3 chunks +26 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Element.idl View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ExceptionCode.h View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/events/PointerEventFactory.h View 1 2 2 chunks +6 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/events/PointerEventFactory.cpp View 1 2 3 4 5 6 3 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/input/EventHandler.h View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/input/EventHandler.cpp View 1 2 3 4 5 1 chunk +21 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/input/PointerEventManager.h View 1 2 3 4 3 chunks +40 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/input/PointerEventManager.cpp View 1 2 3 4 5 10 chunks +191 lines, -36 lines 0 comments Download

Messages

Total messages: 35 (6 generated)
Navid Zolghadr
Here is an initial implementation of pointer captures. There are a few things missing and ...
4 years, 11 months ago (2016-01-26 21:30:33 UTC) #1
Navid Zolghadr
I added the tests and a few things that were missing in the first patch ...
4 years, 10 months ago (2016-02-01 21:16:44 UTC) #3
Rick Byers
On 2016/01/26 21:30:33, Navid Zolghadr wrote: > Here is an initial implementation of pointer captures. ...
4 years, 10 months ago (2016-02-05 22:24:37 UTC) #4
Rick Byers
I took a quick skim through before I left. The basic approach seems reasonable to ...
4 years, 10 months ago (2016-02-05 22:33:39 UTC) #5
mustaq
Here are my comments so far. Interacting with implicit touch capturing seems tricky as Rick ...
4 years, 10 months ago (2016-02-06 04:36:32 UTC) #6
Navid Zolghadr
https://codereview.chromium.org/1635863006/diff/20001/third_party/WebKit/LayoutTests/fast/events/pointerevents/mouse-pointer-capture.html File third_party/WebKit/LayoutTests/fast/events/pointerevents/mouse-pointer-capture.html (right): https://codereview.chromium.org/1635863006/diff/20001/third_party/WebKit/LayoutTests/fast/events/pointerevents/mouse-pointer-capture.html#newcode21 third_party/WebKit/LayoutTests/fast/events/pointerevents/mouse-pointer-capture.html:21: description("Verifies that pointer capture APIs functionality."); On 2016/02/06 04:36:31, ...
4 years, 10 months ago (2016-02-08 15:58:43 UTC) #7
Navid Zolghadr
I rebased this CL and applied all the comments. Hopefully now the change is smaller ...
4 years, 10 months ago (2016-02-26 19:44:57 UTC) #8
mustaq
Please clarify processPendingPointerCapture ordering. https://codereview.chromium.org/1635863006/diff/60001/third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/mouse-pointer-capture-expected.txt File third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/mouse-pointer-capture-expected.txt (right): https://codereview.chromium.org/1635863006/diff/60001/third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/mouse-pointer-capture-expected.txt#newcode73 third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/mouse-pointer-capture-expected.txt:73: 57 green received pointerover Reset ...
4 years, 9 months ago (2016-02-29 19:55:41 UTC) #9
Navid Zolghadr
https://codereview.chromium.org/1635863006/diff/60001/third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/mouse-pointer-capture-expected.txt File third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/mouse-pointer-capture-expected.txt (right): https://codereview.chromium.org/1635863006/diff/60001/third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/mouse-pointer-capture-expected.txt#newcode73 third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/mouse-pointer-capture-expected.txt:73: 57 green received pointerover On 2016/02/29 19:55:40, mustaq wrote: ...
4 years, 9 months ago (2016-02-29 20:10:42 UTC) #10
Rick Byers
This is looking really good, thanks Navid! It's a little scary how much complexity there ...
4 years, 9 months ago (2016-03-01 16:58:35 UTC) #11
mustaq
Re who is in charge of the target for event dispatch: I am inclined to ...
4 years, 9 months ago (2016-03-01 17:54:58 UTC) #12
dtapuska
On 2016/03/01 17:54:58, mustaq wrote: > Re who is in charge of the target for ...
4 years, 9 months ago (2016-03-01 18:04:38 UTC) #13
mustaq
On 2016/03/01 18:04:38, dtapuska wrote: > On 2016/03/01 17:54:58, mustaq wrote: > > Re who ...
4 years, 9 months ago (2016-03-01 19:45:34 UTC) #14
Navid Zolghadr
https://codereview.chromium.org/1635863006/diff/60001/third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/mouse-pointer-capture-expected.txt File third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/mouse-pointer-capture-expected.txt (right): https://codereview.chromium.org/1635863006/diff/60001/third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/mouse-pointer-capture-expected.txt#newcode26 third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/mouse-pointer-capture-expected.txt:26: 17 grey received pointerleave On 2016/03/01 17:54:57, mustaq wrote: ...
4 years, 9 months ago (2016-03-01 20:46:06 UTC) #15
Navid Zolghadr
ptal. Regarding the interaction of touch and pointer capture APIs I wanted to address it ...
4 years, 9 months ago (2016-03-02 16:54:50 UTC) #16
mustaq
Rick, was I right to interpret that your prepareMouseEvent suggestion was equivalent to start fixing ...
4 years, 9 months ago (2016-03-02 21:12:32 UTC) #17
Rick Byers
> Rick, was I right to interpret that your prepareMouseEvent suggestion was > equivalent to ...
4 years, 9 months ago (2016-03-03 16:35:45 UTC) #18
Rick Byers
Oh and LGTM overall. Please get mustaq@'s approval as well before landing (eg. for some ...
4 years, 9 months ago (2016-03-03 16:38:35 UTC) #19
mustaq
I will take another pass over the CL by eod. The comment below is minor, ...
4 years, 9 months ago (2016-03-03 17:42:48 UTC) #20
Navid Zolghadr
On 2016/03/03 17:42:48, mustaq wrote: > I will take another pass over the CL by ...
4 years, 9 months ago (2016-03-03 18:14:00 UTC) #21
Rick Byers
On 2016/03/03 18:14:00, Navid Zolghadr wrote: > On 2016/03/03 17:42:48, mustaq wrote: > > I ...
4 years, 9 months ago (2016-03-03 18:46:01 UTC) #22
mustaq
Thanks, the code looks good, but please add a test... https://codereview.chromium.org/1635863006/diff/60001/third_party/WebKit/Source/core/input/PointerEventManager.cpp File third_party/WebKit/Source/core/input/PointerEventManager.cpp (right): https://codereview.chromium.org/1635863006/diff/60001/third_party/WebKit/Source/core/input/PointerEventManager.cpp#newcode404 ...
4 years, 9 months ago (2016-03-04 15:16:40 UTC) #23
Navid Zolghadr
https://codereview.chromium.org/1635863006/diff/60001/third_party/WebKit/Source/core/input/PointerEventManager.cpp File third_party/WebKit/Source/core/input/PointerEventManager.cpp (right): https://codereview.chromium.org/1635863006/diff/60001/third_party/WebKit/Source/core/input/PointerEventManager.cpp#newcode404 third_party/WebKit/Source/core/input/PointerEventManager.cpp:404: if (hasPendingPointerCaptureTarget On 2016/03/04 15:16:40, mustaq wrote: > On ...
4 years, 9 months ago (2016-03-04 15:46:02 UTC) #24
mustaq
On 2016/03/04 15:46:02, Navid Zolghadr wrote: > https://codereview.chromium.org/1635863006/diff/60001/third_party/WebKit/Source/core/input/PointerEventManager.cpp > File third_party/WebKit/Source/core/input/PointerEventManager.cpp (right): > > https://codereview.chromium.org/1635863006/diff/60001/third_party/WebKit/Source/core/input/PointerEventManager.cpp#newcode404 ...
4 years, 9 months ago (2016-03-04 16:25:33 UTC) #25
Navid Zolghadr
On 2016/03/04 16:25:33, mustaq wrote: > On 2016/03/04 15:46:02, Navid Zolghadr wrote: > > > ...
4 years, 9 months ago (2016-03-04 20:33:11 UTC) #26
mustaq
On 2016/03/04 20:33:11, Navid Zolghadr wrote: > On 2016/03/04 16:25:33, mustaq wrote: > > On ...
4 years, 9 months ago (2016-03-04 21:25:04 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1635863006/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1635863006/140001
4 years, 9 months ago (2016-03-07 13:12:20 UTC) #31
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 9 months ago (2016-03-07 16:20:14 UTC) #33
commit-bot: I haz the power
4 years, 9 months ago (2016-03-07 16:21:18 UTC) #35
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/ded5afeb2fc486424ed5c5b2b135edbd708d4a52
Cr-Commit-Position: refs/heads/master@{#379558}

Powered by Google App Engine
This is Rietveld 408576698