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

Issue 1216933013: [Android] Expose native ViewConfiguration constants as DIPs (Closed)

Created:
5 years, 5 months ago by jdduke (slow)
Modified:
5 years, 5 months ago
Reviewers:
Ted C, gsennton
CC:
chromium-reviews, yusukes+watch_chromium.org, tdresser+watch_chromium.org, shuchen+watch_chromium.org, jam, penghuang+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, James Su, jdduke+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android] Expose native ViewConfiguration constants as DIPs Touch-related constants in Android's ViewConfiguration are exposed in device pixels. However, all native code that uses these values need DIPs. Rather than relying on the caller to do the scaling, which may be incorrect for external displays with different densities, expose the constants as DIPs directly. Longer term, we should instead use a context-specific lookup for ViewConfiguration values. BUG=310763 Committed: https://crrev.com/dcebeec14cf284e8d936e906bde40a80c1ae65ad Cr-Commit-Position: refs/heads/master@{#338114}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix comment and add assert #

Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -134 lines) Patch
M content/browser/renderer_host/input/synthetic_gesture_target_android.cc View 1 chunk +2 lines, -7 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 chunk +1 line, -2 lines 0 comments Download
M ui/android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java View 1 6 chunks +39 lines, -22 lines 0 comments Download
M ui/events/gesture_detection/gesture_configuration_android.cc View 1 chunk +7 lines, -15 lines 0 comments Download
M ui/gfx/android/view_configuration.h View 1 chunk +6 lines, -6 lines 0 comments Download
M ui/gfx/android/view_configuration.cc View 6 chunks +74 lines, -82 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
jdduke (slow)
gsennton@: PTAL. As discussed offline, I think we're OK using the DisplayMetrics density for the ...
5 years, 5 months ago (2015-07-09 17:04:53 UTC) #2
gsennton
lgtm (which i guess has no power here) https://codereview.chromium.org/1216933013/diff/1/ui/android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java File ui/android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java (right): https://codereview.chromium.org/1216933013/diff/1/ui/android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java#newcode57 ui/android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java:57: // ...
5 years, 5 months ago (2015-07-09 17:27:08 UTC) #3
jdduke (slow)
+tedchoc for owner review. https://codereview.chromium.org/1216933013/diff/1/ui/android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java File ui/android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java (right): https://codereview.chromium.org/1216933013/diff/1/ui/android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java#newcode57 ui/android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java:57: // The ViewConfiguration will differ ...
5 years, 5 months ago (2015-07-09 17:49:01 UTC) #5
Ted C
lgtm
5 years, 5 months ago (2015-07-09 18:07:27 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1216933013/20001
5 years, 5 months ago (2015-07-09 18:14:21 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 5 months ago (2015-07-09 19:33:14 UTC) #10
commit-bot: I haz the power
5 years, 5 months ago (2015-07-09 19:34:17 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/dcebeec14cf284e8d936e906bde40a80c1ae65ad
Cr-Commit-Position: refs/heads/master@{#338114}

Powered by Google App Engine
This is Rietveld 408576698