| OLD | NEW |
| (Empty) |
| 1 {% from 'macros.tmpl' import license %} | |
| 2 {{license()}} | |
| 3 | |
| 4 #ifndef ExperimentalFeatures_h | |
| 5 #define ExperimentalFeatures_h | |
| 6 | |
| 7 #include "core/CoreExport.h" | |
| 8 #include "wtf/text/WTFString.h" | |
| 9 | |
| 10 namespace blink { | |
| 11 | |
| 12 class ExecutionContext; | |
| 13 | |
| 14 // A class that stores dynamic tests for experimental features which can be | |
| 15 // enabled through the experimental framework via API keys. | |
| 16 | |
| 17 class CORE_EXPORT ExperimentalFeatures { | |
| 18 public: | |
| 19 {% for feature in features %} | |
| 20 {% if feature.api_name %} | |
| 21 static bool {{feature.first_lowered_name}}Enabled(ExecutionContext* executio
nContext, String& errorMessage); | |
| 22 static bool {{feature.first_lowered_name}}Enabled(ExecutionContext* executio
nContext); | |
| 23 {% endif %} | |
| 24 {% endfor %} | |
| 25 | |
| 26 private: | |
| 27 ExperimentalFeatures() { } | |
| 28 | |
| 29 {% for feature in features %} | |
| 30 {% if feature.api_name %} | |
| 31 static bool {{feature.first_lowered_name}}EnabledImpl(ExecutionContext* exec
utionContext, String* errorMessage); | |
| 32 {% endif %} | |
| 33 {% endfor %} | |
| 34 }; | |
| 35 | |
| 36 } // namespace blink | |
| 37 | |
| 38 #endif // ExperimentalFeatures_h | |
| OLD | NEW |