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

Unified Diff: Source/core/scripts/templates/InternalRuntimeFlags.idl.tmpl

Issue 15095002: Use jinja2 for make_runtime_features and make_internal_runtime_flags (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Updated for Eric's suggestions Created 7 years, 7 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/InternalRuntimeFlags.idl.tmpl
diff --git a/Source/core/scripts/templates/InternalRuntimeFlags.idl.tmpl b/Source/core/scripts/templates/InternalRuntimeFlags.idl.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..31a4bfd981b77a41572709c14717b19550815809
--- /dev/null
+++ b/Source/core/scripts/templates/InternalRuntimeFlags.idl.tmpl
@@ -0,0 +1,16 @@
+{% from "macros.tmpl" import license -%}
+{{ license() }}
+
+[
+ ImplementationLacksVTable
+] interface InternalRuntimeFlags {
+{%- for feature in features if not feature.custom %}
+{#-
+ Currently assuming that runtime flags cannot be changed after startup
+ it's possible that some can be and should be conditionally readonly.
+#}
+ {% if feature.condition -%} [Conditional={{feature.condition}}] {% endif -%}
+ readonly attribute boolean {{feature.first_lowered_name}}Enabled;
+{%- endfor %}
+};
+

Powered by Google App Engine
This is Rietveld 408576698