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

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: Rebase onto fast path patches 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 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): 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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698