Index: content/browser/frame_host/cross_process_frame_connector.cc |
diff --git a/content/browser/frame_host/cross_process_frame_connector.cc b/content/browser/frame_host/cross_process_frame_connector.cc |
index 0711a327651df1c961f5a3508fb1bf795e1ac0d5..c93c3393f0004e0e8e4340c93d3e5232f00024de 100644 |
--- a/content/browser/frame_host/cross_process_frame_connector.cc |
+++ b/content/browser/frame_host/cross_process_frame_connector.cc |
@@ -42,6 +42,8 @@ bool CrossProcessFrameConnector::OnMessageReceived(const IPC::Message& msg) { |
IPC_BEGIN_MESSAGE_MAP(CrossProcessFrameConnector, msg) |
IPC_MESSAGE_HANDLER(FrameHostMsg_ForwardInputEvent, OnForwardInputEvent) |
IPC_MESSAGE_HANDLER(FrameHostMsg_FrameRectChanged, OnFrameRectChanged) |
+ IPC_MESSAGE_HANDLER(FrameHostMsg_UpdateViewportIntersection, |
+ OnUpdateViewportIntersection) |
IPC_MESSAGE_HANDLER(FrameHostMsg_VisibilityChanged, OnVisibilityChanged) |
IPC_MESSAGE_HANDLER(FrameHostMsg_SatisfySequence, OnSatisfySequence) |
IPC_MESSAGE_HANDLER(FrameHostMsg_RequireSequence, OnRequireSequence) |
@@ -297,6 +299,12 @@ void CrossProcessFrameConnector::OnFrameRectChanged( |
SetRect(frame_rect); |
} |
+void CrossProcessFrameConnector::OnUpdateViewportIntersection( |
+ const gfx::Rect& viewport_intersection) { |
+ if (view_) |
+ view_->UpdateViewportIntersection(viewport_intersection); |
+} |
+ |
void CrossProcessFrameConnector::OnVisibilityChanged(bool visible) { |
if (!view_) |
return; |