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

Unified Diff: Source/build/scripts/templates/MakeNames.cpp.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/build/scripts/name_macros.py ('k') | Source/build/scripts/templates/MakeNames.h.tmpl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e91f751a6fab449a60198aecad0aa142f8a55c59..f6a939c3fd5f0f042541c096f7128feef527e15b 100644
--- a/Source/build/scripts/templates/MakeNames.cpp.tmpl
+++ b/Source/build/scripts/templates/MakeNames.cpp.tmpl
@@ -7,7 +7,7 @@
#define {{namespace|to_macro_style}}_NAMES_HIDE_GLOBALS 1
#endif
-#include "{{namespace}}Names.h"
+#include "{{namespace}}{{suffix}}Names.h"
#include "wtf/StaticConstructors.h"
@@ -25,7 +25,7 @@ DEFINE_GLOBAL(AtomicString, {{entry|symbol}})
{% endif %}
{% endfor %}
-void init()
+void init{{suffix}}()
{
{% for entry in entries|sort %}
StringImpl* {{entry|symbol}}Impl = StringImpl::createStatic("{{entry|cpp_name}}", {{entry|cpp_name|length}}, {{entry|cpp_name|hash}});
@@ -36,5 +36,5 @@ void init()
{% endfor %}
}
-} // {{namespace}}
+} // {{namespace}}Names
} // WebCore
« no previous file with comments | « Source/build/scripts/name_macros.py ('k') | Source/build/scripts/templates/MakeNames.h.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698