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

Unified Diff: public/web/WebRuntimeFeatures.h

Issue 18578007: Add a public API to enable/disable blink runtime features by name (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Require a 'command_line_flag' option in RuntimeEnabledFeatures.in Created 7 years, 5 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/core/scripts/templates/RuntimeEnabledFeatures.h.tmpl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebRuntimeFeatures.h
diff --git a/public/web/WebRuntimeFeatures.h b/public/web/WebRuntimeFeatures.h
index c46aeb124a8e5e0f4238925868a1a91afd6890c0..d413d31fe31273f945c8769a88cdac4b99bee122 100644
--- a/public/web/WebRuntimeFeatures.h
+++ b/public/web/WebRuntimeFeatures.h
@@ -35,6 +35,8 @@
namespace WebKit {
+class WebString;
+
// This class is used to enable runtime features of Blink.
// All features are disabled by default.
// Most clients should call enableStableFeatures() to enable
@@ -44,6 +46,7 @@ public:
WEBKIT_EXPORT static void enableStableFeatures(bool);
WEBKIT_EXPORT static void enableExperimentalFeatures(bool);
WEBKIT_EXPORT static void enableTestOnlyFeatures(bool);
+ WEBKIT_EXPORT static bool setFeatureEnabled(const WebString&, bool);
// FIXME: Delete after removing all callers in Content.
static void enableFullScreenAPI(bool enable) { enableFullscreen(enable); }
« no previous file with comments | « Source/core/scripts/templates/RuntimeEnabledFeatures.h.tmpl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698