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

Issue 2349143004: Plumbing stylus tilt for Mac (Closed)

Created:
4 years, 3 months ago by lanwei
Modified:
4 years, 3 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

Plumbing stylus tilt for Mac. Add the stylus tilt information for pointer event on Mac. Mac's NSEvent's tilt has a range from -1.0 to 1.0 for both axes, but our values lie in [-90,90]. https://developer.apple.com/reference/appkit/nsevent/1534226-tilt BUG=624814 Committed: https://crrev.com/3c6775ddd60897fd815139b9afe9198c4263dae3 Cr-Commit-Position: refs/heads/master@{#419801}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Change to lround #

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

Messages

Total messages: 21 (13 generated)
lanwei
4 years, 3 months ago (2016-09-20 15:42:23 UTC) #6
mustaq
lgtm
4 years, 3 months ago (2016-09-20 15:46:50 UTC) #7
dtapuska
https://codereview.chromium.org/2349143004/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/2349143004/diff/1/content/browser/renderer_host/input/web_input_event_builders_mac.mm#newcode417 content/browser/renderer_host/input/web_input_event_builders_mac.mm:417: result.tiltX = (int) (tilt.x * 90); Can we round ...
4 years, 3 months ago (2016-09-20 15:50:50 UTC) #8
lanwei
https://codereview.chromium.org/2349143004/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/2349143004/diff/1/content/browser/renderer_host/input/web_input_event_builders_mac.mm#newcode417 content/browser/renderer_host/input/web_input_event_builders_mac.mm:417: result.tiltX = (int) (tilt.x * 90); On 2016/09/20 15:50:50, ...
4 years, 3 months ago (2016-09-20 16:12:45 UTC) #11
dtapuska
On 2016/09/20 16:12:45, lanwei wrote: > https://codereview.chromium.org/2349143004/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/2349143004/diff/1/content/browser/renderer_host/input/web_input_event_builders_mac.mm#newcode417 ...
4 years, 3 months ago (2016-09-20 16:13:39 UTC) #12
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/2349143004/20001
4 years, 3 months ago (2016-09-20 17:18:30 UTC) #17
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-09-20 17:23:58 UTC) #19
commit-bot: I haz the power
4 years, 3 months ago (2016-09-20 17:25:50 UTC) #21
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/3c6775ddd60897fd815139b9afe9198c4263dae3
Cr-Commit-Position: refs/heads/master@{#419801}

Powered by Google App Engine
This is Rietveld 408576698