This source file includes following definitions.
- enableExperimentalFeatures
- enableBleedingEdgeFastPaths
- enableTestOnlyFeatures
- enableApplicationCache
- enableDatabase
- enableDialogElement
- enableEncryptedMedia
- isEncryptedMediaEnabled
- enablePrefixedEncryptedMedia
- isPrefixedEncryptedMediaEnabled
- enableExperimentalCanvasFeatures
- enableFastTextAutosizing
- enableFileSystem
- enableGamepad
- enableLazyLayout
- enableLocalStorage
- enableMediaPlayer
- enableWebKitMediaSource
- enableMediaSource
- enableMediaStream
- enableNotifications
- enableNavigatorContentUtils
- enableOrientationEvent
- enablePagePopup
- enablePeerConnection
- enableRequestAutocomplete
- enableScriptedSpeech
- enableServiceWorker
- enableSessionStorage
- enableSpeechInput
- enableSpeechSynthesis
- enableTouch
- enableTouchIconLoading
- enableWebAnimationsCSS
- enableWebAnimationsSVG
- enableWebAudio
- enableWebGLDraftExtensions
- enableWebMIDI
- enableHTMLImports
- enableXSLT
- enableOverlayScrollbars
- enableOverlayFullscreenVideo
- enableSharedWorker
- enableRepaintAfterLayout
- enableExperimentalWebSocket
- enableTargetedStyleRecalc
- enablePreciseMemoryInfo
#include "config.h"
#include "WebRuntimeFeatures.h"
#include "RuntimeEnabledFeatures.h"
#include "WebMediaPlayerClientImpl.h"
using namespace WebCore;
namespace blink {
void WebRuntimeFeatures::enableExperimentalFeatures(bool enable)
{
RuntimeEnabledFeatures::setExperimentalFeaturesEnabled(enable);
}
void WebRuntimeFeatures::enableBleedingEdgeFastPaths(bool enable)
{
ASSERT(enable);
RuntimeEnabledFeatures::setBleedingEdgeFastPathsEnabled(enable);
RuntimeEnabledFeatures::setSubpixelFontScalingEnabled(enable || RuntimeEnabledFeatures::subpixelFontScalingEnabled());
RuntimeEnabledFeatures::setCSSWillChangeEnabled(enable);
RuntimeEnabledFeatures::setWebAnimationsAPIEnabled(enable);
}
void WebRuntimeFeatures::enableTestOnlyFeatures(bool enable)
{
RuntimeEnabledFeatures::setTestFeaturesEnabled(enable);
}
void WebRuntimeFeatures::enableApplicationCache(bool enable)
{
RuntimeEnabledFeatures::setApplicationCacheEnabled(enable);
}
void WebRuntimeFeatures::enableDatabase(bool enable)
{
RuntimeEnabledFeatures::setDatabaseEnabled(enable);
}
void WebRuntimeFeatures::enableDialogElement(bool enable)
{
RuntimeEnabledFeatures::setDialogElementEnabled(enable);
}
void WebRuntimeFeatures::enableEncryptedMedia(bool enable)
{
RuntimeEnabledFeatures::setEncryptedMediaEnabled(enable);
RuntimeEnabledFeatures::setEncryptedMediaAnyVersionEnabled(
RuntimeEnabledFeatures::encryptedMediaEnabled()
|| RuntimeEnabledFeatures::prefixedEncryptedMediaEnabled());
}
bool WebRuntimeFeatures::isEncryptedMediaEnabled()
{
return RuntimeEnabledFeatures::encryptedMediaEnabled();
}
void WebRuntimeFeatures::enablePrefixedEncryptedMedia(bool enable)
{
RuntimeEnabledFeatures::setPrefixedEncryptedMediaEnabled(enable);
RuntimeEnabledFeatures::setEncryptedMediaAnyVersionEnabled(
RuntimeEnabledFeatures::encryptedMediaEnabled()
|| RuntimeEnabledFeatures::prefixedEncryptedMediaEnabled());
}
bool WebRuntimeFeatures::isPrefixedEncryptedMediaEnabled()
{
return RuntimeEnabledFeatures::prefixedEncryptedMediaEnabled();
}
void WebRuntimeFeatures::enableExperimentalCanvasFeatures(bool enable)
{
RuntimeEnabledFeatures::setExperimentalCanvasFeaturesEnabled(enable);
}
void WebRuntimeFeatures::enableFastTextAutosizing(bool enable)
{
RuntimeEnabledFeatures::setFastTextAutosizingEnabled(enable);
}
void WebRuntimeFeatures::enableFileSystem(bool enable)
{
RuntimeEnabledFeatures::setFileSystemEnabled(enable);
}
void WebRuntimeFeatures::enableGamepad(bool enable)
{
RuntimeEnabledFeatures::setGamepadEnabled(enable);
}
void WebRuntimeFeatures::enableLazyLayout(bool enable)
{
}
void WebRuntimeFeatures::enableLocalStorage(bool enable)
{
RuntimeEnabledFeatures::setLocalStorageEnabled(enable);
}
void WebRuntimeFeatures::enableMediaPlayer(bool enable)
{
RuntimeEnabledFeatures::setMediaEnabled(enable);
}
void WebRuntimeFeatures::enableWebKitMediaSource(bool enable)
{
RuntimeEnabledFeatures::setWebKitMediaSourceEnabled(enable);
}
void WebRuntimeFeatures::enableMediaSource(bool enable)
{
RuntimeEnabledFeatures::setMediaSourceEnabled(enable);
}
void WebRuntimeFeatures::enableMediaStream(bool enable)
{
RuntimeEnabledFeatures::setMediaStreamEnabled(enable);
}
void WebRuntimeFeatures::enableNotifications(bool enable)
{
RuntimeEnabledFeatures::setNotificationsEnabled(enable);
}
void WebRuntimeFeatures::enableNavigatorContentUtils(bool enable)
{
RuntimeEnabledFeatures::setNavigatorContentUtilsEnabled(enable);
}
void WebRuntimeFeatures::enableOrientationEvent(bool enable)
{
RuntimeEnabledFeatures::setOrientationEventEnabled(enable);
}
void WebRuntimeFeatures::enablePagePopup(bool enable)
{
RuntimeEnabledFeatures::setPagePopupEnabled(enable);
}
void WebRuntimeFeatures::enablePeerConnection(bool enable)
{
RuntimeEnabledFeatures::setPeerConnectionEnabled(enable);
}
void WebRuntimeFeatures::enableRequestAutocomplete(bool enable)
{
RuntimeEnabledFeatures::setRequestAutocompleteEnabled(enable);
}
void WebRuntimeFeatures::enableScriptedSpeech(bool enable)
{
RuntimeEnabledFeatures::setScriptedSpeechEnabled(enable);
}
void WebRuntimeFeatures::enableServiceWorker(bool enable)
{
RuntimeEnabledFeatures::setServiceWorkerEnabled(enable);
}
void WebRuntimeFeatures::enableSessionStorage(bool enable)
{
RuntimeEnabledFeatures::setSessionStorageEnabled(enable);
}
void WebRuntimeFeatures::enableSpeechInput(bool enable)
{
RuntimeEnabledFeatures::setSpeechInputEnabled(enable);
}
void WebRuntimeFeatures::enableSpeechSynthesis(bool enable)
{
RuntimeEnabledFeatures::setSpeechSynthesisEnabled(enable);
}
void WebRuntimeFeatures::enableTouch(bool enable)
{
RuntimeEnabledFeatures::setTouchEnabled(enable);
}
void WebRuntimeFeatures::enableTouchIconLoading(bool enable)
{
RuntimeEnabledFeatures::setTouchIconLoadingEnabled(enable);
}
void WebRuntimeFeatures::enableWebAnimationsCSS(bool enable)
{
ASSERT(enable);
}
void WebRuntimeFeatures::enableWebAnimationsSVG(bool enable)
{
RuntimeEnabledFeatures::setWebAnimationsSVGEnabled(enable);
}
void WebRuntimeFeatures::enableWebAudio(bool enable)
{
RuntimeEnabledFeatures::setWebAudioEnabled(enable);
}
void WebRuntimeFeatures::enableWebGLDraftExtensions(bool enable)
{
RuntimeEnabledFeatures::setWebGLDraftExtensionsEnabled(enable);
}
void WebRuntimeFeatures::enableWebMIDI(bool enable)
{
return RuntimeEnabledFeatures::setWebMIDIEnabled(enable);
}
void WebRuntimeFeatures::enableHTMLImports(bool enable)
{
RuntimeEnabledFeatures::setHTMLImportsEnabled(enable);
}
void WebRuntimeFeatures::enableXSLT(bool enable)
{
RuntimeEnabledFeatures::setXSLTEnabled(enable);
}
void WebRuntimeFeatures::enableOverlayScrollbars(bool enable)
{
RuntimeEnabledFeatures::setOverlayScrollbarsEnabled(enable);
}
void WebRuntimeFeatures::enableOverlayFullscreenVideo(bool enable)
{
RuntimeEnabledFeatures::setOverlayFullscreenVideoEnabled(enable);
}
void WebRuntimeFeatures::enableSharedWorker(bool enable)
{
RuntimeEnabledFeatures::setSharedWorkerEnabled(enable);
}
void WebRuntimeFeatures::enableRepaintAfterLayout(bool enable)
{
RuntimeEnabledFeatures::setRepaintAfterLayoutEnabled(enable);
}
void WebRuntimeFeatures::enableExperimentalWebSocket(bool enable)
{
RuntimeEnabledFeatures::setExperimentalWebSocketEnabled(enable);
}
void WebRuntimeFeatures::enableTargetedStyleRecalc(bool enable)
{
RuntimeEnabledFeatures::setTargetedStyleRecalcEnabled(enable);
}
void WebRuntimeFeatures::enablePreciseMemoryInfo(bool enable)
{
RuntimeEnabledFeatures::setPreciseMemoryInfoEnabled(enable);
}
}