| 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 9edbfab734db151b79a076ebcf77d7e9ad34e7eb..1d8b23c041186c75129f4e8b0e6e2c893fe119a8 100644
|
| --- a/content/browser/frame_host/cross_process_frame_connector.cc
|
| +++ b/content/browser/frame_host/cross_process_frame_connector.cc
|
| @@ -13,6 +13,7 @@
|
| #include "content/browser/frame_host/render_frame_proxy_host.h"
|
| #include "content/browser/frame_host/render_widget_host_view_child_frame.h"
|
| #include "content/browser/renderer_host/render_view_host_impl.h"
|
| +#include "content/browser/renderer_host/render_widget_host_delegate.h"
|
| #include "content/browser/renderer_host/render_widget_host_impl.h"
|
| #include "content/browser/renderer_host/render_widget_host_view_base.h"
|
| #include "content/common/frame_messages.h"
|
| @@ -43,6 +44,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)
|
| @@ -227,6 +229,16 @@ void CrossProcessFrameConnector::OnFrameRectChanged(
|
| SetSize(frame_rect);
|
| }
|
|
|
| +void CrossProcessFrameConnector::OnVisibilityChanged(bool visible) {
|
| + if (!view_)
|
| + return;
|
| +
|
| + if (visible)
|
| + view_->Show();
|
| + else
|
| + view_->Hide();
|
| +}
|
| +
|
| void CrossProcessFrameConnector::SetDeviceScaleFactor(float scale_factor) {
|
| device_scale_factor_ = scale_factor;
|
| // The RenderWidgetHost is null in unit tests.
|
|
|