OLD | NEW |
1 {% from "macros.tmpl" import license %} | 1 {% from "macros.tmpl" import license %} |
2 {{ license() }} | 2 {{ license() }} |
3 | 3 |
4 #ifndef {{namespace}}Names_h | 4 #ifndef {{namespace}}Names_h |
5 #define {{namespace}}Names_h | 5 #define {{namespace}}Names_h |
6 | 6 |
7 #include "core/dom/QualifiedName.h" | 7 #include "core/dom/QualifiedName.h" |
8 #include "wtf/PassOwnPtr.h" | 8 #include "wtf/PassOwnPtr.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
(...skipping 10 matching lines...) Expand all Loading... |
21 extern const blink::{{namespace}}QualifiedName& {{tag|symbol}}Tag; | 21 extern const blink::{{namespace}}QualifiedName& {{tag|symbol}}Tag; |
22 {% endfor %} | 22 {% endfor %} |
23 | 23 |
24 // Attributes | 24 // Attributes |
25 {% for attr in attrs|sort %} | 25 {% for attr in attrs|sort %} |
26 extern const blink::QualifiedName& {{attr|symbol}}Attr; | 26 extern const blink::QualifiedName& {{attr|symbol}}Attr; |
27 {% endfor %} | 27 {% endfor %} |
28 | 28 |
29 {% if tags %} | 29 {% if tags %} |
30 const unsigned {{namespace}}TagsCount = {{tags|count}}; | 30 const unsigned {{namespace}}TagsCount = {{tags|count}}; |
31 {% if namespace != 'HTML' %} | 31 {% if namespace == 'SVG' %} |
32 PassOwnPtr<const {{namespace}}QualifiedName*[]> get{{namespace}}Tags(); | 32 PassOwnPtr<const {{namespace}}QualifiedName*[]> get{{namespace}}Tags(); |
33 {% endif %} | 33 {% endif %} |
34 {% endif %} | 34 {% endif %} |
35 | 35 |
36 const unsigned {{namespace}}AttrsCount = {{attrs|count}}; | 36 const unsigned {{namespace}}AttrsCount = {{attrs|count}}; |
37 {% if namespace != 'HTML' %} | 37 {% if namespace != 'HTML' %} |
38 PassOwnPtr<const QualifiedName*[]> get{{namespace}}Attrs(); | 38 PassOwnPtr<const QualifiedName*[]> get{{namespace}}Attrs(); |
39 {% endif %} | 39 {% endif %} |
40 | 40 |
41 void init(); | 41 void init(); |
42 | 42 |
43 } // {{namespace}}Names | 43 } // {{namespace}}Names |
44 } // namespace blink | 44 } // namespace blink |
45 | 45 |
46 #endif | 46 #endif |
OLD | NEW |