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

Issue 1417803002: Pass MotionEvent tilt angles to Blink on Android. (Closed)

Created:
5 years, 2 months ago by e_hakkinen
Modified:
5 years, 1 month ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, jdduke+watch_chromium.org, Rick Byers, tdresser+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Pass MotionEvent tilt angles to Blink on Android. This extends event handlers to pass tilt angles from Android MotionEvent to Blink touch points, so that on the Blink side, PointerEvent tiltX and tiltY can be filled with real tilt angles. This CL is a part of a patch series: 1. https://codereview.chromium.org/1253183005/ for new WebPointerProperties fields 2. https://codereview.chromium.org/1260693003/ for eventSender web pointer property support 3. https://codereview.chromium.org/1192563002/ for handling tilt in Blink event handlers 4. https://codereview.chromium.org/1417803002/ (this) This CL is based on the abandoned CL at https://codereview.chromium.org/1187273004/ BUG=514360 Committed: https://crrev.com/b39a02032b11742cc467f43026a77a0aba33d5c1 Cr-Commit-Position: refs/heads/master@{#357471}

Patch Set 1 #

Patch Set 2 : Linkage, static casts #

Patch Set 3 : Math defines #

Patch Set 4 : Static casts #

Total comments: 4

Patch Set 5 : Bug reference #

Total comments: 6

Patch Set 6 : Flattened nested ifs, fixed a special case #

Unified diffs Side-by-side diffs Delta from patch set Stats (+246 lines, -50 lines) Patch
M AUTHORS View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/android/content_view_core_impl.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 3 chunks +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/motion_event_android.h View 4 chunks +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/motion_event_android.cc View 5 chunks +14 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/motion_event_android_unittest.cc View 7 chunks +14 lines, -12 lines 0 comments Download
M content/browser/renderer_host/input/motion_event_web.h View 1 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/renderer_host/input/motion_event_web.cc View 1 2 3 4 5 1 chunk +43 lines, -7 lines 0 comments Download
A content/browser/renderer_host/input/motion_event_web_unittest.cc View 1 2 3 4 5 1 chunk +78 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/touch_emulator.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/touch_event_queue.cc View 1 chunk +3 lines, -1 line 0 comments Download
M content/browser/renderer_host/input/web_input_event_util_unittest.cc View 1 2 3 4 5 2 chunks +41 lines, -26 lines 0 comments Download
M content/common/input/synthetic_web_input_event_builders.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/common/input/web_input_event_traits.cc View 2 chunks +5 lines, -2 lines 0 comments Download
M content/content_tests.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 2 chunks +3 lines, -0 lines 0 comments Download
M ui/events/blink/blink_event_util.cc View 2 chunks +14 lines, -1 line 0 comments Download
M ui/events/gesture_detection/motion_event.h View 2 chunks +2 lines, -0 lines 0 comments Download
M ui/events/gesture_detection/motion_event_buffer_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ui/events/gesture_detection/motion_event_generic.h View 2 chunks +2 lines, -0 lines 0 comments Download
M ui/events/gesture_detection/motion_event_generic.cc View 3 chunks +7 lines, -0 lines 0 comments Download
M ui/events/test/motion_event_test_utils.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 22 (8 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1417803002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1417803002/1
5 years, 2 months ago (2015-10-20 21:00:28 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_rel/builds/19203)
5 years, 2 months ago (2015-10-20 21:10:57 UTC) #6
e_hakkinen
PTAL. I added some unit tests as instructed in https://codereview.chromium.org/1187273004/ and sorted out compilation problems ...
5 years, 2 months ago (2015-10-22 06:39:07 UTC) #7
e_hakkinen
+@tedchoc,@yfriedman: content/{browser,public}/android/ +@aelias,@tdresser: content/{browser/renderer_host,common}/input/ PTAL.
5 years, 1 month ago (2015-10-30 14:01:09 UTC) #9
mustaq
https://codereview.chromium.org/1417803002/diff/2/content/browser/renderer_host/input/motion_event_web.cc File content/browser/renderer_host/input/motion_event_web.cc (right): https://codereview.chromium.org/1417803002/diff/2/content/browser/renderer_host/input/motion_event_web.cc#newcode173 content/browser/renderer_host/input/motion_event_web.cc:173: float tilt_x_r = sin(pointer.tiltX * M_PI / 180.f); Rubberstamp ...
5 years, 1 month ago (2015-10-30 14:58:15 UTC) #10
e_hakkinen
https://codereview.chromium.org/1417803002/diff/2/content/browser/renderer_host/input/motion_event_web.cc File content/browser/renderer_host/input/motion_event_web.cc (right): https://codereview.chromium.org/1417803002/diff/2/content/browser/renderer_host/input/motion_event_web.cc#newcode173 content/browser/renderer_host/input/motion_event_web.cc:173: float tilt_x_r = sin(pointer.tiltX * M_PI / 180.f); On ...
5 years, 1 month ago (2015-10-30 15:45:25 UTC) #12
aelias_OOO_until_Jul13
lgtm
5 years, 1 month ago (2015-10-30 15:47:38 UTC) #13
sadrul
ui/events/blink/ ui/events/test lgtm
5 years, 1 month ago (2015-10-30 15:50:05 UTC) #14
tdresser
LGTM. https://codereview.chromium.org/1417803002/diff/70001/content/browser/renderer_host/input/motion_event_web.cc File content/browser/renderer_host/input/motion_event_web.cc (right): https://codereview.chromium.org/1417803002/diff/70001/content/browser/renderer_host/input/motion_event_web.cc#newcode141 content/browser/renderer_host/input/motion_event_web.cc:141: if (pointer.tiltY < 0) { I think this ...
5 years, 1 month ago (2015-11-02 14:44:07 UTC) #15
e_hakkinen
https://codereview.chromium.org/1417803002/diff/70001/content/browser/renderer_host/input/motion_event_web.cc File content/browser/renderer_host/input/motion_event_web.cc (right): https://codereview.chromium.org/1417803002/diff/70001/content/browser/renderer_host/input/motion_event_web.cc#newcode141 content/browser/renderer_host/input/motion_event_web.cc:141: if (pointer.tiltY < 0) { On 2015/11/02 14:44:07, tdresser ...
5 years, 1 month ago (2015-11-02 16:27:17 UTC) #16
Ted C
On 2015/11/02 16:27:17, e_hakkinen wrote: > https://codereview.chromium.org/1417803002/diff/70001/content/browser/renderer_host/input/motion_event_web.cc > File content/browser/renderer_host/input/motion_event_web.cc (right): > > https://codereview.chromium.org/1417803002/diff/70001/content/browser/renderer_host/input/motion_event_web.cc#newcode141 > ...
5 years, 1 month ago (2015-11-02 19:21:10 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1417803002/90001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1417803002/90001
5 years, 1 month ago (2015-11-02 22:49:24 UTC) #20
commit-bot: I haz the power
Committed patchset #6 (id:90001)
5 years, 1 month ago (2015-11-02 23:50:18 UTC) #21
commit-bot: I haz the power
5 years, 1 month ago (2015-11-02 23:51:10 UTC) #22
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/b39a02032b11742cc467f43026a77a0aba33d5c1
Cr-Commit-Position: refs/heads/master@{#357471}

Powered by Google App Engine
This is Rietveld 408576698