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

Unified Diff: mojo/public/tools/bindings/generators/mojom_java_generator.py

Issue 2888503002: Mojo bindings generator: introduce Stylizer to specify naming rules. (Closed)
Patch Set: Created 3 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
Index: mojo/public/tools/bindings/generators/mojom_java_generator.py
diff --git a/mojo/public/tools/bindings/generators/mojom_java_generator.py b/mojo/public/tools/bindings/generators/mojom_java_generator.py
index 3e6f63a120f655160a14694065305032b62bc0c0..097f76cafae604ea337591f651dd6b91fc7cc4e8 100644
--- a/mojo/public/tools/bindings/generators/mojom_java_generator.py
+++ b/mojo/public/tools/bindings/generators/mojom_java_generator.py
@@ -513,6 +513,8 @@ class Generator(generator.Generator):
if self.variant:
raise Exception("Variants not supported in Java bindings.")
+ self.module.Stylize(generator.Stylizer())
+
parser = argparse.ArgumentParser()
parser.add_argument('--java_output_directory', dest='java_output_directory')
args = parser.parse_args(unparsed_args)
@@ -520,7 +522,7 @@ class Generator(generator.Generator):
# Generate the java files in a temporary directory and place a single
# srcjar in the output directory.
- basename = self.MatchMojomFilePath("%s.srcjar" % self.module.name)
+ basename = "%s.srcjar" % self.module.path
zip_filename = os.path.join(self.output_dir, basename)
with TempDir() as temp_java_root:
self.output_dir = os.path.join(temp_java_root, package_path)

Powered by Google App Engine
This is Rietveld 408576698