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

Side by Side Diff: sky/engine/build/scripts/templates/RuntimeEnabledFeatures.cpp.tmpl

Issue 1206763002: Really remove config.h (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 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 license %} 1 {% from 'macros.tmpl' import license %}
2 {{license()}} 2 {{license()}}
3 3
4 #include "config.h"
5 #include "gen/sky/platform/RuntimeEnabledFeatures.h" 4 #include "gen/sky/platform/RuntimeEnabledFeatures.h"
6 5
7 namespace blink { 6 namespace blink {
8 7
9 {% for feature_set in feature_sets %} 8 {% for feature_set in feature_sets %}
10 void RuntimeEnabledFeatures::set{{feature_set|capitalize}}FeaturesEnabled(bool e nable) 9 void RuntimeEnabledFeatures::set{{feature_set|capitalize}}FeaturesEnabled(bool e nable)
11 { 10 {
12 {% for feature in features if feature.status == feature_set %} 11 {% for feature in features if feature.status == feature_set %}
13 set{{feature.name}}Enabled(enable); 12 set{{feature.name}}Enabled(enable);
14 {% endfor %} 13 {% endfor %}
15 } 14 }
16 15
17 {% endfor %} 16 {% endfor %}
18 {% for feature in features if not feature.custom %} 17 {% for feature in features if not feature.custom %}
19 {% filter enable_conditional(feature.condition) %} 18 {% filter enable_conditional(feature.condition) %}
20 bool RuntimeEnabledFeatures::is{{feature.name}}Enabled = {{'true' if feature.sta tus == 'stable' else 'false'}}; 19 bool RuntimeEnabledFeatures::is{{feature.name}}Enabled = {{'true' if feature.sta tus == 'stable' else 'false'}};
21 {% endfilter %} 20 {% endfilter %}
22 {% endfor %} 21 {% endfor %}
23 22
24 } // namespace blink 23 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698