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

Issue 2311213004: 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
Reviewers:
CC:
chromium-reviews
Target Ref:
refs/pending/branch-heads/2840
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 Review-Url: https://codereview.chromium.org/2296303002 Cr-Commit-Position: refs/heads/master@{#416360} (cherry picked from commit 758b11555d5e65c63258731d4fc72b7d7edea0d7) Committed: https://chromium.googlesource.com/chromium/src/+/0611ea461e746b29cafc767d3542aa2b5bcc58ee

Patch Set 1 #

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

Messages

Total messages: 2 (1 generated)
mustaq
4 years, 3 months ago (2016-09-06 18:52:20 UTC) #2
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
0611ea461e746b29cafc767d3542aa2b5bcc58ee.

Powered by Google App Engine
This is Rietveld 408576698