Index: content/browser/frame_host/render_widget_host_view_child_frame.cc |
diff --git a/content/browser/frame_host/render_widget_host_view_child_frame.cc b/content/browser/frame_host/render_widget_host_view_child_frame.cc |
index 59efca167892939fc60e02cc0a8925b1b11c5145..f4766ca2a7165b9c6b0a1650927a522703e2f44d 100644 |
--- a/content/browser/frame_host/render_widget_host_view_child_frame.cc |
+++ b/content/browser/frame_host/render_widget_host_view_child_frame.cc |
@@ -383,6 +383,13 @@ void RenderWidgetHostViewChildFrame::UpdateViewportIntersection( |
viewport_intersection)); |
} |
+void RenderWidgetHostViewChildFrame::SetIsInert() { |
+ if (host_ && frame_connector_) { |
+ host_->Send(new ViewMsg_SetIsInert(host_->GetRoutingID(), |
+ frame_connector_->is_inert())); |
+ } |
+} |
+ |
void RenderWidgetHostViewChildFrame::GestureEventAck( |
const blink::WebGestureEvent& event, |
InputEventAckState ack_result) { |
@@ -620,8 +627,10 @@ bool RenderWidgetHostViewChildFrame::IsRenderWidgetHostViewChildFrame() { |
} |
void RenderWidgetHostViewChildFrame::WillSendScreenRects() { |
- if (frame_connector_) |
+ if (frame_connector_) { |
UpdateViewportIntersection(frame_connector_->viewport_intersection()); |
+ SetIsInert(); |
alexmos
2017/06/20 18:46:10
Assuming that this handles the new process case, i
kenrb
2017/06/22 15:33:35
I agree this doesn't feel like the greatest place,
alexmos
2017/06/22 17:09:27
OK. Perhaps add a TODO and describe some of those
|
+ } |
} |
#if defined(OS_MACOSX) |