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

Unified Diff: third_party/WebKit/Source/build/scripts/templates/InternalRuntimeFlags.h.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.h.tmpl
diff --git a/third_party/WebKit/Source/build/scripts/templates/InternalRuntimeFlags.h.tmpl b/third_party/WebKit/Source/build/scripts/templates/InternalRuntimeFlags.h.tmpl
index df2f2f6d0bfe665487c85e3556dbc5ebf12c4c1c..5950755ef6ddb4ed0edfe3bd1b190474d7c60f3d 100644
--- a/third_party/WebKit/Source/build/scripts/templates/InternalRuntimeFlags.h.tmpl
+++ b/third_party/WebKit/Source/build/scripts/templates/InternalRuntimeFlags.h.tmpl
@@ -16,25 +16,26 @@ namespace blink {
class InternalRuntimeFlags : public GarbageCollected<InternalRuntimeFlags>, public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
public:
- static InternalRuntimeFlags* create()
- {
- return new InternalRuntimeFlags;
- }
-
-{#
- Setting after startup does not work for most runtime flags, but we
- could add an option to print setters for ones which do:
- void set{{feature.name}}Enabled(bool isEnabled) { RuntimeEnabledFeatures::set{{feature.name}}Enabled(isEnabled); }
- If we do that, we also need to respect Internals::resetToConsistentState.
-#}
+ static InternalRuntimeFlags* create();
+
+ {% for feature in standard_features %}
+ {% if feature.set_from_internals %}
wkorman 2016/04/26 19:01:18 Rather than looping and checking feature.set_from_
ymalik 2016/04/26 20:17:39 I think that would only be the case if we plan to
+ void set{{feature.name}}Enabled(bool isEnabled);
+ {% endif %}
+ {% endfor %}
+
{% for feature in standard_features %}
- bool {{feature.first_lowered_name}}Enabled() { return RuntimeEnabledFeatures::{{feature.first_lowered_name}}Enabled(); }
+ bool {{feature.first_lowered_name}}Enabled();
{% endfor %}
DEFINE_INLINE_TRACE() { }
private:
- InternalRuntimeFlags() { }
+ InternalRuntimeFlags();
+
+ {% for feature in standard_features %}
+ bool m_{{feature.first_lowered_name}};
+ {% endfor %}
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698