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

Unified Diff: ui/events/gestures/motion_event_aura.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/gestures/motion_event_aura.cc
diff --git a/ui/events/gestures/motion_event_aura.cc b/ui/events/gestures/motion_event_aura.cc
index 01df3f6042620f5dd945e786f91d93affda7a1db..c6a8f717aa63d01a6c0e5d5fae1cfd10ec40b929 100644
--- a/ui/events/gestures/motion_event_aura.cc
+++ b/ui/events/gestures/motion_event_aura.cc
@@ -47,11 +47,11 @@ PointerProperties GetPointerPropertiesFromTouchEvent(const TouchEvent& touch) {
// cases but always seem to be set to zero) unchanged.
pointer_properties.touch_major = 2.f * radius_x;
pointer_properties.touch_minor = 2.f * radius_y;
- pointer_properties.orientation = rotation_angle_rad - M_PI_2;
+ pointer_properties.touch_orientation = rotation_angle_rad - M_PI_2;
} else {
pointer_properties.touch_major = 2.f * radius_y;
pointer_properties.touch_minor = 2.f * radius_x;
- pointer_properties.orientation = rotation_angle_rad;
+ pointer_properties.touch_orientation = rotation_angle_rad;
}
if (!pointer_properties.touch_major) {
@@ -59,7 +59,7 @@ PointerProperties GetPointerPropertiesFromTouchEvent(const TouchEvent& touch) {
2.f * GestureConfiguration::GetInstance()->default_radius();
pointer_properties.touch_minor =
2.f * GestureConfiguration::GetInstance()->default_radius();
- pointer_properties.orientation = 0;
+ pointer_properties.touch_orientation = 0;
}
// TODO(jdduke): Plumb tool type from the platform, crbug.com/404128.
« no previous file with comments | « ui/events/gesture_detection/motion_event_generic_unittest.cc ('k') | ui/events/gestures/motion_event_aura_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698