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

Issue 220063002: [Android] Use DIP coordinates with MotionEventAndroid (Closed)

Created:
6 years, 8 months ago by jdduke (slow)
Modified:
6 years, 8 months ago
Reviewers:
tdresser
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

[Android] Use DIP coordinates with MotionEventAndroid With this change, all MotionEvent implementations will use DIP coordinates, eliminating confusion and making the world a better place. All assumptions of integral coordinates in the gesture detection pipeline have been updated appropriately. BUG=332418 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=263493

Patch Set 1 #

Patch Set 2 : Fixes #

Patch Set 3 : Updates #

Patch Set 4 : Rebase #

Patch Set 5 : Updtes #

Patch Set 6 : More fixes #

Total comments: 16

Patch Set 7 : git cl try #

Patch Set 8 : Rebase #

Patch Set 9 : Rebase #

Patch Set 10 : Fix device scale override #

Patch Set 11 : Fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+357 lines, -356 lines) Patch
M content/browser/android/content_view_core_impl.cc View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -5 lines 0 comments Download
M content/browser/renderer_host/input/motion_event_android.h View 1 2 3 4 5 6 7 8 9 3 chunks +20 lines, -10 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 9 chunks +66 lines, -48 lines 0 comments Download
M content/browser/renderer_host/input/touch_event_queue.cc View 1 2 3 4 5 6 3 chunks +9 lines, -2 lines 0 comments Download
M content/browser/renderer_host/input/web_input_event_util.h View 1 chunk +2 lines, -4 lines 0 comments Download
M content/browser/renderer_host/input/web_input_event_util.cc View 1 2 3 5 chunks +35 lines, -47 lines 0 comments Download
M ui/events/gesture_detection/gesture_config_helper.h View 1 2 1 chunk +0 lines, -10 lines 0 comments Download
M ui/events/gesture_detection/gesture_config_helper.cc View 1 2 1 chunk +5 lines, -13 lines 0 comments Download
M ui/events/gesture_detection/gesture_config_helper_android.cc View 1 2 3 4 5 1 chunk +27 lines, -29 lines 0 comments Download
M ui/events/gesture_detection/gesture_config_helper_aura.cc View 1 2 3 4 5 3 chunks +8 lines, -18 lines 0 comments Download
M ui/events/gesture_detection/gesture_detector.h View 1 2 3 4 5 6 2 chunks +19 lines, -9 lines 0 comments Download
M ui/events/gesture_detection/gesture_detector.cc View 1 2 3 4 5 6 6 chunks +27 lines, -17 lines 0 comments Download
M ui/events/gesture_detection/gesture_provider.h View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M ui/events/gesture_detection/gesture_provider.cc View 1 2 3 4 5 6 7 14 chunks +17 lines, -74 lines 0 comments Download
M ui/events/gesture_detection/gesture_provider_unittest.cc View 1 2 3 4 5 6 7 10 chunks +68 lines, -18 lines 0 comments Download
M ui/events/gesture_detection/scale_gesture_detector.h View 1 2 3 4 5 3 chunks +11 lines, -5 lines 0 comments Download
M ui/events/gesture_detection/scale_gesture_detector.cc View 1 2 3 4 5 6 4 chunks +12 lines, -6 lines 0 comments Download
M ui/events/gesture_detection/snap_scroll_controller.h View 1 2 3 4 3 chunks +5 lines, -11 lines 0 comments Download
M ui/events/gesture_detection/snap_scroll_controller.cc View 1 2 3 4 2 chunks +20 lines, -29 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
jdduke (slow)
tdresser@: PTAL. There are many bits here (more than I realized) that will be very ...
6 years, 8 months ago (2014-04-09 01:40:53 UTC) #1
tdresser
LGTM with nits. https://codereview.chromium.org/220063002/diff/100001/content/browser/renderer_host/input/motion_event_android.cc File content/browser/renderer_host/input/motion_event_android.cc (right): https://codereview.chromium.org/220063002/diff/100001/content/browser/renderer_host/input/motion_event_android.cc#newcode249 content/browser/renderer_host/input/motion_event_android.cc:249: GetX(0) / px_to_dp_, I guess caching ...
6 years, 8 months ago (2014-04-09 14:00:01 UTC) #2
jdduke (slow)
https://codereview.chromium.org/220063002/diff/100001/content/browser/renderer_host/input/motion_event_android.cc File content/browser/renderer_host/input/motion_event_android.cc (right): https://codereview.chromium.org/220063002/diff/100001/content/browser/renderer_host/input/motion_event_android.cc#newcode249 content/browser/renderer_host/input/motion_event_android.cc:249: GetX(0) / px_to_dp_, On 2014/04/09 14:00:01, tdresser wrote: > ...
6 years, 8 months ago (2014-04-10 22:04:52 UTC) #3
tdresser
https://codereview.chromium.org/220063002/diff/100001/ui/events/gesture_detection/gesture_detector.h File ui/events/gesture_detection/gesture_detector.h (right): https://codereview.chromium.org/220063002/diff/100001/ui/events/gesture_detection/gesture_detector.h#newcode35 ui/events/gesture_detection/gesture_detector.h:35: // double tap (in dips). On 2014/04/10 22:04:53, jdduke ...
6 years, 8 months ago (2014-04-11 12:18:14 UTC) #4
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 8 months ago (2014-04-11 15:13:43 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/220063002/180001
6 years, 8 months ago (2014-04-11 15:13:52 UTC) #6
jdduke (slow)
The CQ bit was unchecked by jdduke@chromium.org
6 years, 8 months ago (2014-04-11 22:15:49 UTC) #7
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 8 months ago (2014-04-11 22:22:23 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/220063002/200001
6 years, 8 months ago (2014-04-11 22:24:36 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-11 23:28:12 UTC) #10
commit-bot: I haz the power
Retried try job too often on android_clang_dbg for step(s) slave_steps http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_clang_dbg&number=132075
6 years, 8 months ago (2014-04-11 23:28:13 UTC) #11
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 8 months ago (2014-04-12 00:09:32 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/220063002/220001
6 years, 8 months ago (2014-04-12 00:10:19 UTC) #13
commit-bot: I haz the power
6 years, 8 months ago (2014-04-12 05:51:38 UTC) #14
Message was sent while issue was closed.
Change committed as 263493

Powered by Google App Engine
This is Rietveld 408576698