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

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

Issue 236673002: Simplify whitespace handling in build/ Jinja templates (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: One more FIXME Created 6 years, 8 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 | Annotate | Revision Log
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 WebCore { 10 namespace WebCore {
11 namespace {{namespace}}Names { 11 namespace {{namespace}}Names {
12 12
13 #ifndef {{namespace|to_macro_style}}_NAMES_HIDE_GLOBALS 13 #ifndef {{namespace|to_macro_style}}_NAMES_HIDE_GLOBALS
14 // Namespace 14 // Namespace
15 extern const WTF::AtomicString {{namespace_prefix}}NamespaceURI; 15 extern const WTF::AtomicString {{namespace_prefix}}NamespaceURI;
16 16
17 // Tags 17 // Tags
18 {%- for tag in tags|sort %} 18 {% for tag in tags|sort %}
19 extern const WebCore::QualifiedName {{tag|symbol}}Tag; 19 extern const WebCore::QualifiedName {{tag|symbol}}Tag;
20 {%- endfor %} 20 {% endfor %}
21 21
22 // Attributes 22 // Attributes
23 {%- for attr in attrs|sort %} 23 {% for attr in attrs|sort %}
24 extern const WebCore::QualifiedName {{attr|symbol}}Attr; 24 extern const WebCore::QualifiedName {{attr|symbol}}Attr;
25 {%- endfor %} 25 {% endfor %}
26 26
27 #endif // {{namespace|to_macro_style}}_NAMES_HIDE_GLOBALS 27 #endif // {{namespace|to_macro_style}}_NAMES_HIDE_GLOBALS
28 28 {% if tags %}
29 {%- if tags %}
30 const unsigned {{namespace}}TagsCount = {{tags|count}}; 29 const unsigned {{namespace}}TagsCount = {{tags|count}};
31 PassOwnPtr<const QualifiedName*[]> get{{namespace}}Tags(); 30 PassOwnPtr<const QualifiedName*[]> get{{namespace}}Tags();
32 {%- endif %} 31 {% endif %}
33 const unsigned {{namespace}}AttrsCount = {{attrs|count}}; 32 const unsigned {{namespace}}AttrsCount = {{attrs|count}};
34 PassOwnPtr<const QualifiedName*[]> get{{namespace}}Attrs(); 33 PassOwnPtr<const QualifiedName*[]> get{{namespace}}Attrs();
35 34
36 void init(); 35 void init();
37 36
38 } // {{namespace}}Names 37 } // {{namespace}}Names
39 } // WebCore 38 } // WebCore
40 39
41 #endif 40 #endif
OLDNEW
« no previous file with comments | « Source/build/scripts/templates/MakeQualifiedNames.cpp.tmpl ('k') | Source/build/scripts/templates/MediaFeatures.h.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698