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

Unified Diff: content/browser/android/content_view_core_impl.cc

Issue 1417803002: Pass MotionEvent tilt angles to Blink on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Flattened nested ifs, fixed a special case Created 5 years, 1 month 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/android/content_view_core_impl.cc
diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc
index bc83a1ca9289a29cc3b7592af40fc4e7254d380f..9af29a9c99d450355932c754e03d57d1f6fb82d6 100644
--- a/content/browser/android/content_view_core_impl.cc
+++ b/content/browser/android/content_view_core_impl.cc
@@ -877,6 +877,8 @@ jboolean ContentViewCoreImpl::OnTouchEvent(JNIEnv* env,
jfloat touch_minor_1,
jfloat orientation_0,
jfloat orientation_1,
+ jfloat tilt_0,
+ jfloat tilt_1,
jfloat raw_pos_x,
jfloat raw_pos_y,
jint android_tool_type_0,
@@ -895,6 +897,7 @@ jboolean ContentViewCoreImpl::OnTouchEvent(JNIEnv* env,
touch_major_0,
touch_minor_0,
orientation_0,
+ tilt_0,
android_tool_type_0);
MotionEventAndroid::Pointer pointer1(pointer_id_1,
pos_x_1,
@@ -902,6 +905,7 @@ jboolean ContentViewCoreImpl::OnTouchEvent(JNIEnv* env,
touch_major_1,
touch_minor_1,
orientation_1,
+ tilt_1,
android_tool_type_1);
MotionEventAndroid event(1.f / dpi_scale(),
env,
« no previous file with comments | « content/browser/android/content_view_core_impl.h ('k') | content/browser/renderer_host/input/motion_event_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698