| Index: Source/core/scripts/templates/RuntimeEnabledFeatures.cpp.tmpl
|
| diff --git a/Source/core/scripts/templates/RuntimeEnabledFeatures.cpp.tmpl b/Source/core/scripts/templates/RuntimeEnabledFeatures.cpp.tmpl
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..43b17b3a55bb9f321b06b9df7b43544728773a0f
|
| --- /dev/null
|
| +++ b/Source/core/scripts/templates/RuntimeEnabledFeatures.cpp.tmpl
|
| @@ -0,0 +1,25 @@
|
| +{% from "macros.tmpl" import wrap_with_condition -%}
|
| +
|
| +{{ license }}
|
| +#include "config.h"
|
| +#include "RuntimeEnabledFeatures.h"
|
| +
|
| +namespace WebCore {
|
| +
|
| +{% for feature_set in feature_sets %}
|
| +void RuntimeEnabledFeatures::set{{feature_set|capitalize}}FeaturesEnabled(bool enable)
|
| +{
|
| +{%- for feature in features if feature.status == feature_set %}
|
| + set{{feature.name}}Enabled(enable);
|
| +{%- endfor %}
|
| +}
|
| +{% endfor %}
|
| +
|
| +{%- for feature in features if not feature.custom %}
|
| +{%- call wrap_with_condition(feature.condition) %}
|
| +bool RuntimeEnabledFeatures::is{{feature.name}}Enabled = false;
|
| +{%- endcall %}
|
| +{%- endfor %}
|
| +
|
| +} // namespace WebCore
|
| +
|
|
|