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

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

Issue 816113004: Dart: Adds a content handler and a test. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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 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" %}

Powered by Google App Engine
This is Rietveld 408576698