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

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

Issue 2860793003: Pass through tilt_x and tilt_y to blink (Closed)
Patch Set: Pass through tilt_x and tilt_y to blink Created 3 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: 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 56c16021bac31248a46d12b59137e165b05fe1be..0f16e5a0cce28d3226af13b3a13567012ab2398e 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
@@ -41,7 +41,8 @@ TEST(WebInputEventUtilTest, MotionEventConversion) {
pointer.pressure = 30;
pointer.touch_minor = 35;
pointer.orientation = static_cast<float>(-M_PI / 2);
- pointer.tilt = static_cast<float>(M_PI / 3);
+ pointer.tilt_x = 60;
+ pointer.tilt_y = 70;
for (MotionEvent::ToolType tool_type : tool_types) {
pointer.tool_type = tool_type;
MotionEventGeneric event(
@@ -66,7 +67,7 @@ TEST(WebInputEventUtilTest, MotionEventConversion) {
expected_pointer.force = pointer.pressure;
if (tool_type == MotionEvent::TOOL_TYPE_STYLUS) {
expected_pointer.tilt_x = 60;
- expected_pointer.tilt_y = 0;
+ expected_pointer.tilt_y = 70;
} else {
expected_pointer.tilt_x = 0;
expected_pointer.tilt_y = 0;

Powered by Google App Engine
This is Rietveld 408576698