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

Unified Diff: Source/build/scripts/make_event_factory.py

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/license.py ('k') | Source/build/scripts/make_names.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/build/scripts/make_event_factory.py
diff --git a/Source/build/scripts/make_event_factory.py b/Source/build/scripts/make_event_factory.py
index 16d442c86373f9120879aa6bf897e5ed3d46a559..6bb46b8199c13ced67c9c56ff39ad23688101345 100755
--- a/Source/build/scripts/make_event_factory.py
+++ b/Source/build/scripts/make_event_factory.py
@@ -53,6 +53,7 @@ class EventFactoryWriter(name_macros.Writer):
}
default_parameters = {
'namespace': '',
+ 'suffix': '',
}
filters = {
'cpp_name': name_utilities.cpp_name,
@@ -64,12 +65,13 @@ class EventFactoryWriter(name_macros.Writer):
def __init__(self, in_file_path):
super(EventFactoryWriter, self).__init__(in_file_path)
- self._outputs[(self.namespace + ".cpp")] = self.generate_implementation
+ self._outputs[(self.namespace + self.suffix + ".cpp")] = self.generate_implementation
@template_expander.use_jinja('EventFactory.cpp.tmpl', filters=filters)
def generate_implementation(self):
return {
'namespace': self.namespace,
+ 'suffix': self.suffix,
'events': self.in_file.name_dictionaries,
}
« no previous file with comments | « Source/build/scripts/license.py ('k') | Source/build/scripts/make_names.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698