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 {% if suffix %} | 7 {% if suffix %} |
8 #include "core/{{namespace}}Names.h" | 8 #include "core/{{namespace}}Names.h" |
9 {% else %} | 9 {% else %} |
10 {% if export %} | 10 {% if export %} |
11 #include "platform/PlatformExport.h" | 11 #include "platform/PlatformExport.h" |
12 {% endif %} | 12 {% endif %} |
13 #include "wtf/text/AtomicString.h" | 13 #include "wtf/text/AtomicString.h" |
14 {% endif %} | 14 {% endif %} |
15 | 15 |
16 namespace WebCore { | 16 namespace blink { |
17 namespace {{namespace}}Names { | 17 namespace {{namespace}}Names { |
18 | 18 |
19 {% for entry in entries|sort %} | 19 {% for entry in entries|sort %} |
20 {% filter enable_conditional(entry.Conditional) %} | 20 {% filter enable_conditional(entry.Conditional) %} |
21 {% if export %} | 21 {% if export %} |
22 {{export}} extern const WTF::AtomicString& {{entry|symbol}}; | 22 {{export}} extern const WTF::AtomicString& {{entry|symbol}}; |
23 {% else %} | 23 {% else %} |
24 extern const WTF::AtomicString& {{entry|symbol}}; | 24 extern const WTF::AtomicString& {{entry|symbol}}; |
25 {% endif %} | 25 {% endif %} |
26 {% endfilter %} | 26 {% endfilter %} |
27 {% endfor %} | 27 {% endfor %} |
28 | 28 |
29 {{export}} void init{{suffix}}(); | 29 {{export}} void init{{suffix}}(); |
30 | 30 |
31 } // {{namespace}}Names | 31 } // {{namespace}}Names |
32 } // WebCore | 32 } // namespace blink |
33 | 33 |
34 #endif | 34 #endif |
OLD | NEW |