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

Issue 2289273002: Eraser tool type plumbing from ui/events to web events and PPAPI. (Closed)

Created:
4 years, 3 months ago by denniskempin
Modified:
4 years, 3 months ago
CC:
binji+watch_chromium.org, blink-reviews, blink-reviews-api_chromium.org, bradnelson+warch_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, dtapuska+chromiumwatch_chromium.org, dtapuska+blinkwatch_chromium.org, ihf+watch_chromium.org, jam, mlamouri+watch-content_chromium.org, nzolghadr+blinkwatch_chromium.org, piman+watch_chromium.org, tdresser+watch_chromium.org, teravest+watch_chromium.org, tzik, yusukes+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

This passes the recently added eraser tool type from ui events into WebInputEvents. The eraser is added as a PointerType in WebPointerProperties, which is also shared with PlatformInputEvents. To add support for this pointer type in the PPAPI we will be adding a new modifier flag, since the PPAPI does not have a concept of pointer tool types. BUG=636458 TEST=none Committed: https://crrev.com/3ae4a08aca4ba20838ac94a7e63e37a9e0070fd2 Cr-Commit-Position: refs/heads/master@{#416141}

Patch Set 1 #

Total comments: 1

Patch Set 2 : cleanup #

Total comments: 17

Patch Set 3 : added modifier conversion to remove modifier from WebInputEvent #

Patch Set 4 : add pen modifier and version uprev of ppapi #

Total comments: 5

Patch Set 5 : fixed nits #

Total comments: 1

Patch Set 6 : switched version to M55 #

Patch Set 7 : removed TODOs from idl file #

