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_SetExpectedSize, OnSetExpectedSize) |
IPC_MESSAGE_HANDLER(ViewHostMsg_Focus, OnFocus) |
IPC_MESSAGE_HANDLER(ViewHostMsg_Blur, OnBlur) |
IPC_MESSAGE_HANDLER(ViewHostMsg_SetCursor, OnSetCursor) |
@@ -1704,6 +1705,11 @@ |
synthetic_gesture_controller_.BeginSmoothScroll(view_, params); |
} |
+void RenderWidgetHostImpl::OnSetExpectedSize(const gfx::Size& size) { |
+ if (view_) |
+ view_->SetExpectedRenderedSize(size); |
+} |
+ |
void RenderWidgetHostImpl::OnFocus() { |
// Only RenderViewHost can deal with that message. |
RecordAction(UserMetricsAction("BadMessageTerminate_RWH4")); |