Chromium Code Reviews| OLD | NEW |
|---|---|
| 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" %} |
| OLD | NEW |