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

Unified Diff: Source/build/scripts/templates/MakeNames.h.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/templates/MakeNames.cpp.tmpl ('k') | Source/build/scripts/templates/macros.tmpl » ('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 5745160e6e8ed8ee823977df0d4cf7516d4101f7..704b8e137aa199c1ebaab40e03da8f668d9d5dc7 100644
--- a/Source/build/scripts/templates/MakeNames.h.tmpl
+++ b/Source/build/scripts/templates/MakeNames.h.tmpl
@@ -1,13 +1,17 @@
{% from "macros.tmpl" import license %}
{{ license() }}
-#ifndef {{namespace}}Names_h
-#define {{namespace}}Names_h
+#ifndef {{namespace}}{{suffix}}Names_h
+#define {{namespace}}{{suffix}}Names_h
+{% if suffix %}
+#include "{{namespace}}Names.h"
+{% else %}
{% if export %}
#include "platform/PlatformExport.h"
{% endif %}
#include "wtf/text/AtomicString.h"
+{% endif %}
namespace WebCore {
namespace {{namespace}}Names {
@@ -24,7 +28,7 @@ extern const WTF::AtomicString {{entry|symbol}};
#endif // {{namespace|to_macro_style}}_NAMES_HIDE_GLOBALS
-{{export}} void init();
+{{export}} void init{{suffix}}();
} // {{namespace}}Names
} // WebCore
« no previous file with comments | « Source/build/scripts/templates/MakeNames.cpp.tmpl ('k') | Source/build/scripts/templates/macros.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698