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

Issue 494833003: Completed webkit radiusX, radiusY and rotationAngle handling. (Closed)

Created:
6 years, 4 months ago by mustaq
Modified:
6 years, 3 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jdduke+watch_chromium.org, jam, tdresser+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Make touch orientation attributes visible in Blink. Completed the path for touch orientation attributes (i.e. radiusX, radiusY and rotationAngle of a touch ellipse) from android to Blink. BUG=381394 Committed: https://crrev.com/0ee22a13b49e9898c070d56655542f9f4843dc8f Cr-Commit-Position: refs/heads/master@{#292923}

Patch Set 1 #

Patch Set 2 : Fixed test failures. #

Patch Set 3 : #

Patch Set 4 : Fixed tests, finally. #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : Fixed aura unitests #

Patch Set 10 : #

Total comments: 21

Patch Set 11 : Addressed reviewers' comments #

Patch Set 12 : #

Total comments: 6

Patch Set 13 : Removed MotionEvent::GetHistorical{TouchMinor,Orientation} #

Total comments: 19

Patch Set 14 : Fixed ellipse params #

Patch Set 15 : Tweaked NaN checks #

Total comments: 9

Patch Set 16 : Angle=0 tweaks #

Patch Set 17 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+391 lines, -72 lines) Patch
M content/browser/android/content_view_core_impl.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/motion_event_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 15 16 4 chunks +8 lines, -3 lines 0 comments Download
M content/browser/renderer_host/input/motion_event_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 8 chunks +37 lines, -9 lines 0 comments Download
M content/browser/renderer_host/input/motion_event_android_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 8 chunks +31 lines, -8 lines 0 comments Download
M content/browser/renderer_host/input/motion_event_web.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/motion_event_web.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +30 lines, -1 line 0 comments Download
M content/browser/renderer_host/input/web_input_event_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +40 lines, -1 line 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +4 lines, -0 lines 0 comments Download
M ui/events/gesture_detection/motion_event.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +9 lines, -1 line 0 comments Download
M ui/events/gesture_detection/motion_event.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M ui/events/gesture_detection/motion_event_buffer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +30 lines, -0 lines 0 comments Download
M ui/events/gesture_detection/motion_event_buffer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M ui/events/gesture_detection/motion_event_generic.h View 2 chunks +4 lines, -0 lines 0 comments Download
M ui/events/gesture_detection/motion_event_generic.cc View 3 chunks +16 lines, -2 lines 0 comments Download
M ui/events/gestures/gesture_provider_aura_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -4 lines 0 comments Download
M ui/events/gestures/motion_event_aura.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +5 lines, -1 line 0 comments Download
M ui/events/gestures/motion_event_aura.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +46 lines, -7 lines 0 comments Download
M ui/events/gestures/motion_event_aura_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +109 lines, -35 lines 0 comments Download

Messages

