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

Unified Diff: third_party/WebKit/public/web/WebFrameOwnerProperties.h

Issue 1938753002: OOPIF: Replicate allowFullscreen flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 7 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 | « third_party/WebKit/public/web/WebFrame.h ('k') | third_party/WebKit/public/web/WebLocalFrame.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/web/WebFrameOwnerProperties.h
diff --git a/third_party/WebKit/public/web/WebFrameOwnerProperties.h b/third_party/WebKit/public/web/WebFrameOwnerProperties.h
index d0c282c914f76aa9f1096af6da2414359c199a29..f08a90f857ba1713d2af03b7e4b58783936d9a57 100644
--- a/third_party/WebKit/public/web/WebFrameOwnerProperties.h
+++ b/third_party/WebKit/public/web/WebFrameOwnerProperties.h
@@ -18,22 +18,38 @@ struct WebFrameOwnerProperties {
ScrollingMode scrollingMode;
int marginWidth;
int marginHeight;
+ bool allowFullscreen;
WebFrameOwnerProperties()
: scrollingMode(ScrollingMode::Auto)
, marginWidth(-1)
, marginHeight(-1)
+ , allowFullscreen(false)
{
}
#if INSIDE_BLINK
- WebFrameOwnerProperties(ScrollbarMode scrollingMode, int marginWidth, int marginHeight)
+ WebFrameOwnerProperties(ScrollbarMode scrollingMode, int marginWidth, int marginHeight, bool allowFullscreen)
: scrollingMode(static_cast<ScrollingMode>(scrollingMode))
, marginWidth(marginWidth)
, marginHeight(marginHeight)
+ , allowFullscreen(allowFullscreen)
{
}
#endif
+
+ bool operator==(const WebFrameOwnerProperties& other) const
+ {
+ return scrollingMode == other.scrollingMode
+ && marginWidth == other.marginWidth
+ && marginHeight == other.marginHeight
+ && allowFullscreen == other.allowFullscreen;
+ }
+
+ bool operator!=(const WebFrameOwnerProperties& other) const
+ {
+ return !(*this == other);
+ }
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/public/web/WebFrame.h ('k') | third_party/WebKit/public/web/WebLocalFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698