| 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 <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "platform/PlatformExport.h" | 9 #include "platform/RuntimeEnabledFeaturesExport.h" |
| 10 #include "wtf/Allocator.h" | 10 #include "wtf/Allocator.h" |
| 11 #include "wtf/Forward.h" | 11 #include "wtf/Forward.h" |
| 12 #include "wtf/build_config.h" | 12 #include "wtf/build_config.h" |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 // A class that stores static enablers for all experimental features. | 16 // A class that stores static enablers for all experimental features. |
| 17 | 17 |
| 18 class PLATFORM_EXPORT RuntimeEnabledFeatures { | 18 class RUNTIME_ENABLED_FEATURES_EXPORT RuntimeEnabledFeatures { |
| 19 STATIC_ONLY(RuntimeEnabledFeatures); | 19 STATIC_ONLY(RuntimeEnabledFeatures); |
| 20 public: | 20 public: |
| 21 class PLATFORM_EXPORT Backup { | 21 class RUNTIME_ENABLED_FEATURES_EXPORT Backup { |
| 22 public: | 22 public: |
| 23 explicit Backup(); | 23 explicit Backup(); |
| 24 void restore(); | 24 void restore(); |
| 25 | 25 |
| 26 private: | 26 private: |
| 27 {% for feature in standard_features %} | 27 {% for feature in standard_features %} |
| 28 bool m_{{feature.first_lowered_name}}; | 28 bool m_{{feature.first_lowered_name}}; |
| 29 {% endfor %} | 29 {% endfor %} |
| 30 }; | 30 }; |
| 31 | 31 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 56 | 56 |
| 57 private: | 57 private: |
| 58 {% for feature in standard_features %} | 58 {% for feature in standard_features %} |
| 59 static bool is{{feature.name}}Enabled; | 59 static bool is{{feature.name}}Enabled; |
| 60 {% endfor %} | 60 {% endfor %} |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 } // namespace blink | 63 } // namespace blink |
| 64 | 64 |
| 65 #endif // RuntimeEnabledFeatures_h | 65 #endif // RuntimeEnabledFeatures_h |
| OLD | NEW |