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

Unified Diff: third_party/WebKit/Source/core/frame/Frame.h

Issue 2883033003: Propagate inert state to OOPIFs when a modal dialog is active (Closed)
Patch Set: Set Frame's inert bit on style calculation 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: third_party/WebKit/Source/core/frame/Frame.h
diff --git a/third_party/WebKit/Source/core/frame/Frame.h b/third_party/WebKit/Source/core/frame/Frame.h
index 397a47833f9a0a1349d964f791fcc216bae26f9e..9db14ab2dc4d2c122be16089bcf1137bb87ef17a 100644
--- a/third_party/WebKit/Source/core/frame/Frame.h
+++ b/third_party/WebKit/Source/core/frame/Frame.h
@@ -156,6 +156,12 @@ class CORE_EXPORT Frame : public GarbageCollectedFinalized<Frame> {
// the given frame.
bool IsFeatureEnabled(WebFeaturePolicyFeature) const;
+ // Called to make a frame inert or non-inert. A frame is inert when there
+ // is a modal dialog displayed within an ancestor frame, and this frame
+ // itself is not within the dialog.
+ virtual void SetIsInert(bool) = 0;
+ virtual bool IsInert() const = 0;
+
protected:
Frame(FrameClient*, Page&, FrameOwner*, WindowProxyManager*);

Powered by Google App Engine
This is Rietveld 408576698