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

Unified Diff: content/browser/renderer_host/input/web_input_event_util_unittest.cc

Issue 755403006: Added experimental Touch.tilt, Touch.tiltDirection support for Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unused code (event_sender.cc) Created 5 years, 9 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: content/browser/renderer_host/input/web_input_event_util_unittest.cc
diff --git a/content/browser/renderer_host/input/web_input_event_util_unittest.cc b/content/browser/renderer_host/input/web_input_event_util_unittest.cc
index 2587863d42801bfad960de6e4423b5811b6cee57..e459021626e13940aa6d2ff590cee72e0ef90a9b 100644
--- a/content/browser/renderer_host/input/web_input_event_util_unittest.cc
+++ b/content/browser/renderer_host/input/web_input_event_util_unittest.cc
@@ -34,6 +34,7 @@ TEST(WebInputEventUtilTest, MotionEventConversion) {
pointer.pressure = 30;
pointer.touch_minor = 35;
pointer.orientation = static_cast<float>(-M_PI / 2);
+ pointer.tilt = 0.f;
MotionEventGeneric event(
MotionEvent::ACTION_DOWN, base::TimeTicks::Now(), pointer);
event.set_flags(ui::EF_SHIFT_DOWN | ui::EF_ALT_DOWN);
@@ -53,6 +54,8 @@ TEST(WebInputEventUtilTest, MotionEventConversion) {
expected_pointer.radiusX = pointer.touch_major / 2.f;
expected_pointer.radiusY = pointer.touch_minor / 2.f;
expected_pointer.rotationAngle = 0.f;
+ expected_pointer.tilt = 0.f;
+ expected_pointer.tiltDirection = 0.f;
expected_pointer.force = pointer.pressure;
expected_event.touches[0] = expected_pointer;
« no previous file with comments | « content/browser/renderer_host/input/web_input_event_util.cc ('k') | content/browser/renderer_host/ui_events_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698