Total messages: 29 (1 generated)
mustaq
mustaq@chromium.org changed reviewers: + darin@chromium.org, tdresser@chromium.org
6 years, 3 months ago (2014-08-27 18:04:01 UTC) #1
mustaq
The result can be checked in Nexus 10---http://www.rbyers.net/paint.html already has the corresponding JS changes. The ...
6 years, 3 months ago (2014-08-27 18:04:01 UTC) #2
jdduke (slow)
jdduke@chromium.org changed reviewers: + jdduke@chromium.org
6 years, 3 months ago (2014-08-27 18:10:40 UTC) #3
jdduke (slow)
Nice! https://codereview.chromium.org/494833003/diff/180001/ui/events/gesture_detection/motion_event.h File ui/events/gesture_detection/motion_event.h (right): https://codereview.chromium.org/494833003/diff/180001/ui/events/gesture_detection/motion_event.h#newcode74 ui/events/gesture_detection/motion_event.h:74: size_t historical_index) const; Where are these historical values ...
6 years, 3 months ago (2014-08-27 18:10:40 UTC) #4
mustaq
mustaq@chromium.org changed reviewers: - jdduke@chromium.org
6 years, 3 months ago (2014-08-27 18:16:18 UTC) #5
mustaq
mustaq@chromium.org changed reviewers: + jdduke@chromium.org
6 years, 3 months ago (2014-08-27 18:16:58 UTC) #6
jdduke (slow)
https://codereview.chromium.org/494833003/diff/180001/content/browser/renderer_host/input/motion_event_android.cc File content/browser/renderer_host/input/motion_event_android.cc (right): https://codereview.chromium.org/494833003/diff/180001/content/browser/renderer_host/input/motion_event_android.cc#newcode295 content/browser/renderer_host/input/motion_event_android.cc:295: if (pointer_index < MAX_POINTERS_TO_CACHE) I've seen devices return NaN ...
6 years, 3 months ago (2014-08-27 18:21:10 UTC) #7
tdresser
https://codereview.chromium.org/494833003/diff/180001/content/browser/renderer_host/input/web_input_event_util.cc File content/browser/renderer_host/input/web_input_event_util.cc (right): https://codereview.chromium.org/494833003/diff/180001/content/browser/renderer_host/input/web_input_event_util.cc#newcode5 content/browser/renderer_host/input/web_input_event_util.cc:5: // MSVC++ requires this to be set before any ...
6 years, 3 months ago (2014-08-27 18:31:35 UTC) #8
mustaq
https://codereview.chromium.org/494833003/diff/180001/content/browser/renderer_host/input/web_input_event_util.cc File content/browser/renderer_host/input/web_input_event_util.cc (right): https://codereview.chromium.org/494833003/diff/180001/content/browser/renderer_host/input/web_input_event_util.cc#newcode197 content/browser/renderer_host/input/web_input_event_util.cc:197: float orientationDeg = event.GetOrientation(pointer_index) * 180.f / M_PI; I ...
6 years, 3 months ago (2014-08-27 19:08:57 UTC) #9
jdduke (slow)
https://codereview.chromium.org/494833003/diff/180001/content/browser/renderer_host/input/web_input_event_util.cc File content/browser/renderer_host/input/web_input_event_util.cc (right): https://codereview.chromium.org/494833003/diff/180001/content/browser/renderer_host/input/web_input_event_util.cc#newcode197 content/browser/renderer_host/input/web_input_event_util.cc:197: float orientationDeg = event.GetOrientation(pointer_index) * 180.f / M_PI; On ...
6 years, 3 months ago (2014-08-27 19:16:13 UTC) #10
mustaq
https://codereview.chromium.org/494833003/diff/180001/content/browser/renderer_host/input/motion_event_android.cc File content/browser/renderer_host/input/motion_event_android.cc (right): https://codereview.chromium.org/494833003/diff/180001/content/browser/renderer_host/input/motion_event_android.cc#newcode295 content/browser/renderer_host/input/motion_event_android.cc:295: if (pointer_index < MAX_POINTERS_TO_CACHE) On 2014/08/27 18:21:09, jdduke wrote: ...
6 years, 3 months ago (2014-08-27 20:51:08 UTC) #11
jdduke (slow)
https://codereview.chromium.org/494833003/diff/180001/ui/events/gesture_detection/motion_event.h File ui/events/gesture_detection/motion_event.h (right): https://codereview.chromium.org/494833003/diff/180001/ui/events/gesture_detection/motion_event.h#newcode74 ui/events/gesture_detection/motion_event.h:74: size_t historical_index) const; On 2014/08/27 20:51:08, mustaq wrote: > ...
6 years, 3 months ago (2014-08-27 20:53:54 UTC) #12
tdresser
LGTM, with nits (once Jared's comments are addressed) Eventually I'd like the ScaleGestureDetector to no ...
6 years, 3 months ago (2014-08-28 12:35:19 UTC) #13
mustaq
https://codereview.chromium.org/494833003/diff/180001/ui/events/gesture_detection/motion_event.h File ui/events/gesture_detection/motion_event.h (right): https://codereview.chromium.org/494833003/diff/180001/ui/events/gesture_detection/motion_event.h#newcode74 ui/events/gesture_detection/motion_event.h:74: size_t historical_index) const; On 2014/08/27 20:53:54, jdduke wrote: > ...
6 years, 3 months ago (2014-08-28 14:08:37 UTC) #14
jdduke (slow)
https://codereview.chromium.org/494833003/diff/220001/ui/events/gesture_detection/motion_event.h File ui/events/gesture_detection/motion_event.h (right): https://codereview.chromium.org/494833003/diff/220001/ui/events/gesture_detection/motion_event.h#newcode95 ui/events/gesture_detection/motion_event.h:95: // Returns the orientation of the major axis closkwise ...
6 years, 3 months ago (2014-08-28 15:31:58 UTC) #15
mustaq
https://codereview.chromium.org/494833003/diff/240001/content/browser/renderer_host/input/motion_event_web.cc File content/browser/renderer_host/input/motion_event_web.cc (right): https://codereview.chromium.org/494833003/diff/240001/content/browser/renderer_host/input/motion_event_web.cc#newcode128 content/browser/renderer_host/input/motion_event_web.cc:128: if (event_.touches[pointer_index].radiusX On 2014/08/28 15:31:57, jdduke wrote: > Is ...
6 years, 3 months ago (2014-08-28 18:21:14 UTC) #16
jdduke (slow)
https://codereview.chromium.org/494833003/diff/240001/content/browser/renderer_host/input/web_input_event_util.cc File content/browser/renderer_host/input/web_input_event_util.cc (right): https://codereview.chromium.org/494833003/diff/240001/content/browser/renderer_host/input/web_input_event_util.cc#newcode206 content/browser/renderer_host/input/web_input_event_util.cc:206: // degrees, where the x-axis makes the specified angle ...
6 years, 3 months ago (2014-08-28 18:23:51 UTC) #17
mustaq
https://codereview.chromium.org/494833003/diff/220001/ui/events/gesture_detection/motion_event.h File ui/events/gesture_detection/motion_event.h (right): https://codereview.chromium.org/494833003/diff/220001/ui/events/gesture_detection/motion_event.h#newcode95 ui/events/gesture_detection/motion_event.h:95: // Returns the orientation of the major axis closkwise ...
6 years, 3 months ago (2014-08-28 21:56:02 UTC) #18
jdduke (slow)
Minor description nit, it helps to wrap the description at something less than 80 characters ...
6 years, 3 months ago (2014-08-29 16:45:09 UTC) #19
mustaq
https://codereview.chromium.org/494833003/diff/280001/content/browser/renderer_host/input/motion_event_web.cc File content/browser/renderer_host/input/motion_event_web.cc (right): https://codereview.chromium.org/494833003/diff/280001/content/browser/renderer_host/input/motion_event_web.cc#newcode129 content/browser/renderer_host/input/motion_event_web.cc:129: >= event_.touches[pointer_index].radiusY) { Yeah, just discovered the default=90 value ...
6 years, 3 months ago (2014-08-29 16:53:00 UTC) #20
mustaq
https://codereview.chromium.org/494833003/diff/280001/ui/events/gestures/motion_event_aura.cc File ui/events/gestures/motion_event_aura.cc (right): https://codereview.chromium.org/494833003/diff/280001/ui/events/gestures/motion_event_aura.cc#newcode57 ui/events/gestures/motion_event_aura.cc:57: if (radius_x >= radius_y) { See crbug.com/406004 On 2014/08/29 ...
6 years, 3 months ago (2014-08-29 17:28:44 UTC) #21
jdduke (slow)
On 2014/08/29 17:28:44, mustaq wrote: > https://codereview.chromium.org/494833003/diff/280001/ui/events/gestures/motion_event_aura.cc > File ui/events/gestures/motion_event_aura.cc (right): > > https://codereview.chromium.org/494833003/diff/280001/ui/events/gestures/motion_event_aura.cc#newcode57 > ...
6 years, 3 months ago (2014-08-29 17:30:42 UTC) #22
mustaq
All done, hopefully ;-) https://codereview.chromium.org/494833003/diff/280001/content/browser/renderer_host/input/motion_event_android.cc File content/browser/renderer_host/input/motion_event_android.cc (right): https://codereview.chromium.org/494833003/diff/280001/content/browser/renderer_host/input/motion_event_android.cc#newcode378 content/browser/renderer_host/input/motion_event_android.cc:378: float MotionEventAndroid::ToValidFloat(float x) const { ...
6 years, 3 months ago (2014-08-29 20:54:02 UTC) #23
jdduke (slow)
lgtm, thanks!
6 years, 3 months ago (2014-08-30 12:58:45 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mustaq@chromium.org/494833003/320001
6 years, 3 months ago (2014-09-02 14:05:04 UTC) #26
commit-bot: I haz the power
Committed patchset #17 (id:320001) as f7ff513cdeb881497d4977355a965c33b5fb7980
6 years, 3 months ago (2014-09-02 14:35:26 UTC) #27
scottmg
A revert of this CL (patchset #17 id:320001) has been created in https://codereview.chromium.org/531133002/ by scottmg@chromium.org. ...
6 years, 3 months ago (2014-09-02 18:53:03 UTC) #28
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:18:24 UTC) #29
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/0ee22a13b49e9898c070d56655542f9f4843dc8f
Cr-Commit-Position: refs/heads/master@{#292923}

Powered by Google App Engine
This is Rietveld 408576698