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 5fc3c272ef19dfb3f5df3afda32797ba782d5477..597c889241715bcb2189c0f632b4280f8abd7b07 100644 |
--- a/content/browser/frame_host/cross_process_frame_connector.cc |
+++ b/content/browser/frame_host/cross_process_frame_connector.cc |
@@ -44,6 +44,7 @@ bool CrossProcessFrameConnector::OnMessageReceived(const IPC::Message& msg) { |
IPC_MESSAGE_HANDLER(FrameHostMsg_UpdateViewportIntersection, |
OnUpdateViewportIntersection) |
IPC_MESSAGE_HANDLER(FrameHostMsg_VisibilityChanged, OnVisibilityChanged) |
+ IPC_MESSAGE_HANDLER(FrameHostMsg_SetIsInert, OnSetIsInert) |
IPC_MESSAGE_HANDLER(FrameHostMsg_SatisfySequence, OnSatisfySequence) |
IPC_MESSAGE_HANDLER(FrameHostMsg_RequireSequence, OnRequireSequence) |
IPC_MESSAGE_UNHANDLED(handled = false) |
@@ -277,6 +278,11 @@ void CrossProcessFrameConnector::OnVisibilityChanged(bool visible) { |
} |
} |
+void CrossProcessFrameConnector::OnSetIsInert(bool inert) { |
+ if (view_) |
+ view_->SetIsInert(inert); |
+} |
+ |
void CrossProcessFrameConnector::SetRect(const gfx::Rect& frame_rect) { |
gfx::Rect old_rect = child_frame_rect_; |
child_frame_rect_ = frame_rect; |