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

Issue 1617863002: Set the correct pressure for pointer events based on force (Closed)

Created:
4 years, 11 months ago by Navid Zolghadr
Modified:
4 years, 10 months ago
Reviewers:
tkent, mustaq, sadrul, Rick Byers
CC:
chromium-reviews, blink-reviews, dglazkov+blink, blink-reviews-api_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Set the correct pressure for pointer events based on the force Set 0.5, 0.0 when any button is pressed, no button is pressed respectively for the pointer events if the the device is not supporting pressure. BUG=578869 Committed: https://crrev.com/88114bcec70bd1402e8d25a73062a0b8a6ea92a3 Cr-Commit-Position: refs/heads/master@{#372773}

Patch Set 1 #

Patch Set 2 : Add the new test result #

Patch Set 3 : Fix Win/OSX compile error #

Total comments: 4

Patch Set 4 : Set the Chrome side #

Patch Set 5 : Fix the browser tests #

Patch Set 6 : Fix another test #

Patch Set 7 : #

Total comments: 2

Patch Set 8 : Adding a comment describing force #

Patch Set 9 : Add ASSERT #

Patch Set 10 : Fix some tests #

Patch Set 11 : Remove a typo #

Total comments: 5

Patch Set 12 : Sadrul's suggestions #

Patch Set 13 : Fix the tests #

Total comments: 12

Patch Set 14 : Applying comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -26 lines) Patch
M components/test_runner/event_sender.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/web_input_event_aura_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/events/pointerevents/mouse-pointer-event-properties.html View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/events/pointerevents/mouse-pointer-event-properties-expected.txt View 1 1 chunk +13 lines, -13 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/mouse-pointer-event-properties-expected.txt View 1 2 3 13 chunks +13 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/events/PointerEventManager.cpp View 1 2 3 4 chunks +11 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/events/PointerEventManagerTest.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/PlatformTouchPoint.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/TouchActionTest.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebPointerProperties.h View 1 2 3 4 5 6 7 3 chunks +6 lines, -1 line 0 comments Download
M ui/events/event.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M ui/events/event_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +3 lines, -3 lines 0 comments Download
M ui/events/test/event_generator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +6 lines, -3 lines 0 comments Download

Messages

