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

Unified Diff: ui/aura/gestures/gesture_recognizer_unittest.cc

Issue 2647253002: Add tangentialPressure and twist properties to PointerEvent on Windows (Closed)
Patch Set: rotation Created 3 years, 11 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 | « no previous file | ui/events/blink/web_input_event.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/gestures/gesture_recognizer_unittest.cc
diff --git a/ui/aura/gestures/gesture_recognizer_unittest.cc b/ui/aura/gestures/gesture_recognizer_unittest.cc
index 0424fe113b4b656b86335a1293cb3b5383997eee..151376b3d81a37a8f4cb9f21462a70aa4f2f93a7 100644
--- a/ui/aura/gestures/gesture_recognizer_unittest.cc
+++ b/ui/aura/gestures/gesture_recognizer_unittest.cc
@@ -645,12 +645,12 @@ void DelayByShowPressTimeout() {
void SetTouchRadius(ui::TouchEvent* event, float radius_x, float radius_y) {
// Using ctor (over direct struct access) due to it's special behavior with
// radii.
- ui::PointerDetails details(ui::EventPointerType::POINTER_TYPE_TOUCH,
- radius_x,
- radius_y,
- event->pointer_details().force,
+ ui::PointerDetails details(ui::EventPointerType::POINTER_TYPE_TOUCH, radius_x,
+ radius_y, event->pointer_details().force,
event->pointer_details().tilt_x,
- event->pointer_details().tilt_y);
+ event->pointer_details().tilt_y,
+ event->pointer_details().tangential_pressure,
+ event->pointer_details().twist);
event->set_pointer_details(details);
}
« no previous file with comments | « no previous file | ui/events/blink/web_input_event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698