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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 library {{module.name}}; 5 library {{module.name}};
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:mojo_bindings' as bindings; 8 import 'dart:mojo_bindings' as bindings;
9 import 'dart:mojo_core' as core; 9 import 'dart:mojo_core' as core;
10 10
11 {%- for import in imports %} 11 {%- for import in imports %}
12 {%- if import.unique_name == "application" %}
13 import 'dart:mojo_application' as application;
14 {%- elif import.unique_name == "service_provider" %}
15 import 'dart:mojo_service_provider' as service_provider;
16 {%- elif import.unique_name == "shell" %}
17 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
18 {%- else %}
12 import 'package:{{import.module.path}}.dart' as {{import.unique_name}}; 19 import 'package:{{import.module.path}}.dart' as {{import.unique_name}};
20 {%- endif %}
13 {%- endfor %} 21 {%- endfor %}
14 22
15 {%- include "module_definition.tmpl" %} 23 {%- include "module_definition.tmpl" %}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698