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

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

Issue 2876903002: NOT FOR COMMIT
Patch Set: Merge branch 'refs/heads/c76_dummy_stylize' into c76_tried_mojom_name_and_name 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_js_generator.py
diff --git a/mojo/public/tools/bindings/generators/mojom_js_generator.py b/mojo/public/tools/bindings/generators/mojom_js_generator.py
index ef4c2ef7b876dc1b28b2927320e91e6e1e7dfa42..3225e0b09839792a79a9f1628dabcfb596ab64c8 100644
--- a/mojo/public/tools/bindings/generators/mojom_js_generator.py
+++ b/mojo/public/tools/bindings/generators/mojom_js_generator.py
@@ -160,6 +160,9 @@ class Generator(generator.Generator):
# TODO(yzshen): Remove this method once the old JS bindings go away.
self._SetUniqueNameForImports()
+ # TODO(yzshen): Add a JavaScriptStylizer.
+ self.module.Stylize(generator.Stylizer())
+
self.Write(self._GenerateAMDModule(),
self.MatchMojomFilePath("%s.js" % self.module.name))

Powered by Google App Engine
This is Rietveld 408576698