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

Side by Side Diff: Source/build/scripts/templates/MakeNames.cpp.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 #include "config.h" 4 #include "config.h"
5 5
6 #include "{{namespace}}{{suffix}}Names.h" 6 #include "{{namespace}}{{suffix}}Names.h"
7 7
8 #include "wtf/StaticConstructors.h" 8 #include "wtf/StaticConstructors.h"
9 9
10 namespace WebCore { 10 namespace blink {
11 namespace {{namespace}}Names { 11 namespace {{namespace}}Names {
12 12
13 using namespace WTF; 13 using namespace WTF;
14 14
15 {% for entry in entries|sort %} 15 {% for entry in entries|sort %}
16 {% filter enable_conditional(entry.Conditional) %} 16 {% filter enable_conditional(entry.Conditional) %}
17 DEFINE_GLOBAL(AtomicString, {{entry|symbol}}) 17 DEFINE_GLOBAL(AtomicString, {{entry|symbol}})
18 {% endfilter %} 18 {% endfilter %}
19 {% endfor %} 19 {% endfor %}
20 20
21 void init{{suffix}}() 21 void init{{suffix}}()
22 { 22 {
23 {% for entry in entries|sort %} 23 {% for entry in entries|sort %}
24 {% filter enable_conditional(entry.Conditional) %} 24 {% filter enable_conditional(entry.Conditional) %}
25 StringImpl* {{entry|symbol}}Impl = StringImpl::createStatic("{{entry|cpp_nam e}}", {{entry|cpp_name|length}}, {{entry|cpp_name|hash}}); 25 StringImpl* {{entry|symbol}}Impl = StringImpl::createStatic("{{entry|cpp_nam e}}", {{entry|cpp_name|length}}, {{entry|cpp_name|hash}});
26 {% endfilter %} 26 {% endfilter %}
27 {% endfor %} 27 {% endfor %}
28 28
29 {% for entry in entries|sort %} 29 {% for entry in entries|sort %}
30 {% filter enable_conditional(entry.Conditional) %} 30 {% filter enable_conditional(entry.Conditional) %}
31 new ((void*)&{{entry|symbol}}) AtomicString({{entry|symbol}}Impl); 31 new ((void*)&{{entry|symbol}}) AtomicString({{entry|symbol}}Impl);
32 {% endfilter %} 32 {% endfilter %}
33 {% endfor %} 33 {% endfor %}
34 } 34 }
35 35
36 } // {{namespace}}Names 36 } // {{namespace}}Names
37 } // WebCore 37 } // namespace blink
OLDNEW
« no previous file with comments | « Source/build/scripts/templates/InternalSettingsGenerated.h.tmpl ('k') | Source/build/scripts/templates/MakeNames.h.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698