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

Unified Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 134683004: Disabled pinch zooming in non-browser Aura windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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/render_widget_host_impl.cc
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
index 411de18ffe3bfcf0eac1cc9390c342f622bd05cf..040fb05ed032b029972fc11ba3abcdd2137470ea 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -990,6 +990,9 @@ void RenderWidgetHostImpl::ForwardGestureEventWithLatencyInfo(
if (IgnoreInputEvents())
return;
+ if (delegate_->PreHandleGestureEvent(gesture_event))
+ return;
+
ui::LatencyInfo latency_info =
CreateRWHLatencyInfoIfNotExist(&ui_latency, gesture_event.type);

Powered by Google App Engine
This is Rietveld 408576698