Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(396)

Side by Side Diff: Source/build/scripts/templates/MakeQualifiedNames.h.tmpl

Issue 608513002: Do not generate getHTMLTags/Attrs (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/build/scripts/templates/MakeQualifiedNames.cpp.tmpl ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 PassOwnPtr<const {{namespace}}QualifiedName*[]> get{{namespace}}Tags(); 32 PassOwnPtr<const {{namespace}}QualifiedName*[]> get{{namespace}}Tags();
32 {% endif %} 33 {% endif %}
34 {% endif %}
35
33 const unsigned {{namespace}}AttrsCount = {{attrs|count}}; 36 const unsigned {{namespace}}AttrsCount = {{attrs|count}};
37 {% if namespace != 'HTML' %}
34 PassOwnPtr<const QualifiedName*[]> get{{namespace}}Attrs(); 38 PassOwnPtr<const QualifiedName*[]> get{{namespace}}Attrs();
39 {% endif %}
35 40
36 void init(); 41 void init();
37 42
38 } // {{namespace}}Names 43 } // {{namespace}}Names
39 } // namespace blink 44 } // namespace blink
40 45
41 #endif 46 #endif
OLDNEW
« no previous file with comments | « Source/build/scripts/templates/MakeQualifiedNames.cpp.tmpl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698