Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 {% from "macros.tmpl" import license %} | |
| 2 {{ license() }} | |
| 3 | |
| 4 #include "InternalRuntimeFlags.h" | |
|
jbroman
2016/04/28 14:24:39
full include paths, please (assuming you keep this
ymalik
2016/04/28 15:05:06
Removed .cpp.
| |
| 5 | |
| 6 namespace blink { | |
| 7 | |
| 8 InternalRuntimeFlags* InternalRuntimeFlags::create() | |
| 9 { | |
| 10 return new InternalRuntimeFlags; | |
| 11 } | |
| 12 | |
| 13 InternalRuntimeFlags::InternalRuntimeFlags() | |
| 14 : | |
| 15 {% for feature in standard_features %} | |
| 16 {%+ if not loop.first %}, {% endif -%} m_{{feature.first_lowered_name}}(Runt imeEnabledFeatures::{{feature.first_lowered_name}}Enabled()) | |
| 17 {% endfor %} | |
| 18 { | |
| 19 } | |
| 20 | |
| 21 {% for feature in standard_features if feature.settable_from_internals %} | |
| 22 void InternalRuntimeFlags::set{{feature.name}}Enabled(bool isEnabled) | |
| 23 { | |
| 24 RuntimeEnabledFeatures::set{{feature.name}}Enabled(isEnabled); | |
| 25 } | |
| 26 {% endfor %} | |
| 27 | |
| 28 {% for feature in standard_features %} | |
| 29 bool InternalRuntimeFlags::{{feature.first_lowered_name}}Enabled() | |
| 30 { | |
| 31 return RuntimeEnabledFeatures::{{feature.first_lowered_name}}Enabled(); | |
| 32 } | |
| 33 {% endfor %} | |
| 34 | |
| 35 } // namespace blink | |
| OLD | NEW |