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

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

Issue 1187273004: Pass MotionEvent tilt angles to Blink on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 4 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/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 dd9bab868ac8c7921370b381c6b292f95a86996b..a2fafd4011ce54f1250082209f9b59d9d08b4659 100644
--- a/content/browser/android/content_view_core_impl.cc
+++ b/content/browser/android/content_view_core_impl.cc
@@ -905,6 +905,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,
@@ -923,6 +925,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,
@@ -930,6 +933,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,

Powered by Google App Engine
This is Rietveld 408576698