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

Unified Diff: mojo/public/tools/bindings/generators/dart_templates/module.lib.tmpl

Issue 1539673003: Generate Mojom Types in Dart (Take 2) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Merge with master Created 4 years, 11 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/dart_templates/module.lib.tmpl
diff --git a/mojo/public/tools/bindings/generators/dart_templates/module.lib.tmpl b/mojo/public/tools/bindings/generators/dart_templates/module.lib.tmpl
index 8756051379ee42c8f18866cb06feb3cd50c525b7..26e7ae7ce57a3e1983ae53fd69d87bfeda053606 100644
--- a/mojo/public/tools/bindings/generators/dart_templates/module.lib.tmpl
+++ b/mojo/public/tools/bindings/generators/dart_templates/module.lib.tmpl
@@ -5,9 +5,14 @@
library {{module.name|dot_to_underscore}};
import 'dart:async';
+{%- if should_gen_mojom_types %}
+import 'dart:collection';
+{%- endif %}
import 'package:mojo/bindings.dart' as bindings;
import 'package:mojo/core.dart' as core;
+{{mojom_types_import}}
+{{service_describer_import}}
{%- for import in imports %}
import 'package:{{import.rebased_path}}.dart' as {{import.unique_name}};

Powered by Google App Engine
This is Rietveld 408576698