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

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: extend internas api to set runtime enabled features + use testharness.js 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..07562b392b5c142d7a5d4fad2e1b9cb68acc52cb 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.condition %}[Conditional={{feature.condition}}] {% endif -%}
+ void set{{feature.name}}Enabled(boolean isEnabled);
+ {% endfor %}
+
+ void resetToConsistentState();
};

Powered by Google App Engine
This is Rietveld 408576698