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

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

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

Powered by Google App Engine
This is Rietveld 408576698