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

Issue 170993003: [Android] Use DIP coordinates for GestureFlingStart events (Closed)

Created:
6 years, 10 months ago by jdduke (slow)
Modified:
6 years, 10 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, aelias_OOO_until_Jul13
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

[Android] Use DIP coordinates for GestureFlingStart events The OverScroller used to generate fling updates on Android works in pixel space. Consequently, GestureFlingStart velocities were forwarded also in pixel space. This exceptional case is unnecessary and confusing, as all other gestures components are provided as DIPs. Adopt DIPs for GestureFlingStart, instead scaling the velocity to pixels when generating the OverScroller object. BUG=332418 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251963

Patch Set 1 #

Patch Set 2 : Cleanup #

Total comments: 6

Patch Set 3 : Undo unnecessary changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -8 lines) Patch
M content/browser/android/content_view_core_impl.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M webkit/child/fling_animator_impl_android.cc View 1 2 3 chunks +8 lines, -4 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
jdduke (slow)
jamesr@: PTAL. I believe r.kasibhatla@samsung.com had a patch that also caches the DPI scale when ...
6 years, 10 months ago (2014-02-18 19:53:54 UTC) #1
aelias_OOO_until_Jul13
This inconsistency is there for a reason, it's to address http://crbug.com/176869. We would need to ...
6 years, 10 months ago (2014-02-18 19:56:56 UTC) #2
jdduke (slow)
On 2014/02/18 19:56:56, aelias wrote: > This inconsistency is there for a reason, it's to ...
6 years, 10 months ago (2014-02-18 20:03:08 UTC) #3
aelias_OOO_until_Jul13
OK, should've looked at the details before commenting, lgtm. In a future patch, I think ...
6 years, 10 months ago (2014-02-18 20:19:53 UTC) #4
jdduke (slow)
On 2014/02/18 20:19:53, aelias wrote: > OK, should've looked at the details before commenting, lgtm. ...
6 years, 10 months ago (2014-02-18 21:17:07 UTC) #5
jamesr
https://codereview.chromium.org/170993003/diff/20001/webkit/child/fling_animator_impl_android.cc File webkit/child/fling_animator_impl_android.cc (right): https://codereview.chromium.org/170993003/diff/20001/webkit/child/fling_animator_impl_android.cc#newcode55 webkit/child/fling_animator_impl_android.cc:55: dpi_scale_ = gfx::Screen::GetNativeScreen()->GetPrimaryDisplay() let's not do this. if you ...
6 years, 10 months ago (2014-02-18 22:40:46 UTC) #6
jdduke (slow)
https://codereview.chromium.org/170993003/diff/20001/webkit/child/fling_animator_impl_android.cc File webkit/child/fling_animator_impl_android.cc (right): https://codereview.chromium.org/170993003/diff/20001/webkit/child/fling_animator_impl_android.cc#newcode55 webkit/child/fling_animator_impl_android.cc:55: dpi_scale_ = gfx::Screen::GetNativeScreen()->GetPrimaryDisplay() On 2014/02/18 22:40:46, jamesr wrote: > ...
6 years, 10 months ago (2014-02-18 22:51:28 UTC) #7
jamesr
lgtm
6 years, 10 months ago (2014-02-18 22:56:31 UTC) #8
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 10 months ago (2014-02-19 00:22:38 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/170993003/180001
6 years, 10 months ago (2014-02-19 00:25:46 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-19 02:55:58 UTC) #11
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=266092
6 years, 10 months ago (2014-02-19 02:55:58 UTC) #12
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 10 months ago (2014-02-19 03:22:50 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/170993003/180001
6 years, 10 months ago (2014-02-19 03:23:32 UTC) #14
commit-bot: I haz the power
6 years, 10 months ago (2014-02-19 06:18:47 UTC) #15
Message was sent while issue was closed.
Change committed as 251963

Powered by Google App Engine
This is Rietveld 408576698