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

Side by Side 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, 2 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 unified diff | Download patch
OLDNEW
(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): Move these enums to their own namespace, or add a CSS prefix,
10 // for consistency and to prevent name conflicts.
11
12 {% for enum_name, enum_values in enums.items() %}
13 enum class {{enum_name}} : unsigned {
14 {% for enum_value in enum_values %}
15 {{enum_value}},
16 {% endfor %}
17 };
18
19 {% endfor %}
20 } // namespace blink
21
22 #endif // ComputedStyleBaseConstants_h
OLDNEW
« 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