Index: content/browser/renderer_host/render_widget_host_impl.cc |
=================================================================== |
--- content/browser/renderer_host/render_widget_host_impl.cc (revision 221161) |
+++ content/browser/renderer_host/render_widget_host_impl.cc (working copy) |
@@ -434,6 +434,7 @@ |
IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateRect, OnUpdateRect) |
IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateIsDelayed, OnUpdateIsDelayed) |
IPC_MESSAGE_HANDLER(ViewHostMsg_BeginSmoothScroll, OnBeginSmoothScroll) |
+ IPC_MESSAGE_HANDLER(ViewHostMsg_EmulateDevice, OnEmulateDevice) |
IPC_MESSAGE_HANDLER(ViewHostMsg_Focus, OnFocus) |
IPC_MESSAGE_HANDLER(ViewHostMsg_Blur, OnBlur) |
IPC_MESSAGE_HANDLER(ViewHostMsg_SetCursor, OnSetCursor) |
@@ -1704,6 +1705,12 @@ |
synthetic_gesture_controller_.BeginSmoothScroll(view_, params); |
} |
+void RenderWidgetHostImpl::OnEmulateDevice(bool enabled) { |
+ if (view_) |
+ view_->EmulateDevice(enabled); |
+ Send(new ViewMsg_EmulateDevice_ACK(routing_id_, enabled)); |
+} |
+ |
void RenderWidgetHostImpl::OnFocus() { |
// Only RenderViewHost can deal with that message. |
RecordAction(UserMetricsAction("BadMessageTerminate_RWH4")); |