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 5e49b1f0849a7008c5ec7571c32966a5209b37a5..2016679a9ac2340409150cc72625ce2c642ae25b 100644 |
--- a/content/browser/renderer_host/render_widget_host_impl.cc |
+++ b/content/browser/renderer_host/render_widget_host_impl.cc |
@@ -32,6 +32,7 @@ |
#include "content/browser/gpu/gpu_process_host_ui_shim.h" |
#include "content/browser/gpu/gpu_surface_tracker.h" |
#include "content/browser/renderer_host/dip_util.h" |
+#include "content/browser/renderer_host/frame_metadata_util.h" |
#include "content/browser/renderer_host/input/input_router_config_helper.h" |
#include "content/browser/renderer_host/input/input_router_impl.h" |
#include "content/browser/renderer_host/input/synthetic_gesture.h" |
@@ -1453,6 +1454,11 @@ bool RenderWidgetHostImpl::OnSwapCompositorFrame( |
input_router_->OnViewUpdated( |
GetInputRouterViewFlagsFromCompositorFrameMetadata(frame->metadata)); |
+ if (touch_emulator_) { |
+ touch_emulator_->SetDoubleTapSupportForPageEnabled( |
+ !IsMobileOptimizedFrame(frame->metadata)); |
+ } |
+ |
if (view_) { |
view_->OnSwapCompositorFrame(output_surface_id, frame.Pass()); |
view_->DidReceiveRendererFrame(); |