summaryrefslogtreecommitdiff
path: root/chromium/third_party/WebKit/Source/build/scripts/templates/RuntimeEnabledFeatures.cpp.tmpl
blob: 9de600f0eeefe9f3a4d0a1e67d03c6fa6e537f9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{% from "macros.tmpl" import wrap_with_condition, license -%}
{{ 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