Chromium Code Reviews| 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 |