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

Unified Diff: ui/events/test/motion_event_test_utils.cc

Issue 1187273004: Pass MotionEvent tilt angles to Blink on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/events/test/motion_event_test_utils.cc
diff --git a/ui/events/test/motion_event_test_utils.cc b/ui/events/test/motion_event_test_utils.cc
index 0a3f80d26efbee7a552588367b416f4238a070e2..d976f0b2ab1419f98dd8ca4cc6a561242de3f6d4 100644
--- a/ui/events/test/motion_event_test_utils.cc
+++ b/ui/events/test/motion_event_test_utils.cc
@@ -213,6 +213,12 @@ std::string ToString(const MotionEvent& event) {
<< event.GetTouchMinor(pi) << ")"
<< "\n Orientation: " << event.GetOrientation(pi)
<< "\n Pressure: " << event.GetPressure(pi)
+ // TODO(e_hakkinen): Remove GetTilt and GetTiltOrientation or GetTiltX
+ // and GetTiltY.
+ << "\n Tilt: (" << event.GetTilt(pi) << ", "
+ << event.GetTiltOrientation(pi) << "; "
+ << event.GetTiltX(pi) << ", "
+ << event.GetTiltY(pi) << ")"
<< "\n Tool: " << event.GetToolType(pi);
if (history_size) {
ss << "\n History: [";

Powered by Google App Engine
This is Rietveld 408576698