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

Unified Diff: ui/events/blink/blink_event_util.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
Index: ui/events/blink/blink_event_util.cc
diff --git a/ui/events/blink/blink_event_util.cc b/ui/events/blink/blink_event_util.cc
index 9a3a648ae3306e5517b87255acd1c5d0f1fac847..39f2e4f9a5bf0db32dbf5f906a719c92e973988a 100644
--- a/ui/events/blink/blink_event_util.cc
+++ b/ui/events/blink/blink_event_util.cc
@@ -99,7 +99,8 @@ WebTouchPoint CreateWebTouchPoint(const MotionEvent& event,
DCHECK_LE(minor_radius, major_radius);
DCHECK_IMPLIES(major_radius, minor_radius);
- float orientation_deg = event.GetOrientation(pointer_index) * 180.f / M_PI;
+ float orientation_deg =
+ event.GetTouchOrientation(pointer_index) * 180.f / M_PI;
DCHECK_GE(major_radius, 0);
DCHECK_GE(minor_radius, 0);
DCHECK_GE(major_radius, minor_radius);
« no previous file with comments | « content/browser/renderer_host/input/web_input_event_util_unittest.cc ('k') | ui/events/gesture_detection/motion_event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698