| 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 WebCore { | 10 namespace blink { |
| 11 | 11 |
| 12 class {{namespace}}QualifiedName : public QualifiedName { }; | 12 class {{namespace}}QualifiedName : public QualifiedName { }; |
| 13 | 13 |
| 14 namespace {{namespace}}Names { | 14 namespace {{namespace}}Names { |
| 15 | 15 |
| 16 // Namespace | 16 // Namespace |
| 17 extern const WTF::AtomicString& {{namespace_prefix}}NamespaceURI; | 17 extern const WTF::AtomicString& {{namespace_prefix}}NamespaceURI; |
| 18 | 18 |
| 19 // Tags | 19 // Tags |
| 20 {% for tag in tags|sort %} | 20 {% for tag in tags|sort %} |
| 21 extern const WebCore::{{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 WebCore::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 PassOwnPtr<const {{namespace}}QualifiedName*[]> get{{namespace}}Tags(); | 31 PassOwnPtr<const {{namespace}}QualifiedName*[]> get{{namespace}}Tags(); |
| 32 {% endif %} | 32 {% endif %} |
| 33 const unsigned {{namespace}}AttrsCount = {{attrs|count}}; | 33 const unsigned {{namespace}}AttrsCount = {{attrs|count}}; |
| 34 PassOwnPtr<const QualifiedName*[]> get{{namespace}}Attrs(); | 34 PassOwnPtr<const QualifiedName*[]> get{{namespace}}Attrs(); |
| 35 | 35 |
| 36 void init(); | 36 void init(); |
| 37 | 37 |
| 38 } // {{namespace}}Names | 38 } // {{namespace}}Names |
| 39 } // WebCore | 39 } // namespace blink |
| 40 | 40 |
| 41 #endif | 41 #endif |
| OLD | NEW |