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

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

Issue 223673006: Support GestureBegin and GestureEnd in ui::GestureProvider (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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/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 8606d5cd47712beb0675f21298f964e653eb0415..81928131b6f8105ac8f071ca4c50258cda6d76c9 100644
--- a/content/browser/android/content_view_core_impl.cc
+++ b/content/browser/android/content_view_core_impl.cc
@@ -369,8 +369,10 @@ void ContentViewCoreImpl::RenderViewReady() {
}
void ContentViewCoreImpl::OnGestureEvent(const ui::GestureEventData& gesture) {
- SendGestureEvent(
- CreateWebGestureEventFromGestureEventData(gesture, 1.f / dpi_scale()));
+ WebGestureEvent event =
+ CreateWebGestureEventFromGestureEventData(gesture, 1.f / dpi_scale());
+ if (event.type != WebInputEvent::Undefined)
jdduke (slow) 2014/04/03 20:17:16 Shouldn't this be a DCHECK? We won't use the Gestu
tdresser 2014/04/03 21:14:41 Done.
+ SendGestureEvent(event);
}
RenderWidgetHostViewAndroid*

Powered by Google App Engine
This is Rietveld 408576698