| 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 // WARNING: DO NOT EDIT. This file was generated by a program. |
| 5 // See $MOJO_SDK/tools/bindings/mojom_bindings_generator.py. |
| 4 | 6 |
| 5 library {{module.name|dot_to_underscore}}; | 7 library {{module.name|dot_to_underscore}}; |
| 6 | 8 |
| 7 {%- if module.interfaces %} | 9 {%- if module.interfaces %} |
| 8 import 'dart:async'; | 10 import 'dart:async'; |
| 9 {%- endif %} | 11 {%- endif %} |
| 10 {%- if should_gen_mojom_types %} | 12 {%- if should_gen_mojom_types %} |
| 11 import 'dart:collection'; | 13 import 'dart:collection'; |
| 12 import 'dart:convert'; | 14 import 'dart:convert'; |
| 13 import 'dart:io'; | 15 import 'dart:io'; |
| 14 import 'dart:typed_data'; | 16 import 'dart:typed_data'; |
| 15 {%- endif %} | 17 {%- endif %} |
| 16 | 18 |
| 17 {%- if module.structs or module.unions or module.interfaces or module.enums or s
hould_gen_mojom_types%} | 19 {%- if module.structs or module.unions or module.interfaces or module.enums or s
hould_gen_mojom_types%} |
| 18 import 'package:mojo/bindings.dart' as bindings; | 20 import 'package:mojo/bindings.dart' as bindings; |
| 19 {%- endif %} | 21 {%- endif %} |
| 20 {%- if module.interfaces or has_handles %} | 22 {%- if module.interfaces or has_handles %} |
| 21 import 'package:mojo/core.dart' as core; | 23 import 'package:mojo/core.dart' as core; |
| 22 {%- endif %} | 24 {%- endif %} |
| 23 {%- if should_gen_mojom_types %} | 25 {%- if should_gen_mojom_types %} |
| 24 {{mojom_types_import}} | 26 {{mojom_types_import}} |
| 25 {%- endif %} | 27 {%- endif %} |
| 26 {{service_describer_import}} | 28 {{service_describer_import}} |
| 27 | 29 |
| 28 {%- for import in imports %} | 30 {%- for import in imports %} |
| 29 import 'package:{{import.rebased_path}}.dart' as {{import.unique_name}}; | 31 import 'package:{{import.rebased_path}}.dart' as {{import.unique_name}}; |
| 30 {%- endfor %} | 32 {%- endfor %} |
| 31 | 33 |
| 32 {%- include "module_definition.tmpl" %} | 34 {%- include "module_definition.tmpl" %} |
| OLD | NEW |