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

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

Issue 236673002: Simplify whitespace handling in build/ Jinja templates (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: One more FIXME Created 6 years, 8 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 | Annotate | Revision Log
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 #include "config.h" 4 #include "config.h"
5 #include "RuntimeEnabledFeatures.h" 5 #include "RuntimeEnabledFeatures.h"
6 6
7 namespace WebCore { 7 namespace WebCore {
8 {# FIXME: remove excess blank line #}
8 9
9 {% for feature_set in feature_sets %} 10 {% for feature_set in feature_sets %}
11
10 void RuntimeEnabledFeatures::set{{feature_set|capitalize}}FeaturesEnabled(bool e nable) 12 void RuntimeEnabledFeatures::set{{feature_set|capitalize}}FeaturesEnabled(bool e nable)
11 { 13 {
12 {%- for feature in features if feature.status == feature_set %} 14 {% for feature in features if feature.status == feature_set %}
13 set{{feature.name}}Enabled(enable); 15 set{{feature.name}}Enabled(enable);
14 {%- endfor %} 16 {% endfor %}
15 } 17 }
16 {% endfor %} 18 {% endfor %}
17 19
18 {%- for feature in features if not feature.custom %} 20 {% for feature in features if not feature.custom %}
19 {%- call wrap_with_condition(feature.condition) %} 21 {% call wrap_with_condition(feature.condition) %}
20 bool RuntimeEnabledFeatures::is{{feature.name}}Enabled = {{'true' if feature.sta tus == 'stable' else 'false'}}; 22 bool RuntimeEnabledFeatures::is{{feature.name}}Enabled = {{'true' if feature.sta tus == 'stable' else 'false'}};
21 {%- endcall %} 23 {% endcall %}
22 {%- endfor %} 24 {% endfor %}
23 25
24 } // namespace WebCore 26 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/build/scripts/templates/MediaFeatures.h.tmpl ('k') | Source/build/scripts/templates/RuntimeEnabledFeatures.h.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698