| 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 aae77095658467e30fe8227f56b4eff7cbea9a06..1a92ca4130605c4eaa8da66607d3c3402f7dc816 100644
|
| --- a/content/browser/frame_host/cross_process_frame_connector.cc
|
| +++ b/content/browser/frame_host/cross_process_frame_connector.cc
|
| @@ -43,6 +43,7 @@ bool CrossProcessFrameConnector::OnMessageReceived(const IPC::Message& msg) {
|
| OnReclaimCompositorResources)
|
| IPC_MESSAGE_HANDLER(FrameHostMsg_ForwardInputEvent, OnForwardInputEvent)
|
| IPC_MESSAGE_HANDLER(FrameHostMsg_FrameRectChanged, OnFrameRectChanged)
|
| + IPC_MESSAGE_HANDLER(FrameHostMsg_VisibilityChanged, OnVisibilityChanged)
|
| IPC_MESSAGE_HANDLER(FrameHostMsg_InitializeChildFrame,
|
| OnInitializeChildFrame)
|
| IPC_MESSAGE_HANDLER(FrameHostMsg_SatisfySequence, OnSatisfySequence)
|
| @@ -216,6 +217,12 @@ void CrossProcessFrameConnector::OnFrameRectChanged(
|
| SetSize(frame_rect);
|
| }
|
|
|
| +void CrossProcessFrameConnector::OnVisibilityChanged(bool visible) {
|
| + if (!view_)
|
| + return;
|
| + view_->SetVisibility(visible);
|
| +}
|
| +
|
| void CrossProcessFrameConnector::SetDeviceScaleFactor(float scale_factor) {
|
| device_scale_factor_ = scale_factor;
|
| // The RenderWidgetHost is null in unit tests.
|
|
|