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

Unified Diff: Source/core/scripts/templates/RuntimeEnabledFeatures.h.tmpl

Issue 22546004: Remove .tmpl extension from Jinja templates in core Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/scripts/templates/RuntimeEnabledFeatures.h.tmpl
diff --git a/Source/core/scripts/templates/RuntimeEnabledFeatures.h.tmpl b/Source/core/scripts/templates/RuntimeEnabledFeatures.h.tmpl
deleted file mode 100644
index 2e23c8747d198a12dab180162688cda16ae5e1c3..0000000000000000000000000000000000000000
--- a/Source/core/scripts/templates/RuntimeEnabledFeatures.h.tmpl
+++ /dev/null
@@ -1,48 +0,0 @@
-{% from "macros.tmpl" import wrap_with_condition, license -%}
-{{ license() }}
-
-#ifndef RuntimeEnabledFeatures_h
-#define RuntimeEnabledFeatures_h
-
-namespace WebCore {
-
-// A class that stores static enablers for all experimental features.
-
-class RuntimeEnabledFeatures {
-public:
-
-{%- for feature_set in feature_sets %}
- static void set{{feature_set|capitalize}}FeaturesEnabled(bool);
-{%- endfor %}
-
-{% for feature in features %}
-{%- if feature.custom %}
- static bool {{feature.first_lowered_name}}Enabled();
-{%- else %}
-{%- if feature.condition %}
-#if ENABLE({{feature.condition}})
-{%- endif %}
- static void set{{feature.name}}Enabled(bool isEnabled) { is{{feature.name}}Enabled = isEnabled; }
- static bool {{feature.first_lowered_name}}Enabled() { return {{feature.enabled_condition}}; }
-{%- if feature.condition %}
-#else
- static void set{{feature.name}}Enabled(bool) { }
- static bool {{feature.first_lowered_name}}Enabled() { return false; }
-#endif
-{%- endif %}
-{%- endif %}
-{% endfor %}
-
-private:
- RuntimeEnabledFeatures() { }
-{% for feature in features if not feature.custom %}
-{%- call wrap_with_condition(feature.condition) %}
- static bool is{{feature.name}}Enabled;
-{%- endcall %}
-{%- endfor %}
-};
-
-} // namespace WebCore
-
-#endif // RuntimeEnabledFeatures_h
-
« no previous file with comments | « Source/core/scripts/templates/RuntimeEnabledFeatures.cpp.tmpl ('k') | Source/core/scripts/templates/StyleBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698