| 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..c7c8be4320cf174fd40cf71c3601193071367709 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();
|
| +
|
| + void resetToConsistentState();
|
| +
|
| + {% for feature in standard_features %}
|
| + void set{{feature.name}}Enabled(bool isEnabled);
|
| + {% 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
|
|
|