summaryrefslogtreecommitdiffstats
path: root/chrome/browser/android
diff options
context:
space:
mode:
authorsadrul <sadrul@chromium.org>2015-06-25 10:25:31 -0700
committerCommit bot <commit-bot@chromium.org>2015-06-25 17:26:04 +0000
commitdb5aa7abc8a6ed76f6497e25821c8a2f3e27f5af (patch)
treec8f2fed596e96fbf0ab93ec3d56bbfadb3447286 /chrome/browser/android
parent716f37a898600a21c90ebd942983afb3aa38b747 (diff)
downloadchromium_src-db5aa7abc8a6ed76f6497e25821c8a2f3e27f5af.zip
chromium_src-db5aa7abc8a6ed76f6497e25821c8a2f3e27f5af.tar.gz
chromium_src-db5aa7abc8a6ed76f6497e25821c8a2f3e27f5af.tar.bz2
html_viewer: Correctly set axis and orientation of MotionEvent.
MotionEvent's orientation is in radian, and it falls within [-π/2, π/2). However, TouchEvent's rotation-angle is in degrees, and it falls within [0, 180). So make sure the conversion from rotation-angle to orientation happens correctly. Add PointerProperties::SetAxisAndOrientation() as a convenience function to do this correctly. This fixes a crash in mandoline when touching the screen in landspace mode. BUG=none Review URL: https://codereview.chromium.org/1202283005 Cr-Commit-Position: refs/heads/master@{#336187}
Diffstat (limited to 'chrome/browser/android')
0 files changed, 0 insertions, 0 deletions