Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(936)

Unified Diff: third_party/WebKit/Source/build/scripts/templates/ComputedStyleBaseConstants.h.tmpl

Issue 2187493004: Add a generated ComputedStyleBase class that ComputedStyle extends (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_make_visibility_enum_class_rebase
Patch Set: Re-ordered inheritance to match initializers Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
« no previous file with comments | « third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl ('k') | third_party/WebKit/Source/core/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698