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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/build/scripts/templates/MakeNames.h.tmpl
diff --git a/Source/build/scripts/templates/MakeNames.h.tmpl b/Source/build/scripts/templates/MakeNames.h.tmpl
index 704b8e137aa199c1ebaab40e03da8f668d9d5dc7..e6d418cf0a9bb8659706c2ee8f13409302c33329 100644
--- a/Source/build/scripts/templates/MakeNames.h.tmpl
+++ b/Source/build/scripts/templates/MakeNames.h.tmpl
@@ -19,11 +19,13 @@ namespace {{namespace}}Names {
#ifndef {{namespace|to_macro_style}}_NAMES_HIDE_GLOBALS
{% for entry in entries|sort %}
+{% filter enable_conditional(entry.Conditional) %}
{% if export %}
{{export}} extern const WTF::AtomicString& {{entry|symbol}};
{% else %}
extern const WTF::AtomicString {{entry|symbol}};
{% endif %}
+{% endfilter %}
{% endfor %}
#endif // {{namespace|to_macro_style}}_NAMES_HIDE_GLOBALS
« 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