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

Unified Diff: third_party/WebKit/Source/build/scripts/templates/InternalRuntimeFlags.idl.tmpl

Issue 1895293002: Test fragment scrolling and history restoration interaction w/ scroll anchoring. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove resetToConsistentState and conditionally make feature settable Created 4 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: third_party/WebKit/Source/build/scripts/templates/InternalRuntimeFlags.idl.tmpl
diff --git a/third_party/WebKit/Source/build/scripts/templates/InternalRuntimeFlags.idl.tmpl b/third_party/WebKit/Source/build/scripts/templates/InternalRuntimeFlags.idl.tmpl
index cfdd2c0d057bb5a66446f65b52a0ef0b1421cd29..50efe64f6d59c5a3a2992e9f9338a3c8d24637d0 100644
--- a/third_party/WebKit/Source/build/scripts/templates/InternalRuntimeFlags.idl.tmpl
+++ b/third_party/WebKit/Source/build/scripts/templates/InternalRuntimeFlags.idl.tmpl
@@ -5,11 +5,14 @@
GarbageCollected,
] interface InternalRuntimeFlags {
{% for feature in standard_features %}
-{#
- 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;
+ boolean {{feature.first_lowered_name}}Enabled();
+ {% endfor %}
+
+ {% for feature in standard_features %}
+ {% if feature.set_from_internals %}
+ {%+ if feature.condition %}[Conditional={{feature.condition}}] {% endif -%}
+ void set{{feature.name}}Enabled(boolean isEnabled);
+ {% endif %}
{% endfor %}
};

Powered by Google App Engine
This is Rietveld 408576698