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 "{{namespace}}Names.h" | 8 #include "{{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 WebCore { |
17 namespace {{namespace}}Names { | 17 namespace {{namespace}}Names { |
18 | 18 |
19 #ifndef {{namespace|to_macro_style}}_NAMES_HIDE_GLOBALS | 19 #ifndef {{namespace|to_macro_style}}_NAMES_HIDE_GLOBALS |
20 | 20 |
21 {% for entry in entries|sort %} | 21 {% for entry in entries|sort %} |
| 22 {% filter enable_conditional(entry.Conditional) %} |
22 {% if export %} | 23 {% if export %} |
23 {{export}} extern const WTF::AtomicString& {{entry|symbol}}; | 24 {{export}} extern const WTF::AtomicString& {{entry|symbol}}; |
24 {% else %} | 25 {% else %} |
25 extern const WTF::AtomicString {{entry|symbol}}; | 26 extern const WTF::AtomicString {{entry|symbol}}; |
26 {% endif %} | 27 {% endif %} |
| 28 {% endfilter %} |
27 {% endfor %} | 29 {% endfor %} |
28 | 30 |
29 #endif // {{namespace|to_macro_style}}_NAMES_HIDE_GLOBALS | 31 #endif // {{namespace|to_macro_style}}_NAMES_HIDE_GLOBALS |
30 | 32 |
31 {{export}} void init{{suffix}}(); | 33 {{export}} void init{{suffix}}(); |
32 | 34 |
33 } // {{namespace}}Names | 35 } // {{namespace}}Names |
34 } // WebCore | 36 } // WebCore |
35 | 37 |
36 #endif | 38 #endif |
OLD | NEW |