OLD | NEW |
1 {% from 'macros.tmpl' import license %} | 1 {% from 'macros.tmpl' import license %} |
2 {{license()}} | 2 {{license()}} |
3 | 3 |
4 #ifndef RuntimeEnabledFeatures_h | 4 #ifndef RuntimeEnabledFeatures_h |
5 #define RuntimeEnabledFeatures_h | 5 #define RuntimeEnabledFeatures_h |
6 | 6 |
7 #include "platform/PlatformExport.h" | 7 #include "platform/PlatformExport.h" |
8 | 8 |
9 namespace WebCore { | 9 namespace blink { |
10 | 10 |
11 // A class that stores static enablers for all experimental features. | 11 // A class that stores static enablers for all experimental features. |
12 | 12 |
13 class PLATFORM_EXPORT RuntimeEnabledFeatures { | 13 class PLATFORM_EXPORT RuntimeEnabledFeatures { |
14 public: | 14 public: |
15 {% for feature_set in feature_sets %} | 15 {% for feature_set in feature_sets %} |
16 static void set{{feature_set|capitalize}}FeaturesEnabled(bool); | 16 static void set{{feature_set|capitalize}}FeaturesEnabled(bool); |
17 {% endfor %} | 17 {% endfor %} |
18 | 18 |
19 | 19 |
(...skipping 19 matching lines...) Expand all Loading... |
39 private: | 39 private: |
40 RuntimeEnabledFeatures() { } | 40 RuntimeEnabledFeatures() { } |
41 | 41 |
42 {% for feature in features if not feature.custom %} | 42 {% for feature in features if not feature.custom %} |
43 {% filter enable_conditional(feature.condition) %} | 43 {% filter enable_conditional(feature.condition) %} |
44 static bool is{{feature.name}}Enabled; | 44 static bool is{{feature.name}}Enabled; |
45 {% endfilter %} | 45 {% endfilter %} |
46 {% endfor %} | 46 {% endfor %} |
47 }; | 47 }; |
48 | 48 |
49 } // namespace WebCore | 49 } // namespace blink |
50 | 50 |
51 #endif // RuntimeEnabledFeatures_h | 51 #endif // RuntimeEnabledFeatures_h |
OLD | NEW |