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 #
Messages
Total messages: 11 (4 generated)
|