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

Issue 2296303002: Make a pen in eraser mode visible thru PointerEvent.buttons (Closed)

Created:
4 years, 3 months ago by mustaq
Modified:
4 years, 3 months ago
CC:
chromium-reviews, blink-reviews, einbinder+watch-test-runner_chromium.org, mlamouri+watch-test-runner_chromium.org, jochen+watch_chromium.org, denniskempin (chromium)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make a pen in eraser mode visible thru PointerEvent.buttons The PointerEvent spec can't gracefully support a hovering pen in eraser mode because a non-zero |buttons| field indicate an active buttons state. The issue is currently being discussed in github: https://github.com/w3c/pointerevents/issues/134 Until the spec gets fixed, this CL exposes the eraser mode in a spec-compliant way by hiding the eraser mode until the pen touches the digitizer. Edge shows the same behavior. This CL also adds X1, X2 & Eraser button/buttons values to WebPointerProperties. BUG=642455 Committed: https://crrev.com/758b11555d5e65c63258731d4fc72b7d7edea0d7 Cr-Commit-Position: refs/heads/master@{#416360}

Patch Set 1 : Incremental patch on crrev.com/2289273002 #

Total comments: 2

Patch Set 2 : Added needed diffs from crrev.com/2289273002 #

Patch Set 3 : rbyers's comments. #

Patch Set 4 : Moved Buttons to WebPointerProperties, fixed button val, rebased. #

Total comments: 4

Patch Set 5 : nzolghadr's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+356 lines, -54 lines) Patch
M components/test_runner/event_sender.cc View 1 2 3 3 chunks +13 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/events/pointerevents/mouse-pointer-event-properties.html View 1 2 3 5 chunks +42 lines, -25 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/events/pointerevents/mouse-pointer-event-properties-expected.txt View 1 2 3 2 chunks +255 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/events/MouseEvent.h View 1 2 3 1 chunk +0 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/events/MouseEvent.cpp View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/events/PointerEventFactory.cpp View 1 2 3 4 4 chunks +29 lines, -11 lines 0 comments Download
M third_party/WebKit/public/platform/WebPointerProperties.h View 1 2 3 1 chunk +14 lines, -1 line 0 comments Download

Messages

Total messages: 27 (11 generated)
mustaq
ptal, this will follow crrev.com/2289273002.
4 years, 3 months ago (2016-08-31 19:15:19 UTC) #2
Navid Zolghadr
https://codereview.chromium.org/2296303002/diff/1/third_party/WebKit/Source/core/events/PointerEventFactory.cpp File third_party/WebKit/Source/core/events/PointerEventFactory.cpp (right): https://codereview.chromium.org/2296303002/diff/1/third_party/WebKit/Source/core/events/PointerEventFactory.cpp#newcode99 third_party/WebKit/Source/core/events/PointerEventFactory.cpp:99: if (pointerType == WebPointerProperties::PointerType::Eraser && buttons != 0) I ...
4 years, 3 months ago (2016-08-31 20:01:16 UTC) #3
mustaq
I think supporting hovering stylus like Edge should be our immediate goal since this unblocks ...
4 years, 3 months ago (2016-08-31 20:29:37 UTC) #5
Rick Byers
On 2016/08/31 20:29:37, mustaq wrote: > I think supporting hovering stylus like Edge should be ...
4 years, 3 months ago (2016-09-01 17:32:18 UTC) #6
Navid Zolghadr
On 2016/09/01 17:32:18, Rick Byers wrote: > On 2016/08/31 20:29:37, mustaq wrote: > > I ...
4 years, 3 months ago (2016-09-01 18:04:09 UTC) #7
mustaq
On 2016/09/01 17:32:18, Rick Byers wrote: > On 2016/08/31 20:29:37, mustaq wrote: > > I ...
4 years, 3 months ago (2016-09-01 18:59:12 UTC) #8
mustaq
On 2016/09/01 18:59:12, mustaq wrote: > On 2016/09/01 17:32:18, Rick Byers wrote: > > On ...
4 years, 3 months ago (2016-09-01 19:12:57 UTC) #9
mustaq
ptal: - Fixed a crack with |button|. - Cleaned up the code a bit. - ...
4 years, 3 months ago (2016-09-02 15:46:25 UTC) #11
Navid Zolghadr
lgtm https://codereview.chromium.org/2296303002/diff/60001/third_party/WebKit/Source/core/events/PointerEventFactory.cpp File third_party/WebKit/Source/core/events/PointerEventFactory.cpp (right): https://codereview.chromium.org/2296303002/diff/60001/third_party/WebKit/Source/core/events/PointerEventFactory.cpp#newcode90 third_party/WebKit/Source/core/events/PointerEventFactory.cpp:90: } nit: This bracket is not needed here. ...
4 years, 3 months ago (2016-09-02 16:04:31 UTC) #14
mustaq
https://codereview.chromium.org/2296303002/diff/60001/third_party/WebKit/Source/core/events/PointerEventFactory.cpp File third_party/WebKit/Source/core/events/PointerEventFactory.cpp (right): https://codereview.chromium.org/2296303002/diff/60001/third_party/WebKit/Source/core/events/PointerEventFactory.cpp#newcode90 third_party/WebKit/Source/core/events/PointerEventFactory.cpp:90: } On 2016/09/02 16:04:31, Navid Zolghadr wrote: > nit: ...
4 years, 3 months ago (2016-09-02 16:12:27 UTC) #15
Rick Byers
LGTM
4 years, 3 months ago (2016-09-02 17:59:45 UTC) #16
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/2296303002/80001
4 years, 3 months ago (2016-09-02 18:55:29 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/286784)
4 years, 3 months ago (2016-09-02 20:36:12 UTC) #21
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/2296303002/80001
4 years, 3 months ago (2016-09-02 20:50:04 UTC) #23
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 3 months ago (2016-09-02 22:07:00 UTC) #25
commit-bot: I haz the power
4 years, 3 months ago (2016-09-02 22:09:17 UTC) #27
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/758b11555d5e65c63258731d4fc72b7d7edea0d7
Cr-Commit-Position: refs/heads/master@{#416360}

Powered by Google App Engine
This is Rietveld 408576698