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

Unified Diff: Source/core/scripts/templates/RuntimeEnabledFeatures.h.tmpl

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.cpp.tmpl ('k') | public/web/WebRuntimeFeatures.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/scripts/templates/RuntimeEnabledFeatures.h.tmpl
diff --git a/Source/core/scripts/templates/RuntimeEnabledFeatures.h.tmpl b/Source/core/scripts/templates/RuntimeEnabledFeatures.h.tmpl
index 2e23c8747d198a12dab180162688cda16ae5e1c3..8758b4fad83dca2227fe8e8a2eee729c7f133dbe 100644
--- a/Source/core/scripts/templates/RuntimeEnabledFeatures.h.tmpl
+++ b/Source/core/scripts/templates/RuntimeEnabledFeatures.h.tmpl
@@ -4,6 +4,8 @@
#ifndef RuntimeEnabledFeatures_h
#define RuntimeEnabledFeatures_h
+#include "wtf/text/WTFString.h"
+
namespace WebCore {
// A class that stores static enablers for all experimental features.
@@ -11,6 +13,7 @@ namespace WebCore {
class RuntimeEnabledFeatures {
public:
+ static bool setFeatureEnabled(const String& feature, bool enable);
{%- for feature_set in feature_sets %}
static void set{{feature_set|capitalize}}FeaturesEnabled(bool);
{%- endfor %}
« no previous file with comments | « Source/core/scripts/templates/RuntimeEnabledFeatures.cpp.tmpl ('k') | public/web/WebRuntimeFeatures.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698