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

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

Issue 567783002: Add modifier flags to MotionEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove MotionEvent modifiers Created 6 years, 3 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 f8ca9a743014a84904569c46180f0f8cf979d41f..af52f3513fc587dc16a4fc6571a976e2cae2f6db 100644
--- a/content/browser/android/content_view_core_impl.cc
+++ b/content/browser/android/content_view_core_impl.cc
@@ -880,6 +880,7 @@ jboolean ContentViewCoreImpl::OnTouchEvent(JNIEnv* env,
jint android_tool_type_0,
jint android_tool_type_1,
jint android_button_state,
+ jint android_meta_state,
jboolean is_touch_handle_event) {
RenderWidgetHostViewAndroid* rwhv = GetRenderWidgetHostViewAndroid();
// Avoid synthesizing a touch event if it cannot be forwarded.
@@ -910,7 +911,8 @@ jboolean ContentViewCoreImpl::OnTouchEvent(JNIEnv* env,
raw_pos_y,
android_tool_type_0,
android_tool_type_1,
- android_button_state);
+ android_button_state,
+ android_meta_state);
return is_touch_handle_event ? rwhv->OnTouchHandleEvent(event)
: rwhv->OnTouchEvent(event);

Powered by Google App Engine
This is Rietveld 408576698