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

Unified Diff: Source/web/WebSettingsImpl.cpp

Issue 290643005: Don't show video fullscreen until DidEnterFullscreen() is called, and disable fullscreen for non-me… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 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 | « Source/web/WebSettingsImpl.h ('k') | public/web/WebSettings.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebSettingsImpl.cpp
diff --git a/Source/web/WebSettingsImpl.cpp b/Source/web/WebSettingsImpl.cpp
index be306879779080c1174cd123c59ed2e11a2b8bc0..77530a5befebaef534d46b5d68598cbed92ec5b3 100644
--- a/Source/web/WebSettingsImpl.cpp
+++ b/Source/web/WebSettingsImpl.cpp
@@ -59,6 +59,7 @@ WebSettingsImpl::WebSettingsImpl(Settings* settings, InspectorController* inspec
, m_viewportMetaNonUserScalableQuirk(false)
, m_clobberUserAgentInitialScaleQuirk(false)
, m_mainFrameResizesAreOrientationChanges(false)
+ , m_disallowFullscreenForNonMediaElements(false)
{
ASSERT(settings);
}
@@ -711,4 +712,9 @@ void WebSettingsImpl::setMainFrameResizesAreOrientationChanges(bool enabled)
m_mainFrameResizesAreOrientationChanges = enabled;
}
+void WebSettingsImpl::setDisallowFullscreenForNonMediaElements(bool enabled)
+{
+ m_disallowFullscreenForNonMediaElements = enabled;
+}
+
} // namespace blink
« no previous file with comments | « Source/web/WebSettingsImpl.h ('k') | public/web/WebSettings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698