1{% from "macros.tmpl" import license %} 2{{ license() }} 3 4#ifndef {{namespace}}Names_h 5#define {{namespace}}Names_h 6 7#include "core/dom/QualifiedName.h" 8#include "wtf/PassOwnPtr.h" 9 10namespace blink { 11 12class {{namespace}}QualifiedName : public QualifiedName { }; 13 14namespace {{namespace}}Names { 15 16// Namespace 17extern const WTF::AtomicString& {{namespace_prefix}}NamespaceURI; 18 19// Tags 20{% for tag in tags|sort %} 21extern const blink::{{namespace}}QualifiedName& {{tag|symbol}}Tag; 22{% endfor %} 23 24// Attributes 25{% for attr in attrs|sort %} 26extern const blink::QualifiedName& {{attr|symbol}}Attr; 27{% endfor %} 28 29{% if tags %} 30const unsigned {{namespace}}TagsCount = {{tags|count}}; 31{% if namespace == 'SVG' %} 32PassOwnPtr<const {{namespace}}QualifiedName*[]> get{{namespace}}Tags(); 33{% endif %} 34{% endif %} 35 36const unsigned {{namespace}}AttrsCount = {{attrs|count}}; 37{% if namespace != 'HTML' %} 38PassOwnPtr<const QualifiedName*[]> get{{namespace}}Attrs(); 39{% endif %} 40 41void init(); 42 43} // {{namespace}}Names 44} // namespace blink 45 46#endif 47