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..63d0b2ff5fe306567a281c504bf2950e28dd8b4a |
--- /dev/null |
+++ b/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBaseConstants.h.tmpl |
@@ -0,0 +1,22 @@ |
+{% from 'macros.tmpl' import license %} |
+{{license()}} |
+ |
+#ifndef ComputedStyleBaseConstants_h |
+#define ComputedStyleBaseConstants_h |
+ |
+namespace blink { |
+ |
+// 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 |