| {% from 'macros.tmpl' import license %} |
| {{license()}} |
| |
| #include "core/experiments/ExperimentalFeatures.h" |
| |
| #include "core/experiments/Experiments.h" |
| #include "platform/RuntimeEnabledFeatures.h" |
| |
| namespace blink { |
| {% for feature in features %} |
| {% if feature.api_name %} |
| |
| // static |
| bool ExperimentalFeatures::{{feature.first_lowered_name}}Enabled(ExecutionContext* executionContext, String& errorMessage) { |
| if (RuntimeEnabledFeatures::{{feature.first_lowered_name}}Enabled()) |
| return true; |
| return Experiments::isApiEnabled(executionContext, "{{feature.api_name}}", errorMessage); |
| } |
| {% endif %} |
| {% endfor %} |
| |
| } // namespace blink |