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

Issue 1147083005: Separate motion event touch geometry orientation from stylus orientation. (Closed)

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

Description

Separate motion event touch geometry orientation from stylus orientation. On Android, motion event orientation is overloaded thus it has different meanings and ranges for touch screens and pads and for styluses. As that overloading is harmful, do not carry it on but break it in AndroidMotionEvent. This change aligns touch geometry rotation angles with TouchEvent spec for cases when stylus orientation does not fall in [-90, 90] range. BUG=492239

Patch Set 1 #

Total comments: 1

Patch Set 2 : Aura #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -35 lines) Patch
M components/html_viewer/touch_handler.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/input/motion_event_android.h View 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/input/motion_event_android.cc View 1 chunk +15 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/motion_event_android_unittest.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M content/browser/renderer_host/input/motion_event_web.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/input/motion_event_web.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/input/web_input_event_util_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/events/blink/blink_event_util.cc View 1 chunk +2 lines, -1 line 0 comments Download
M ui/events/gesture_detection/motion_event.h View 2 chunks +4 lines, -4 lines 0 comments Download
M ui/events/gesture_detection/motion_event_buffer_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/events/gesture_detection/motion_event_generic.h View 2 chunks +2 lines, -2 lines 0 comments Download
M ui/events/gesture_detection/motion_event_generic.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M ui/events/gesture_detection/motion_event_generic_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/events/gestures/motion_event_aura.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M ui/events/gestures/motion_event_aura_unittest.cc View 6 chunks +9 lines, -6 lines 0 comments Download
M ui/events/test/motion_event_test_utils.cc View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 15 (3 generated)
USE eero AT chromium.org
PTAL, if this would be a better fix for the issue than https://codereview.chromium.org/1152463004/ https://codereview.chromium.org/1147083005/diff/1/content/browser/renderer_host/input/motion_event_android.h File ...
5 years, 7 months ago (2015-05-27 08:43:49 UTC) #2
tdresser
On 2015/05/27 08:43:49, e_hakkinen wrote: > PTAL, if this would be a better fix for ...
5 years, 7 months ago (2015-05-27 11:56:01 UTC) #3
tdresser
On 2015/05/27 11:56:01, tdresser wrote: > On 2015/05/27 08:43:49, e_hakkinen wrote: > > PTAL, if ...
5 years, 7 months ago (2015-05-27 13:59:45 UTC) #4
mustaq
On 2015/05/27 13:59:45, tdresser wrote: > On 2015/05/27 11:56:01, tdresser wrote: > > On 2015/05/27 ...
5 years, 7 months ago (2015-05-27 14:22:53 UTC) #5
Rick Byers
This approach seems good to me, I like the explicitness for avoiding confusion here and ...
5 years, 7 months ago (2015-05-27 14:32:54 UTC) #8
jdduke (slow)
On 2015/05/27 14:32:54, Rick Byers wrote: > This approach seems good to me, I like ...
5 years, 7 months ago (2015-05-27 15:52:03 UTC) #9
mustaq
On 2015/05/27 15:52:03, jdduke wrote: > On 2015/05/27 14:32:54, Rick Byers wrote: > > This ...
5 years, 7 months ago (2015-05-27 17:03:48 UTC) #10
jdduke (slow)
On 2015/05/27 17:03:48, mustaq wrote: > On 2015/05/27 15:52:03, jdduke wrote: > > On 2015/05/27 ...
5 years, 7 months ago (2015-05-27 17:07:28 UTC) #11
jdduke (slow)
I dunno, I was OK with the previous patch, but this is also fine and ...
5 years, 7 months ago (2015-05-27 18:04:03 UTC) #12
tdresser
On 2015/05/27 18:04:03, jdduke wrote: > I dunno, I was OK with the previous patch, ...
5 years, 6 months ago (2015-05-28 12:20:00 UTC) #13
mustaq
On 2015/05/28 12:20:00, tdresser wrote: > On 2015/05/27 18:04:03, jdduke wrote: > > I dunno, ...
5 years, 6 months ago (2015-05-28 14:19:02 UTC) #14
jdduke (slow)
5 years, 6 months ago (2015-05-28 15:03:18 UTC) #15
OK, we decided it might be best to go with your previous solution for now (sorry
for the noise!). We'll probably have to change it at some point when we
need/want to support 3D orientations (tilt), but for now let's just fix the
immediate issue. Thanks.

Powered by Google App Engine
This is Rietveld 408576698