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

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

Issue 1092793005: Dart: Put generated .mojom.dart files under mojoms pacakge. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Merge Created 5 years, 8 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 | « mojo/public/dart/application.dart ('k') | services/dart/dart_apptests/echo_apptests.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/tools/bindings/generators/mojom_dart_generator.py
diff --git a/mojo/public/tools/bindings/generators/mojom_dart_generator.py b/mojo/public/tools/bindings/generators/mojom_dart_generator.py
index 7ff074e795757632e0d45ed4b318b942544c27b1..ac27fa1d3dde84a5e6a403d43350f0ca40d31172 100644
--- a/mojo/public/tools/bindings/generators/mojom_dart_generator.py
+++ b/mojo/public/tools/bindings/generators/mojom_dart_generator.py
@@ -360,7 +360,7 @@ def IsPointerArrayKind(kind):
def GetImportUri(module):
elements = module.namespace.split('.')
elements.append("%s" % module.name)
- return os.path.join(*elements)
+ return os.path.join("mojom", *elements)
class Generator(generator.Generator):
@@ -402,7 +402,7 @@ class Generator(generator.Generator):
def GenerateFiles(self, args):
elements = self.module.namespace.split('.')
elements.append("%s.dart" % self.module.name)
- path = os.path.join("dart-gen", *elements)
+ path = os.path.join("dart-gen", "mojom", *elements)
self.Write(self.GenerateLibModule(args), path)
link = self.MatchMojomFilePath("%s.dart" % self.module.name)
if os.path.exists(os.path.join(self.output_dir, link)):
« no previous file with comments | « mojo/public/dart/application.dart ('k') | services/dart/dart_apptests/echo_apptests.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698