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

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

Issue 1147083005: Separate motion event touch geometry orientation from stylus orientation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Aura Created 5 years, 7 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
« no previous file with comments | « ui/events/gestures/motion_event_aura_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 baa8f9348ae60a342aa932f8e22e9c6430d521ac..8f89d6ab69365010acaf2a06c409533ae1802cc5 100644
--- a/ui/events/test/motion_event_test_utils.cc
+++ b/ui/events/test/motion_event_test_utils.cc
@@ -196,13 +196,13 @@ std::string ToString(const MotionEvent& event) {
DCHECK_GE(pi, 0);
pointer_ids.clear_first_marked_bit();
ss << "{"
- << "\n PointerId: (" << event.GetPointerId(pi) << ")"
+ << "\n PointerId: (" << event.GetPointerId(pi) << ")"
<< "\n Pos: (" << event.GetX(pi) << ", " << event.GetY(pi) << ")"
<< "\n RawPos: (" << event.GetX(pi) << ", " << event.GetY(pi) << ")"
<< "\n Size: (" << event.GetTouchMajor(pi) << ", "
<< event.GetTouchMinor(pi) << ")"
- << "\n Orientation: " << event.GetOrientation(pi)
- << "\n Pressure: " << event.GetOrientation(pi)
+ << "\n TouchOrientation: " << event.GetTouchOrientation(pi)
+ << "\n Pressure: " << event.GetPressure(pi)
<< "\n Tool: " << event.GetToolType(pi);
if (history_size) {
ss << "\n History: [";
« no previous file with comments | « ui/events/gestures/motion_event_aura_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698