Patch Set 8 : The CQ works! We were stripping the SHIFT mod from NaCL events. Fixed. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -25 lines) Patch
M content/browser/renderer_host/input/motion_event_web.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/pepper/event_conversion.cc View 1 2 3 4 5 6 7 5 chunks +28 lines, -4 lines 0 comments Download
M ppapi/api/ppb_input_event.idl View 1 2 3 4 5 6 4 chunks +7 lines, -9 lines 0 comments Download
M ppapi/c/pp_macros.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M ppapi/c/ppb_input_event.h View 1 2 3 4 5 6 4 chunks +4 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/events/PointerEventFactory.cpp View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebPointerProperties.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/events/blink/blink_event_util.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/events/blink/web_input_event.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 49 (19 generated)
mustaq
https://codereview.chromium.org/2289273002/diff/1/third_party/WebKit/public/platform/WebInputEvent.h File third_party/WebKit/public/platform/WebInputEvent.h (right): https://codereview.chromium.org/2289273002/diff/1/third_party/WebKit/public/platform/WebInputEvent.h#newcode193 third_party/WebKit/public/platform/WebInputEvent.h:193: IsEraser = 1 << 19 Having both |IsEraser| and ...
4 years, 3 months ago (2016-08-30 18:13:48 UTC) #3
bradnelson
Looks like the right general idea. +bbudge Bill what do you think, especially about the ...
4 years, 3 months ago (2016-08-30 18:19:29 UTC) #6
denniskempin
https://codereview.chromium.org/2289273002/diff/20001/third_party/WebKit/Source/core/events/PointerEventFactory.cpp File third_party/WebKit/Source/core/events/PointerEventFactory.cpp (right): https://codereview.chromium.org/2289273002/diff/20001/third_party/WebKit/Source/core/events/PointerEventFactory.cpp#newcode24 third_party/WebKit/Source/core/events/PointerEventFactory.cpp:24: case WebPointerProperties::PointerType::Eraser: On 2016/08/30 18:19:29, bradnelson wrote: > This ...
4 years, 3 months ago (2016-08-30 18:27:41 UTC) #7
dtapuska
https://codereview.chromium.org/2289273002/diff/20001/third_party/WebKit/public/platform/WebInputEvent.h File third_party/WebKit/public/platform/WebInputEvent.h (right): https://codereview.chromium.org/2289273002/diff/20001/third_party/WebKit/public/platform/WebInputEvent.h#newcode193 third_party/WebKit/public/platform/WebInputEvent.h:193: IsEraser = 1 << 19 On 2016/08/30 at 18:27:41, ...
4 years, 3 months ago (2016-08-30 18:37:45 UTC) #9
mustaq
https://codereview.chromium.org/2289273002/diff/20001/third_party/WebKit/Source/core/events/PointerEventFactory.cpp File third_party/WebKit/Source/core/events/PointerEventFactory.cpp (right): https://codereview.chromium.org/2289273002/diff/20001/third_party/WebKit/Source/core/events/PointerEventFactory.cpp#newcode24 third_party/WebKit/Source/core/events/PointerEventFactory.cpp:24: case WebPointerProperties::PointerType::Eraser: On 2016/08/30 18:27:41, denniskempin wrote: > On ...
4 years, 3 months ago (2016-08-30 19:13:51 UTC) #10
denniskempin
On 2016/08/30 19:13:51, mustaq wrote: > https://codereview.chromium.org/2289273002/diff/20001/third_party/WebKit/Source/core/events/PointerEventFactory.cpp > File third_party/WebKit/Source/core/events/PointerEventFactory.cpp (right): > > https://codereview.chromium.org/2289273002/diff/20001/third_party/WebKit/Source/core/events/PointerEventFactory.cpp#newcode24 > ...
4 years, 3 months ago (2016-08-30 20:25:59 UTC) #11
bbudge
A modifier seems like the cleanest way to add this to Pepper, because of the ...
4 years, 3 months ago (2016-08-30 20:46:37 UTC) #12
denniskempin
https://codereview.chromium.org/2289273002/diff/20001/content/renderer/pepper/event_conversion.cc File content/renderer/pepper/event_conversion.cc (right): https://codereview.chromium.org/2289273002/diff/20001/content/renderer/pepper/event_conversion.cc#newcode193 content/renderer/pepper/event_conversion.cc:193: if (mouse_event.pointerType == blink::WebPointerProperties::PointerType::Eraser) { On 2016/08/30 18:19:29, bradnelson ...
4 years, 3 months ago (2016-08-30 20:49:35 UTC) #13
denniskempin
https://codereview.chromium.org/2289273002/diff/20001/content/renderer/pepper/event_conversion.cc File content/renderer/pepper/event_conversion.cc (right): https://codereview.chromium.org/2289273002/diff/20001/content/renderer/pepper/event_conversion.cc#newcode85 content/renderer/pepper/event_conversion.cc:85: "IsEraser should match"); On 2016/08/30 20:46:36, bbudge wrote: > ...
4 years, 3 months ago (2016-08-30 21:09:41 UTC) #14
bbudge
https://codereview.chromium.org/2289273002/diff/60001/ppapi/api/ppb_input_event.idl File ppapi/api/ppb_input_event.idl (right): https://codereview.chromium.org/2289273002/diff/60001/ppapi/api/ppb_input_event.idl#newcode14 ppapi/api/ppb_input_event.idl:14: M54 = 1.3 This doesn't actually version the API ...
4 years, 3 months ago (2016-08-30 22:05:54 UTC) #15
mustaq
PointerEventFactory.cpp and WebPointerProperties.h LGTM. https://codereview.chromium.org/2289273002/diff/60001/third_party/WebKit/Source/core/events/PointerEventFactory.cpp File third_party/WebKit/Source/core/events/PointerEventFactory.cpp (right): https://codereview.chromium.org/2289273002/diff/60001/third_party/WebKit/Source/core/events/PointerEventFactory.cpp#newcode24 third_party/WebKit/Source/core/events/PointerEventFactory.cpp:24: case WebPointerProperties::PointerType::Eraser: Please add a ...
4 years, 3 months ago (2016-08-31 14:28:46 UTC) #16
denniskempin
https://codereview.chromium.org/2289273002/diff/60001/ppapi/api/ppb_input_event.idl File ppapi/api/ppb_input_event.idl (right): https://codereview.chromium.org/2289273002/diff/60001/ppapi/api/ppb_input_event.idl#newcode14 ppapi/api/ppb_input_event.idl:14: M54 = 1.3 On 2016/08/30 22:05:54, bbudge wrote: > ...
4 years, 3 months ago (2016-09-01 16:56:21 UTC) #17
denniskempin
4 years, 3 months ago (2016-09-01 17:04:53 UTC) #19
Rick Byers
LGTM
4 years, 3 months ago (2016-09-01 17:51:03 UTC) #21
dtapuska
On 2016/09/01 at 17:51:03, rbyers wrote: > LGTM lgtm
4 years, 3 months ago (2016-09-01 18:14:52 UTC) #22
bbudge
Pepper lgtm
4 years, 3 months ago (2016-09-01 18:22:25 UTC) #23
bbudge
https://codereview.chromium.org/2289273002/diff/80001/ppapi/api/ppb_input_event.idl File ppapi/api/ppb_input_event.idl (right): https://codereview.chromium.org/2289273002/diff/80001/ppapi/api/ppb_input_event.idl#newcode14 ppapi/api/ppb_input_event.idl:14: M54 = 1.3 Sorry, since M54 has already branched, ...
4 years, 3 months ago (2016-09-01 18:24:01 UTC) #24
bokan
lgtm
4 years, 3 months ago (2016-09-01 18:26:05 UTC) #25
denniskempin
Thanks a lot everyone. I think we're good to go here.
4 years, 3 months ago (2016-09-01 18:29:10 UTC) #26
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/2289273002/100001
4 years, 3 months ago (2016-09-01 18:29:46 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/251366)
4 years, 3 months ago (2016-09-01 18:36:36 UTC) #31
bbudge
On 2016/09/01 18:36:36, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 3 months ago (2016-09-01 19:19:36 UTC) #32
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/2289273002/120001
4 years, 3 months ago (2016-09-01 19:42:25 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/219951)
4 years, 3 months ago (2016-09-01 20:50:01 UTC) #37
denniskempin
failure doesn't look related. retrying.
4 years, 3 months ago (2016-09-01 21:13:01 UTC) #38
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/2289273002/120001
4 years, 3 months ago (2016-09-01 21:13:47 UTC) #40
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/286020)
4 years, 3 months ago (2016-09-01 21:39:56 UTC) #42
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/2289273002/140001
4 years, 3 months ago (2016-09-01 21:52:44 UTC) #45
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 3 months ago (2016-09-02 00:25:39 UTC) #47
commit-bot: I haz the power
4 years, 3 months ago (2016-09-02 00:27:09 UTC) #49
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/3ae4a08aca4ba20838ac94a7e63e37a9e0070fd2
Cr-Commit-Position: refs/heads/master@{#416141}

Powered by Google App Engine
This is Rietveld 408576698