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

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

Issue 330093002: Add support in generate scripts to handle Conditional (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: sort by alpha Created 6 years, 6 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/MakeNames.cpp.tmpl ('k') | Source/core/svg/SVGTagNames.in » ('j') | 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}}{{suffix}}Names_h 4 #ifndef {{namespace}}{{suffix}}Names_h
5 #define {{namespace}}{{suffix}}Names_h 5 #define {{namespace}}{{suffix}}Names_h
6 6
7 {% if suffix %} 7 {% if suffix %}
8 #include "{{namespace}}Names.h" 8 #include "{{namespace}}Names.h"
9 {% else %} 9 {% else %}
10 {% if export %} 10 {% if export %}
11 #include "platform/PlatformExport.h" 11 #include "platform/PlatformExport.h"
12 {% endif %} 12 {% endif %}
13 #include "wtf/text/AtomicString.h" 13 #include "wtf/text/AtomicString.h"
14 {% endif %} 14 {% endif %}
15 15
16 namespace WebCore { 16 namespace WebCore {
17 namespace {{namespace}}Names { 17 namespace {{namespace}}Names {
18 18
19 #ifndef {{namespace|to_macro_style}}_NAMES_HIDE_GLOBALS 19 #ifndef {{namespace|to_macro_style}}_NAMES_HIDE_GLOBALS
20 20
21 {% for entry in entries|sort %} 21 {% for entry in entries|sort %}
22 {% filter enable_conditional(entry.Conditional) %}
22 {% if export %} 23 {% if export %}
23 {{export}} extern const WTF::AtomicString& {{entry|symbol}}; 24 {{export}} extern const WTF::AtomicString& {{entry|symbol}};
24 {% else %} 25 {% else %}
25 extern const WTF::AtomicString {{entry|symbol}}; 26 extern const WTF::AtomicString {{entry|symbol}};
26 {% endif %} 27 {% endif %}
28 {% endfilter %}
27 {% endfor %} 29 {% endfor %}
28 30
29 #endif // {{namespace|to_macro_style}}_NAMES_HIDE_GLOBALS 31 #endif // {{namespace|to_macro_style}}_NAMES_HIDE_GLOBALS
30 32
31 {{export}} void init{{suffix}}(); 33 {{export}} void init{{suffix}}();
32 34
33 } // {{namespace}}Names 35 } // {{namespace}}Names
34 } // WebCore 36 } // WebCore
35 37
36 #endif 38 #endif
OLDNEW
« no previous file with comments | « Source/build/scripts/templates/MakeNames.cpp.tmpl ('k') | Source/core/svg/SVGTagNames.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698