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

Issue 1152463004: Fix motion event orientation handling for styluses. (Closed)

Created:
5 years, 7 months ago by USE eero AT chromium.org
Modified:
5 years, 6 months ago
CC:
chromium-reviews, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix motion event orientation handling for styluses. For a stylus, a motion event orientation range is full 360 degrees (whereas for a touch screen or pad the range is only 180 degrees). This change fixes handling of orientation angles which do not fall in [-90, 90] range. BUG=492239 Committed: https://crrev.com/100b5ba06a37d2e88c759679e0110b108efde2f9 Cr-Commit-Position: refs/heads/master@{#332010}

Patch Set 1 #

Total comments: 5

Patch Set 2 : GetOrientation comment #

Total comments: 5

Patch Set 3 : Be more restrictive #

Total comments: 12

Patch Set 4 : Comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -5 lines) Patch
M ui/events/blink/blink_event_util.cc View 1 2 3 1 chunk +19 lines, -3 lines 0 comments Download
M ui/events/gesture_detection/motion_event.h View 1 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 35 (11 generated)
USE eero AT chromium.org
PTAL.
5 years, 7 months ago (2015-05-26 17:31:10 UTC) #2
sky
https://codereview.chromium.org/1152463004/diff/1/ui/events/blink/blink_event_util.cc File ui/events/blink/blink_event_util.cc (right): https://codereview.chromium.org/1152463004/diff/1/ui/events/blink/blink_event_util.cc#newcode111 ui/events/blink/blink_event_util.cc:111: if (orientation_deg >= 90.f) Why do you need to ...
5 years, 7 months ago (2015-05-26 19:51:04 UTC) #3
Rick Byers
+mustaq who wrote this https://codereview.chromium.org/1152463004/diff/1/ui/events/blink/blink_event_util.cc File ui/events/blink/blink_event_util.cc (right): https://codereview.chromium.org/1152463004/diff/1/ui/events/blink/blink_event_util.cc#newcode111 ui/events/blink/blink_event_util.cc:111: if (orientation_deg >= 90.f) On ...
5 years, 7 months ago (2015-05-26 20:21:33 UTC) #6
mustaq
https://codereview.chromium.org/1152463004/diff/1/ui/events/blink/blink_event_util.cc File ui/events/blink/blink_event_util.cc (right): https://codereview.chromium.org/1152463004/diff/1/ui/events/blink/blink_event_util.cc#newcode111 ui/events/blink/blink_event_util.cc:111: if (orientation_deg >= 90.f) On 2015/05/26 20:21:33, Rick Byers ...
5 years, 7 months ago (2015-05-26 21:25:59 UTC) #8
Rick Byers
On 2015/05/26 21:25:59, mustaq wrote: > https://codereview.chromium.org/1152463004/diff/1/ui/events/blink/blink_event_util.cc > File ui/events/blink/blink_event_util.cc (right): > > https://codereview.chromium.org/1152463004/diff/1/ui/events/blink/blink_event_util.cc#newcode111 > ...
5 years, 7 months ago (2015-05-26 23:31:13 UTC) #9
USE eero AT chromium.org
On 2015/05/26 23:31:13, Rick Byers wrote: > Since we currently map stylus devices to touch ...
5 years, 7 months ago (2015-05-27 08:39:39 UTC) #10
mustaq
On 2015/05/27 08:39:39, e_hakkinen wrote: > On 2015/05/26 23:31:13, Rick Byers wrote: > > Since ...
5 years, 7 months ago (2015-05-27 13:59:28 UTC) #11
jdduke (slow)
https://codereview.chromium.org/1152463004/diff/20001/ui/events/blink/blink_event_util.cc File ui/events/blink/blink_event_util.cc (right): https://codereview.chromium.org/1152463004/diff/20001/ui/events/blink/blink_event_util.cc#newcode109 ui/events/blink/blink_event_util.cc:109: DCHECK_GT(orientation_deg, -180.01f); I spoke offline with mustaq/tdresser. We decided ...
5 years, 6 months ago (2015-05-28 15:01:45 UTC) #13
USE eero AT chromium.org
https://codereview.chromium.org/1152463004/diff/20001/ui/events/blink/blink_event_util.cc File ui/events/blink/blink_event_util.cc (right): https://codereview.chromium.org/1152463004/diff/20001/ui/events/blink/blink_event_util.cc#newcode109 ui/events/blink/blink_event_util.cc:109: DCHECK_GT(orientation_deg, -180.01f); On 2015/05/28 15:01:45, jdduke(OOO_until_June_1) wrote: > I ...
5 years, 6 months ago (2015-05-29 10:49:30 UTC) #14
jdduke (slow)
Thanks, just one question. https://codereview.chromium.org/1152463004/diff/40001/ui/events/blink/blink_event_util.cc File ui/events/blink/blink_event_util.cc (right): https://codereview.chromium.org/1152463004/diff/40001/ui/events/blink/blink_event_util.cc#newcode106 ui/events/blink/blink_event_util.cc:106: if (event.GetToolType(pointer_index) == MotionEvent::TOOL_TYPE_STYLUS) { ...
5 years, 6 months ago (2015-05-29 14:36:15 UTC) #15
tdresser
Driveby nits... https://codereview.chromium.org/1152463004/diff/40001/ui/events/blink/blink_event_util.cc File ui/events/blink/blink_event_util.cc (right): https://codereview.chromium.org/1152463004/diff/40001/ui/events/blink/blink_event_util.cc#newcode107 ui/events/blink/blink_event_util.cc:107: // Orientation lies in [-180, 180] for ...
5 years, 6 months ago (2015-05-29 15:01:22 UTC) #17
mustaq
https://codereview.chromium.org/1152463004/diff/40001/ui/events/blink/blink_event_util.cc File ui/events/blink/blink_event_util.cc (right): https://codereview.chromium.org/1152463004/diff/40001/ui/events/blink/blink_event_util.cc#newcode110 ui/events/blink/blink_event_util.cc:110: DCHECK_LT(orientation_deg, 180.01f); Please create a bug saying that "When ...
5 years, 6 months ago (2015-05-29 15:11:52 UTC) #18
USE eero AT chromium.org
https://codereview.chromium.org/1152463004/diff/40001/ui/events/blink/blink_event_util.cc File ui/events/blink/blink_event_util.cc (right): https://codereview.chromium.org/1152463004/diff/40001/ui/events/blink/blink_event_util.cc#newcode107 ui/events/blink/blink_event_util.cc:107: // Orientation lies in [-180, 180] for a stylus. ...
5 years, 6 months ago (2015-05-29 16:17:47 UTC) #19
tdresser
https://codereview.chromium.org/1152463004/diff/40001/ui/events/blink/blink_event_util.cc File ui/events/blink/blink_event_util.cc (right): https://codereview.chromium.org/1152463004/diff/40001/ui/events/blink/blink_event_util.cc#newcode107 ui/events/blink/blink_event_util.cc:107: // Orientation lies in [-180, 180] for a stylus. ...
5 years, 6 months ago (2015-05-29 16:45:45 UTC) #20
jdduke (slow)
On 2015/05/29 16:45:45, tdresser wrote: > https://codereview.chromium.org/1152463004/diff/40001/ui/events/blink/blink_event_util.cc > File ui/events/blink/blink_event_util.cc (right): > > https://codereview.chromium.org/1152463004/diff/40001/ui/events/blink/blink_event_util.cc#newcode107 > ...
5 years, 6 months ago (2015-05-29 16:55:58 UTC) #21
tdresser
On 2015/05/29 16:55:58, jdduke(OOO_until_June_1) wrote: > On 2015/05/29 16:45:45, tdresser wrote: > > > https://codereview.chromium.org/1152463004/diff/40001/ui/events/blink/blink_event_util.cc ...
5 years, 6 months ago (2015-05-29 16:58:01 UTC) #22
mustaq
On 2015/05/29 16:55:58, jdduke(OOO_until_June_1) wrote: > On 2015/05/29 16:45:45, tdresser wrote: > > > https://codereview.chromium.org/1152463004/diff/40001/ui/events/blink/blink_event_util.cc ...
5 years, 6 months ago (2015-05-29 16:58:38 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1152463004/60001
5 years, 6 months ago (2015-05-29 16:59:34 UTC) #26
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/66851)
5 years, 6 months ago (2015-05-29 17:07:05 UTC) #29
USE eero AT chromium.org
Oh, OWNERs haven't reviewed yet.
5 years, 6 months ago (2015-05-29 17:10:26 UTC) #30
sadrul
lgtm
5 years, 6 months ago (2015-05-29 17:11:44 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1152463004/60001
5 years, 6 months ago (2015-05-29 17:13:45 UTC) #33
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 6 months ago (2015-05-29 18:05:51 UTC) #34
commit-bot: I haz the power
5 years, 6 months ago (2015-05-29 18:06:44 UTC) #35
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/100b5ba06a37d2e88c759679e0110b108efde2f9
Cr-Commit-Position: refs/heads/master@{#332010}

Powered by Google App Engine
This is Rietveld 408576698