Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 {% from 'macros.tmpl' import license %} | |
| 2 {{license()}} | |
| 3 | |
| 4 #ifndef ComputedStyleBaseConstants_h | |
| 5 #define ComputedStyleBaseConstants_h | |
| 6 | |
| 7 namespace blink { | |
| 8 | |
| 9 // TODO(sashab): Remove this and update callsites to use a boolean. | |
|
esprehn
2016/09/08 22:32:51
hmm, booleans aren't great, can we move this enum
| |
| 10 enum IsAtShadowBoundary { | |
| 11 AtShadowBoundary, | |
| 12 NotAtShadowBoundary, | |
| 13 }; | |
| 14 | |
| 15 // TODO(sashab): Move these enums to their own namespace, or add a CSS prefix, | |
| 16 // for consistency and to prevent name conflicts. | |
| 17 | |
| 18 {% for enum_name, enum_values in enums.items() %} | |
| 19 enum class {{enum_name}} : unsigned { | |
| 20 {% for enum_value in enum_values %} | |
| 21 {{enum_value}}, | |
| 22 {% endfor %} | |
| 23 }; | |
| 24 | |
| 25 {% endfor %} | |
| 26 } // namespace blink | |
| 27 | |
| 28 #endif // ComputedStyleBaseConstants_h | |
| OLD | NEW |