OLD | NEW |
1 {% from "macros.tmpl" import license %} | 1 {% from "macros.tmpl" import license %} |
2 {{ license() }} | 2 {{ license() }} |
3 | 3 |
4 #ifndef {{namespace}}{{suffix}}Names_h | 4 #ifndef {{namespace}}{{suffix}}Names_h |
5 #define {{namespace}}{{suffix}}Names_h | 5 #define {{namespace}}{{suffix}}Names_h |
6 | 6 |
7 {% set symbol_export = '%s ' % export if export else '' %} | 7 {% set symbol_export = '%s ' % export if export else '' %} |
8 {% if suffix %} | 8 {% if suffix %} |
9 #include "core/{{namespace}}Names.h" | 9 #include "core/{{namespace}}Names.h" |
10 {% else %} | 10 {% else %} |
11 #include "wtf/text/AtomicString.h" | 11 #include "platform/wtf/text/AtomicString.h" |
12 {% endif %} | 12 {% endif %} |
13 {% if export == 'CORE_EXPORT' %} | 13 {% if export == 'CORE_EXPORT' %} |
14 #include "core/CoreExport.h" | 14 #include "core/CoreExport.h" |
15 {% elif export == 'MODULES_EXPORT' %} | 15 {% elif export == 'MODULES_EXPORT' %} |
16 #include "modules/ModulesExport.h" | 16 #include "modules/ModulesExport.h" |
17 {% else %} | 17 {% else %} |
18 #include "platform/PlatformExport.h" | 18 #include "platform/PlatformExport.h" |
19 {% endif %} | 19 {% endif %} |
20 | 20 |
21 // Generated from: | 21 // Generated from: |
22 {% for entry in in_files|sort %} | 22 {% for entry in in_files|sort %} |
23 // - {{entry}} | 23 // - {{entry}} |
24 {% endfor %} | 24 {% endfor %} |
25 | 25 |
26 namespace blink { | 26 namespace blink { |
27 namespace {{namespace}}Names { | 27 namespace {{namespace}}Names { |
28 | 28 |
29 {% for entry in entries|sort %} | 29 {% for entry in entries|sort %} |
30 {{symbol_export}}extern const WTF::AtomicString& {{entry|symbol}}; | 30 {{symbol_export}}extern const WTF::AtomicString& {{entry|symbol}}; |
31 {% endfor %} | 31 {% endfor %} |
32 | 32 |
33 const unsigned {{namespace}}{{suffix}}NamesCount = {{entries|length}}; | 33 const unsigned {{namespace}}{{suffix}}NamesCount = {{entries|length}}; |
34 | 34 |
35 {{symbol_export}}void init{{suffix}}(); | 35 {{symbol_export}}void init{{suffix}}(); |
36 | 36 |
37 } // {{namespace}}Names | 37 } // {{namespace}}Names |
38 } // namespace blink | 38 } // namespace blink |
39 | 39 |
40 #endif | 40 #endif |
OLD | NEW |