Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(582)

Unified Diff: content/browser/frame_host/cross_process_frame_connector.cc

Issue 2883033003: Propagate inert state to OOPIFs when a modal dialog is active (Closed)
Patch Set: nit addressed Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 50d8b5895a34efdfb1cdf42ec68dfec96b175fdb..cef3f9a22a12ff724117c8cb6a2dfd0cd35c1fe3 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)
@@ -278,6 +279,12 @@ void CrossProcessFrameConnector::OnVisibilityChanged(bool visible) {
}
}
+void CrossProcessFrameConnector::OnSetIsInert(bool inert) {
+ is_inert_ = inert;
+ if (view_)
+ view_->SetIsInert();
+}
+
void CrossProcessFrameConnector::SetRect(const gfx::Rect& frame_rect) {
gfx::Rect old_rect = child_frame_rect_;
child_frame_rect_ = frame_rect;

Powered by Google App Engine
This is Rietveld 408576698