1 {% from "macros.tmpl" import wrap_with_condition, license -%}
5 #include "RuntimeEnabledFeatures.h"
9 {% for feature_set in feature_sets %}
10 void RuntimeEnabledFeatures::set{{feature_set|capitalize}}FeaturesEnabled(bool enable)
12 {%- for feature in features if feature.status == feature_set %}
13 set{{feature.name}}Enabled(enable);
18 {%- for feature in features if not feature.custom %}
19 {%- call wrap_with_condition(feature.condition) %}
20 bool RuntimeEnabledFeatures::is{{feature.name}}Enabled = {{'true' if feature.status == 'stable' else 'false'}};
24 } // namespace WebCore