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

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

Issue 1753013002: Mojom runtime type info: New implementation for Dart. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: No changes to sha1s Created 4 years, 9 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|dot_to_underscore}}; 5 library {{module.name|dot_to_underscore}};
6 6
7 {%- if module.interfaces %} 7 {%- if module.interfaces %}
8 import 'dart:async'; 8 import 'dart:async';
9 {%- endif %} 9 {%- endif %}
10 {%- if should_gen_mojom_types %} 10 {%- if should_gen_mojom_types %}
11 import 'dart:collection'; 11 import 'dart:collection';
12 import 'dart:typed_data';
12 {%- endif %} 13 {%- endif %}
13 14
14 {%- if module.structs or module.unions or module.interfaces or module.enums %} 15 {%- if module.structs or module.unions or module.interfaces or module.enums or s hould_gen_mojom_types%}
15 import 'package:mojo/bindings.dart' as bindings; 16 import 'package:mojo/bindings.dart' as bindings;
16 {%- endif %} 17 {%- endif %}
17 {%- if module.interfaces or has_handles %} 18 {%- if module.interfaces or has_handles %}
18 import 'package:mojo/core.dart' as core; 19 import 'package:mojo/core.dart' as core;
19 {%- endif %} 20 {%- endif %}
20 {%- if should_gen_mojom_types %} 21 {%- if should_gen_mojom_types %}
21 {{mojom_types_import}} 22 {{mojom_types_import}}
22 {%- endif %} 23 {%- endif %}
23 {{service_describer_import}} 24 {{service_describer_import}}
24 25
25 {%- for import in imports %} 26 {%- for import in imports %}
26 import 'package:{{import.rebased_path}}.dart' as {{import.unique_name}}; 27 import 'package:{{import.rebased_path}}.dart' as {{import.unique_name}};
27 {%- endfor %} 28 {%- endfor %}
28 29
29 {%- include "module_definition.tmpl" %} 30 {%- include "module_definition.tmpl" %}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698