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

Unified Diff: mojo/public/bindings/generators/mojom_cpp_generator.py

Issue 177183002: Mojo: Include "path/to/foo.mojom.h" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove unnecessary abspath Created 6 years, 10 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: mojo/public/bindings/generators/mojom_cpp_generator.py
diff --git a/mojo/public/bindings/generators/mojom_cpp_generator.py b/mojo/public/bindings/generators/mojom_cpp_generator.py
index 4420aafd88f7f01f34e01cd1b14f2afb818fff4d..dcff2401b2ae8b8c3be11d21ea41389d8793a0f2 100644
--- a/mojo/public/bindings/generators/mojom_cpp_generator.py
+++ b/mojo/public/bindings/generators/mojom_cpp_generator.py
@@ -141,6 +141,7 @@ class Generator(mojom_generator.Generator):
return {
"module": self.module,
"module_name": self.module.name,
+ "module_path": self.module.path,
"namespace": self.module.namespace,
"imports": self.module.imports,
"kinds": self.module.kinds,
@@ -154,7 +155,7 @@ class Generator(mojom_generator.Generator):
def GenerateModuleHeader(self):
return self.GetJinjaExports()
- @UseJinja("cpp_templates/module_internal.h.tmpl", filters=cpp_filters)
+ @UseJinja("cpp_templates/module-internal.h.tmpl", filters=cpp_filters)
def GenerateModuleInternalHeader(self):
return self.GetJinjaExports()
@@ -165,7 +166,7 @@ class Generator(mojom_generator.Generator):
def GenerateFiles(self):
self.Write(self.GenerateModuleHeader(), "%s.h" % self.module.name)
self.Write(self.GenerateModuleInternalHeader(),
- "%s_internal.h" % self.module.name)
+ "%s-internal.h" % self.module.name)
self.Write(self.GenerateModuleSource(), "%s.cc" % self.module.name)
def GetIncludePrefix(self):

Powered by Google App Engine
This is Rietveld 408576698