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

Unified Diff: Source/WebKit/chromium/src/WebRuntimeFeatures.cpp

Issue 15018018: Autogenerate lists of "stable", "experimental" and "test" features from RuntimeEnabledFeatures.in (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Ready for review Created 7 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 | « no previous file | Source/core/page/RuntimeEnabledFeatures.in » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebKit/chromium/src/WebRuntimeFeatures.cpp
diff --git a/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp b/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp
index cb9b6a97e5cce5cc8827301dc2b190c5190b4640..0251856f4ac5df6d6ded688d7c0c8496844a7f79 100644
--- a/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp
+++ b/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp
@@ -41,57 +41,20 @@ namespace WebKit {
void WebRuntimeFeatures::enableStableFeatures(bool enable)
{
- enableApplicationCache(enable);
- enableDatabase(enable);
- enableDeviceOrientation(enable);
- enableDirectoryUpload(enable);
- enableEncryptedMedia(enable);
- enableFileSystem(enable);
- enableFullscreen(enable);
- enableGamepad(enable);
- enableGeolocation(enable);
- enableIndexedDB(enable);
- enableInputTypeWeek(enable);
- enableJavaScriptI18NAPI(enable);
- enableLocalStorage(enable);
+ RuntimeEnabledFeatures::setStableFeaturesEnabled(enable);
+ // FIXME: enableMediaPlayer does not use RuntimeEnabledFeatures
+ // and does not belong as part of WebRuntimeFeatures.
enableMediaPlayer(enable);
- enableMediaSource(enable);
- enableMediaStream(enable);
- enableNotifications(enable);
- enablePeerConnection(enable);
- enableQuota(enable);
- enableScriptedSpeech(enable);
- enableSessionStorage(enable);
- enableSpeechInput(enable);
- enableTouch(enable);
- enableVideoTrack(enable);
- enableWebAudio(enable);
}
void WebRuntimeFeatures::enableExperimentalFeatures(bool enable)
{
- enableCSSCompositing(enable);
- enableCSSExclusions(enable);
- enableCSSRegions(enable);
- enableCustomDOMElements(enable);
- enableDialogElement(enable);
- enableExperimentalContentSecurityPolicyFeatures(enable);
- enableFontLoadEvents(enable);
- enableSeamlessIFrames(enable);
- enableStyleScoped(enable);
+ RuntimeEnabledFeatures::setExperimentalFeaturesEnabled(enable);
}
void WebRuntimeFeatures::enableTestOnlyFeatures(bool enable)
{
- // This method should be used by ContentShell
- // to enable features which should be enabled for
- // the layout tests but are not yet "experimental".
- enableCanvasPath(enable);
- enableExperimentalCanvasFeatures(enable);
- enableExperimentalShadowDOM(enable);
- enableInputTypeDateTime(enable);
- enableRequestAutocomplete(enable);
- enableWebMIDI(enable);
+ RuntimeEnabledFeatures::setTestFeaturesEnabled(enable);
}
void WebRuntimeFeatures::enableApplicationCache(bool enable)
« no previous file with comments | « no previous file | Source/core/page/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698