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 35124804885d391d4d3184a492c81829f4d45f5c..38338a6ef21d0343444b60bf07e1083a78bbf3d8 100644 |
--- a/mojo/public/tools/bindings/generators/dart_templates/module.lib.tmpl |
+++ b/mojo/public/tools/bindings/generators/dart_templates/module.lib.tmpl |
@@ -9,7 +9,15 @@ import 'dart:mojo_bindings' as bindings; |
import 'dart:mojo_core' as core; |
{%- for import in imports %} |
+{%- if import.unique_name == "application" %} |
+import 'dart:mojo_application' as application; |
+{%- elif import.unique_name == "service_provider" %} |
+import 'dart:mojo_service_provider' as service_provider; |
+{%- elif import.unique_name == "shell" %} |
+import 'dart:mojo_shell' as shell; |
abarth-chromium
2015/01/10 04:46:25
Why are these special-cased here? We don't do tha
zra
2015/01/14 22:47:59
This CL:
https://codereview.chromium.org/85096300
zra
2015/01/16 00:33:40
Special cases gone with https://codereview.chromiu
|
+{%- else %} |
import 'package:{{import.module.path}}.dart' as {{import.unique_name}}; |
+{%- endif %} |
{%- endfor %} |
{%- include "module_definition.tmpl" %} |