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

Issue 2361523002: Pressure should not be set when the pointer device doesn't support pressure (Closed)

Created:
4 years, 2 months ago by lanwei
Modified:
4 years, 2 months ago
Reviewers:
mustaq, dtapuska
CC:
chromium-reviews, jam, darin-cc_chromium.org, dtapuska+chromiumwatch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Pressure should not be set when the pointer device doesn't support pressure. When pointer events have a pointer type of mouse, we should not set their pressure, the default value is 0.5 according to the spec. In Cocoa Event doc, the pressure is only set for events with a subtype of NSTabletPointEventSubtype. https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/EventOverview/EventObjectsTypes/EventObjectsTypes.html#//apple_ref/doc/uid/10000060i-CH4-SW4 BUG=648375 Committed: https://crrev.com/d0d3d88e1c94e01fb14ecdb3a11f786859236d5b Cr-Commit-Position: refs/heads/master@{#420161}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -8 lines) Patch
M content/browser/renderer_host/input/web_input_event_builders_mac.mm View 1 chunk +13 lines, -8 lines 2 comments Download

Messages

Total messages: 19 (10 generated)
lanwei
4 years, 2 months ago (2016-09-21 19:16:28 UTC) #6
dtapuska
lgtm
4 years, 2 months ago (2016-09-21 19:26:24 UTC) #7
mustaq
https://codereview.chromium.org/2361523002/diff/1/content/browser/renderer_host/input/web_input_event_builders_mac.mm File content/browser/renderer_host/input/web_input_event_builders_mac.mm (right): https://codereview.chromium.org/2361523002/diff/1/content/browser/renderer_host/input/web_input_event_builders_mac.mm#newcode411 content/browser/renderer_host/input/web_input_event_builders_mac.mm:411: return result; - Could you please confirm that uninitialized ...
4 years, 2 months ago (2016-09-21 19:39:37 UTC) #10
lanwei
https://codereview.chromium.org/2361523002/diff/1/content/browser/renderer_host/input/web_input_event_builders_mac.mm File content/browser/renderer_host/input/web_input_event_builders_mac.mm (right): https://codereview.chromium.org/2361523002/diff/1/content/browser/renderer_host/input/web_input_event_builders_mac.mm#newcode411 content/browser/renderer_host/input/web_input_event_builders_mac.mm:411: return result; On 2016/09/21 19:39:36, mustaq wrote: > - ...
4 years, 2 months ago (2016-09-21 20:13:42 UTC) #11
lanwei
4 years, 2 months ago (2016-09-21 20:13:45 UTC) #12
mustaq
lgtm
4 years, 2 months ago (2016-09-21 20:41:32 UTC) #13
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/2361523002/1
4 years, 2 months ago (2016-09-21 20:51:36 UTC) #15
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 2 months ago (2016-09-21 20:57:23 UTC) #17
commit-bot: I haz the power
4 years, 2 months ago (2016-09-21 21:00:23 UTC) #19
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/d0d3d88e1c94e01fb14ecdb3a11f786859236d5b
Cr-Commit-Position: refs/heads/master@{#420161}

Powered by Google App Engine
This is Rietveld 408576698