1 {% from "macros.tmpl" import license %}
4 #ifndef {{namespace}}Names_h
5 #define {{namespace}}Names_h
7 {% if export == 'CORE_EXPORT' %}
8 #include "core/CoreExport.h"
10 #include "core/dom/QualifiedName.h"
11 #include "wtf/PassOwnPtr.h"
15 class {{namespace}}QualifiedName : public QualifiedName { };
17 namespace {{namespace}}Names {
19 {% set symbol_export = '%s ' % export if export else '' %}
21 {{symbol_export}}extern const WTF::AtomicString& {{namespace_prefix}}NamespaceURI;
24 {% for tag in tags|sort %}
25 {{symbol_export}}extern const blink::{{namespace}}QualifiedName& {{tag|symbol}}Tag;
29 {% for attr in attrs|sort %}
30 {{symbol_export}}extern const blink::QualifiedName& {{attr|symbol}}Attr;
34 const unsigned {{namespace}}TagsCount = {{tags|count}};
35 {{symbol_export}}PassOwnPtr<const {{namespace}}QualifiedName*[]> get{{namespace}}Tags();
38 const unsigned {{namespace}}AttrsCount = {{attrs|count}};
39 {% if namespace != 'HTML' %}
40 PassOwnPtr<const QualifiedName*[]> get{{namespace}}Attrs();
45 } // {{namespace}}Names