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

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

Issue 424983002: Stop using WebCore namespace in generated code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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}}{{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 "core/{{namespace}}Names.h" 8 #include "core/{{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 blink {
17 namespace {{namespace}}Names { 17 namespace {{namespace}}Names {
18 18
19 {% for entry in entries|sort %} 19 {% for entry in entries|sort %}
20 {% filter enable_conditional(entry.Conditional) %} 20 {% filter enable_conditional(entry.Conditional) %}
21 {% if export %} 21 {% if export %}
22 {{export}} extern const WTF::AtomicString& {{entry|symbol}}; 22 {{export}} extern const WTF::AtomicString& {{entry|symbol}};
23 {% else %} 23 {% else %}
24 extern const WTF::AtomicString& {{entry|symbol}}; 24 extern const WTF::AtomicString& {{entry|symbol}};
25 {% endif %} 25 {% endif %}
26 {% endfilter %} 26 {% endfilter %}
27 {% endfor %} 27 {% endfor %}
28 28
29 {{export}} void init{{suffix}}(); 29 {{export}} void init{{suffix}}();
30 30
31 } // {{namespace}}Names 31 } // {{namespace}}Names
32 } // WebCore 32 } // namespace blink
33 33
34 #endif 34 #endif
OLDNEW
« no previous file with comments | « Source/build/scripts/templates/MakeNames.cpp.tmpl ('k') | Source/build/scripts/templates/MakeQualifiedNames.cpp.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698