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

Side by Side Diff: Source/build/scripts/templates/UseCounterGenerated.h.tmpl

Issue 729393002: Auto generate UseCounter::Feature enum from an .in file (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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 UseCounterGenerated_h
5 #define UseCounterGenerated_h
6
7 namespace blink {
8
9 class UseCounterGenerated {
10 public:
11 enum Feature {
12 {% for feature in features %}
13 {{ feature.name }} = {{ feature.value|unique_value(feature.name) }},
14 {% endfor %}
15
16 // This enum value must be last.
17 NumberOfFeatures
18 };
19 };
20
21 } // namespace blink
22
23 #endif // UseCounterGenerated_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698