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

Unified Diff: Source/web/WebSettingsImpl.cpp

Issue 428633004: Webkit setting for embedders that do not support fullscreen. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rename to fullscreenSupported Created 6 years, 4 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 b99d22a70f145dbcc7baca96458b3231eb008f67..325a0c2fdb0ce1b91f81112bb6bcfdbfaa7795ad 100644
--- a/Source/web/WebSettingsImpl.cpp
+++ b/Source/web/WebSettingsImpl.cpp
@@ -58,7 +58,6 @@ WebSettingsImpl::WebSettingsImpl(Settings* settings, InspectorController* inspec
, m_viewportMetaNonUserScalableQuirk(false)
, m_clobberUserAgentInitialScaleQuirk(false)
, m_mainFrameResizesAreOrientationChanges(false)
- , m_disallowFullscreenForNonMediaElements(false)
{
ASSERT(settings);
}
@@ -75,6 +74,11 @@ void WebSettingsImpl::setFixedFontFamily(const WebString& font, UScriptCode scri
m_settings->notifyGenericFontFamilyChange();
}
+void WebSettingsImpl::setFullscreenSupported(bool enabled)
+{
+ m_settings->setFullscreenSupported(enabled);
+}
+
void WebSettingsImpl::setSerifFontFamily(const WebString& font, UScriptCode script)
{
if (m_settings->genericFontFamilySettings().updateSerif(font, script))
@@ -698,7 +702,7 @@ void WebSettingsImpl::setMainFrameResizesAreOrientationChanges(bool enabled)
void WebSettingsImpl::setDisallowFullscreenForNonMediaElements(bool enabled)
{
- m_disallowFullscreenForNonMediaElements = enabled;
+ m_settings->setDisallowFullscreenForNonMediaElements(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