Chromium Code Reviews| Index: third_party/WebKit/Source/build/scripts/templates/ComputedStyleBaseConstants.h.tmpl |
| diff --git a/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBaseConstants.h.tmpl b/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBaseConstants.h.tmpl |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a0ce1b3e04d723f6eb8b167257e115c9254b9255 |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBaseConstants.h.tmpl |
| @@ -0,0 +1,28 @@ |
| +{% from 'macros.tmpl' import license %} |
| +{{license()}} |
| + |
| +#ifndef ComputedStyleBaseConstants_h |
| +#define ComputedStyleBaseConstants_h |
| + |
| +namespace blink { |
| + |
| +// 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
|
| +enum IsAtShadowBoundary { |
| + AtShadowBoundary, |
| + NotAtShadowBoundary, |
| +}; |
| + |
| +// TODO(sashab): Move these enums to their own namespace, or add a CSS prefix, |
| +// for consistency and to prevent name conflicts. |
| + |
| +{% for enum_name, enum_values in enums.items() %} |
| +enum class {{enum_name}} : unsigned { |
| + {% for enum_value in enum_values %} |
| + {{enum_value}}, |
| + {% endfor %} |
| +}; |
| + |
| +{% endfor %} |
| +} // namespace blink |
| + |
| +#endif // ComputedStyleBaseConstants_h |