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

Unified Diff: Source/build/scripts/templates/MakeNames.cpp.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 side-by-side diff with in-line comments
Download patch
Index: Source/build/scripts/templates/MakeNames.cpp.tmpl
diff --git a/Source/build/scripts/templates/MakeNames.cpp.tmpl b/Source/build/scripts/templates/MakeNames.cpp.tmpl
index f6a939c3fd5f0f042541c096f7128feef527e15b..42fbf9af12e52053d9fb2ce388926a5927566907 100644
--- a/Source/build/scripts/templates/MakeNames.cpp.tmpl
+++ b/Source/build/scripts/templates/MakeNames.cpp.tmpl
@@ -17,22 +17,28 @@ namespace {{namespace}}Names {
using namespace WTF;
{% for entry in entries|sort %}
+{% filter enable_conditional(entry.Conditional) %}
{% if export %}
DEFINE_GLOBAL(AtomicString, {{entry|symbol}}Storage)
{{export}} const AtomicString& {{entry|symbol}} = *reinterpret_cast<const AtomicString*>(&{{entry|symbol}}Storage);
{% else %}
DEFINE_GLOBAL(AtomicString, {{entry|symbol}})
{% endif %}
+{% endfilter %}
{% endfor %}
void init{{suffix}}()
{
{% for entry in entries|sort %}
+ {% filter enable_conditional(entry.Conditional) %}
StringImpl* {{entry|symbol}}Impl = StringImpl::createStatic("{{entry|cpp_name}}", {{entry|cpp_name|length}}, {{entry|cpp_name|hash}});
+ {% endfilter %}
{% endfor %}
{% for entry in entries|sort %}
+ {% filter enable_conditional(entry.Conditional) %}
new ((void*)&{{entry|symbol}}) AtomicString({{entry|symbol}}Impl);
+ {% endfilter %}
{% endfor %}
}
« no previous file with comments | « Source/build/scripts/templates/ElementWrapperFactory.cpp.tmpl ('k') | Source/build/scripts/templates/MakeNames.h.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698