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

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

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
« no previous file with comments | « no previous file | content/browser/frame_host/cross_process_frame_connector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/cross_process_frame_connector.h
diff --git a/content/browser/frame_host/cross_process_frame_connector.h b/content/browser/frame_host/cross_process_frame_connector.h
index 3a7d9776025aedd2f4b0827795340fcb993a3c7e..27b7066bfce9de32da67d5b98af095bfc417723e 100644
--- a/content/browser/frame_host/cross_process_frame_connector.h
+++ b/content/browser/frame_host/cross_process_frame_connector.h
@@ -137,6 +137,8 @@ class CONTENT_EXPORT CrossProcessFrameConnector {
return viewport_intersection_rect_;
}
+ bool is_inert() const { return is_inert_; }
+
// Exposed for tests.
RenderWidgetHostViewBase* GetRootRenderWidgetHostViewForTesting() {
return GetRootRenderWidgetHostView();
@@ -149,6 +151,7 @@ class CONTENT_EXPORT CrossProcessFrameConnector {
void OnFrameRectChanged(const gfx::Rect& frame_rect);
void OnUpdateViewportIntersection(const gfx::Rect& viewport_intersection);
void OnVisibilityChanged(bool visible);
+ void OnSetIsInert(bool);
void OnSatisfySequence(const cc::SurfaceSequence& sequence);
void OnRequireSequence(const cc::SurfaceId& id,
const cc::SurfaceSequence& sequence);
@@ -164,6 +167,7 @@ class CONTENT_EXPORT CrossProcessFrameConnector {
gfx::Rect child_frame_rect_;
gfx::Rect viewport_intersection_rect_;
+ bool is_inert_ = false;
bool is_scroll_bubbling_;
};
« no previous file with comments | « no previous file | content/browser/frame_host/cross_process_frame_connector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698