Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(418)

Side by Side Diff: Source/build/scripts/templates/RuntimeEnabledFeatures.h.tmpl

Issue 26763006: Move the generation and inclusion of RuntimeEnabledFeatures to blink_platform.dll since many pieces… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 {% from "macros.tmpl" import wrap_with_condition, license -%} 1 {% from "macros.tmpl" import wrap_with_condition, 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"
8
7 namespace WebCore { 9 namespace WebCore {
8 10
9 // A class that stores static enablers for all experimental features. 11 // A class that stores static enablers for all experimental features.
10 12
11 class RuntimeEnabledFeatures { 13 class PLATFORM_EXPORT RuntimeEnabledFeatures {
12 public: 14 public:
13 15
14 {%- for feature_set in feature_sets %} 16 {%- for feature_set in feature_sets %}
15 static void set{{feature_set|capitalize}}FeaturesEnabled(bool); 17 static void set{{feature_set|capitalize}}FeaturesEnabled(bool);
16 {%- endfor %} 18 {%- endfor %}
17 19
18 {% for feature in features %} 20 {% for feature in features %}
19 {%- if feature.custom %} 21 {%- if feature.custom %}
20 static bool {{feature.first_lowered_name}}Enabled(); 22 static bool {{feature.first_lowered_name}}Enabled();
21 {%- else %} 23 {%- else %}
(...skipping 16 matching lines...) Expand all
38 {% for feature in features if not feature.custom %} 40 {% for feature in features if not feature.custom %}
39 {%- call wrap_with_condition(feature.condition) %} 41 {%- call wrap_with_condition(feature.condition) %}
40 static bool is{{feature.name}}Enabled; 42 static bool is{{feature.name}}Enabled;
41 {%- endcall %} 43 {%- endcall %}
42 {%- endfor %} 44 {%- endfor %}
43 }; 45 };
44 46
45 } // namespace WebCore 47 } // namespace WebCore
46 48
47 #endif // RuntimeEnabledFeatures_h 49 #endif // RuntimeEnabledFeatures_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698