mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
24 lines
661 B
Cheetah
24 lines
661 B
Cheetah
{% from 'macros.tmpl' import license %}
|
|
{{license()}}
|
|
|
|
#include "gen/sky/platform/RuntimeEnabledFeatures.h"
|
|
|
|
namespace blink {
|
|
|
|
{% 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 %}
|
|
{% filter enable_conditional(feature.condition) %}
|
|
bool RuntimeEnabledFeatures::is{{feature.name}}Enabled = {{'true' if feature.status == 'stable' else 'false'}};
|
|
{% endfilter %}
|
|
{% endfor %}
|
|
|
|
} // namespace blink
|