Total messages: 45 (11 generated)
Navid Zolghadr
This is the Blink half of the fix for pressure.
4 years, 11 months ago (2016-01-21 18:05:02 UTC) #3
mustaq
Please check the refs to WebPointerProperties.force to make sure the default NaN won't cause any ...
4 years, 11 months ago (2016-01-25 16:34:30 UTC) #4
Navid Zolghadr
I applied all the comments and a small tweak in Chromium side as well not ...
4 years, 11 months ago (2016-01-25 20:26:50 UTC) #5
Rick Byers
https://codereview.chromium.org/1617863002/diff/120001/third_party/WebKit/public/platform/WebPointerProperties.h File third_party/WebKit/public/platform/WebPointerProperties.h (right): https://codereview.chromium.org/1617863002/diff/120001/third_party/WebKit/public/platform/WebPointerProperties.h#newcode47 third_party/WebKit/public/platform/WebPointerProperties.h:47: float force; nit: please add a comment describing the ...
4 years, 11 months ago (2016-01-25 21:32:22 UTC) #6
Navid Zolghadr
https://codereview.chromium.org/1617863002/diff/120001/third_party/WebKit/public/platform/WebPointerProperties.h File third_party/WebKit/public/platform/WebPointerProperties.h (right): https://codereview.chromium.org/1617863002/diff/120001/third_party/WebKit/public/platform/WebPointerProperties.h#newcode47 third_party/WebKit/public/platform/WebPointerProperties.h:47: float force; On 2016/01/25 21:32:22, Rick Byers wrote: > ...
4 years, 11 months ago (2016-01-26 16:29:00 UTC) #7
mustaq
Thanks, LGTM. Please add a DCHECK at PlatformTouchPoint.force() for !NaN, just to be safe.
4 years, 11 months ago (2016-01-26 18:02:56 UTC) #8
Rick Byers
LGTM
4 years, 11 months ago (2016-01-26 18:11:42 UTC) #9
Navid Zolghadr
On 2016/01/26 18:02:56, mustaq wrote: > Thanks, LGTM. > > Please add a DCHECK at ...
4 years, 11 months ago (2016-01-26 19:28:02 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1617863002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1617863002/160001
4 years, 11 months ago (2016-01-27 13:14:15 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/139529)
4 years, 11 months ago (2016-01-27 13:23:17 UTC) #15
Navid Zolghadr
I had to change a few things to pass some of the tests after adding ...
4 years, 11 months ago (2016-01-27 18:16:52 UTC) #16
Navid Zolghadr
tkent@chromium.org: Please review changes in third_party/WebKit/Source/platform/PlatformTouchPoint.h sadrul@chromium.org: Please review changes in content/browser/renderer_host/web_input_event_aura.cc content/browser/renderer_host/web_input_event_aura_unittest
4 years, 11 months ago (2016-01-27 18:19:36 UTC) #18
sadrul
https://codereview.chromium.org/1617863002/diff/200001/content/browser/renderer_host/web_input_event_aura.cc File content/browser/renderer_host/web_input_event_aura.cc (right): https://codereview.chromium.org/1617863002/diff/200001/content/browser/renderer_host/web_input_event_aura.cc#newcode410 content/browser/renderer_host/web_input_event_aura.cc:410: webkit_event.force = event.pointer_details().force(); Can we update the default value ...
4 years, 11 months ago (2016-01-27 18:31:44 UTC) #19
sadrul
Please update the CL title and description to mention PointerEvent instead of 'PE'
4 years, 11 months ago (2016-01-27 18:32:35 UTC) #20
Rick Byers
On 2016/01/27 18:19:36, Navid Zolghadr wrote: > mailto:tkent@chromium.org: Please review changes in > > third_party/WebKit/Source/platform/PlatformTouchPoint.h ...
4 years, 11 months ago (2016-01-27 18:41:52 UTC) #21
Navid Zolghadr
https://codereview.chromium.org/1617863002/diff/200001/content/browser/renderer_host/web_input_event_aura.cc File content/browser/renderer_host/web_input_event_aura.cc (right): https://codereview.chromium.org/1617863002/diff/200001/content/browser/renderer_host/web_input_event_aura.cc#newcode410 content/browser/renderer_host/web_input_event_aura.cc:410: webkit_event.force = event.pointer_details().force(); On 2016/01/27 18:31:44, sadrul wrote: > ...
4 years, 11 months ago (2016-01-27 19:55:48 UTC) #23
sadrul
https://codereview.chromium.org/1617863002/diff/200001/content/browser/renderer_host/web_input_event_aura.cc File content/browser/renderer_host/web_input_event_aura.cc (right): https://codereview.chromium.org/1617863002/diff/200001/content/browser/renderer_host/web_input_event_aura.cc#newcode410 content/browser/renderer_host/web_input_event_aura.cc:410: webkit_event.force = event.pointer_details().force(); On 2016/01/27 19:55:48, Navid Zolghadr wrote: ...
4 years, 11 months ago (2016-01-27 20:22:05 UTC) #24
Navid Zolghadr
On 2016/01/27 20:22:05, sadrul wrote: > https://codereview.chromium.org/1617863002/diff/200001/content/browser/renderer_host/web_input_event_aura.cc > File content/browser/renderer_host/web_input_event_aura.cc (right): > > https://codereview.chromium.org/1617863002/diff/200001/content/browser/renderer_host/web_input_event_aura.cc#newcode410 > ...
4 years, 11 months ago (2016-01-27 20:26:46 UTC) #25
Navid Zolghadr
I added the changes as per Sadrul's suggestions and also fixed a few tests for ...
4 years, 10 months ago (2016-01-28 17:20:56 UTC) #26
Navid Zolghadr
ptal https://codereview.chromium.org/1617863002/diff/200001/content/browser/renderer_host/web_input_event_aura.cc File content/browser/renderer_host/web_input_event_aura.cc (right): https://codereview.chromium.org/1617863002/diff/200001/content/browser/renderer_host/web_input_event_aura.cc#newcode410 content/browser/renderer_host/web_input_event_aura.cc:410: webkit_event.force = event.pointer_details().force(); On 2016/01/27 20:22:05, sadrul wrote: ...
4 years, 10 months ago (2016-01-28 18:38:38 UTC) #27
Navid Zolghadr
On 2016/01/28 18:38:38, Navid Zolghadr wrote: > ptal > > https://codereview.chromium.org/1617863002/diff/200001/content/browser/renderer_host/web_input_event_aura.cc > File content/browser/renderer_host/web_input_event_aura.cc (right): ...
4 years, 10 months ago (2016-01-29 16:03:03 UTC) #28
sadrul
lgtm. Thanks! https://codereview.chromium.org/1617863002/diff/240001/content/browser/renderer_host/web_input_event_aura.cc File content/browser/renderer_host/web_input_event_aura.cc (right): https://codereview.chromium.org/1617863002/diff/240001/content/browser/renderer_host/web_input_event_aura.cc#newcode408 content/browser/renderer_host/web_input_event_aura.cc:408: Undo this change. https://codereview.chromium.org/1617863002/diff/240001/content/browser/renderer_host/web_input_event_aura_unittest.cc File content/browser/renderer_host/web_input_event_aura_unittest.cc (right): ...
4 years, 10 months ago (2016-01-29 16:30:43 UTC) #29
Navid Zolghadr
https://codereview.chromium.org/1617863002/diff/240001/content/browser/renderer_host/web_input_event_aura.cc File content/browser/renderer_host/web_input_event_aura.cc (right): https://codereview.chromium.org/1617863002/diff/240001/content/browser/renderer_host/web_input_event_aura.cc#newcode408 content/browser/renderer_host/web_input_event_aura.cc:408: On 2016/01/29 16:30:43, sadrul wrote: > Undo this change. ...
4 years, 10 months ago (2016-02-01 15:41:34 UTC) #30
sadrul
https://codereview.chromium.org/1617863002/diff/240001/ui/events/test/event_generator.cc File ui/events/test/event_generator.cc (right): https://codereview.chromium.org/1617863002/diff/240001/ui/events/test/event_generator.cc#newcode395 ui/events/test/event_generator.cc:395: Dispatch(&release); On 2016/02/01 15:41:33, Navid Zolghadr wrote: > On ...
4 years, 10 months ago (2016-02-01 16:07:08 UTC) #31
Navid Zolghadr
https://codereview.chromium.org/1617863002/diff/240001/ui/events/test/event_generator.cc File ui/events/test/event_generator.cc (right): https://codereview.chromium.org/1617863002/diff/240001/ui/events/test/event_generator.cc#newcode395 ui/events/test/event_generator.cc:395: Dispatch(&release); On 2016/02/01 16:07:08, sadrul wrote: > On 2016/02/01 ...
4 years, 10 months ago (2016-02-01 16:21:31 UTC) #32
sadrul
https://codereview.chromium.org/1617863002/diff/240001/ui/events/test/event_generator.cc File ui/events/test/event_generator.cc (right): https://codereview.chromium.org/1617863002/diff/240001/ui/events/test/event_generator.cc#newcode395 ui/events/test/event_generator.cc:395: Dispatch(&release); On 2016/02/01 16:21:30, Navid Zolghadr wrote: > On ...
4 years, 10 months ago (2016-02-01 16:46:40 UTC) #33
Navid Zolghadr
https://codereview.chromium.org/1617863002/diff/240001/ui/events/test/event_generator.cc File ui/events/test/event_generator.cc (right): https://codereview.chromium.org/1617863002/diff/240001/ui/events/test/event_generator.cc#newcode395 ui/events/test/event_generator.cc:395: Dispatch(&release); On 2016/02/01 16:46:40, sadrul wrote: > On 2016/02/01 ...
4 years, 10 months ago (2016-02-01 16:53:14 UTC) #34
sadrul
https://codereview.chromium.org/1617863002/diff/240001/ui/events/test/event_generator.cc File ui/events/test/event_generator.cc (right): https://codereview.chromium.org/1617863002/diff/240001/ui/events/test/event_generator.cc#newcode395 ui/events/test/event_generator.cc:395: Dispatch(&release); On 2016/02/01 16:53:14, Navid Zolghadr wrote: > On ...
4 years, 10 months ago (2016-02-01 17:06:35 UTC) #35
Navid Zolghadr
https://codereview.chromium.org/1617863002/diff/240001/ui/events/test/event_generator.cc File ui/events/test/event_generator.cc (right): https://codereview.chromium.org/1617863002/diff/240001/ui/events/test/event_generator.cc#newcode395 ui/events/test/event_generator.cc:395: Dispatch(&release); On 2016/02/01 17:06:34, sadrul wrote: > On 2016/02/01 ...
4 years, 10 months ago (2016-02-01 17:54:49 UTC) #36
sadrul
On 2016/02/01 17:54:49, Navid Zolghadr wrote: > https://codereview.chromium.org/1617863002/diff/240001/ui/events/test/event_generator.cc > File ui/events/test/event_generator.cc (right): > > https://codereview.chromium.org/1617863002/diff/240001/ui/events/test/event_generator.cc#newcode395 ...
4 years, 10 months ago (2016-02-01 17:56:49 UTC) #37
mustaq
On 2016/02/01 17:56:49, sadrul wrote: > On 2016/02/01 17:54:49, Navid Zolghadr wrote: > > > ...
4 years, 10 months ago (2016-02-01 19:02:20 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1617863002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1617863002/260001
4 years, 10 months ago (2016-02-01 20:13:52 UTC) #41
commit-bot: I haz the power
Committed patchset #14 (id:260001)
4 years, 10 months ago (2016-02-01 21:46:25 UTC) #43
commit-bot: I haz the power
4 years, 10 months ago (2016-02-01 21:48:04 UTC) #45
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/88114bcec70bd1402e8d25a73062a0b8a6ea92a3
Cr-Commit-Position: refs/heads/master@{#372773}

Powered by Google App Engine
This is Rietveld 408576698