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

Unified Diff: Source/core/page/RuntimeEnabledFeatures.cpp.tmpl

Issue 14905002: Use jinja2 templating engine for Python code generators (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/page/RuntimeEnabledFeatures.cpp.tmpl
diff --git a/Source/core/page/RuntimeEnabledFeatures.cpp.tmpl b/Source/core/page/RuntimeEnabledFeatures.cpp.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..4f04dbef548e934c85b34a50606d65b0e500f3be
--- /dev/null
+++ b/Source/core/page/RuntimeEnabledFeatures.cpp.tmpl
@@ -0,0 +1,16 @@
+{% from "macros.tmpl" import wrap_with_condition -%}
+
+{{ license }}
+#include "config.h"
+#include "RuntimeEnabledFeatures.h"
+
+namespace WebCore {
+
+{%- for feature in features if not feature.custom %}
+{%- call wrap_with_condition(feature.condition) %}
+bool RuntimeEnabledFeatures::is{{feature.name}}Enabled = {{feature.default}};
+{%- endcall %}
+{%- endfor %}
+
+} // namespace WebCore
+

Powered by Google App Engine
This is Rietveld 408576698