OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 // This file is autogenerated by: | 5 // This file is autogenerated by: |
6 // mojo/public/tools/bindings/mojom_bindings_generator.py | 6 // mojo/public/tools/bindings/mojom_bindings_generator.py |
7 // For: | 7 // For: |
8 // {{module.path}} | 8 // {{module.path}} |
9 // | 9 // |
10 | 10 |
11 package {{package}} | 11 package {{package}} |
12 | 12 |
13 import ( | 13 import ( |
14 "fmt" | |
15 "mojo/public/go/system" | 14 "mojo/public/go/system" |
16 {% for i in imports %} | 15 {% for i in imports %} |
17 {{i}} | 16 {{i}} |
18 {% endfor %} | 17 {% endfor %} |
19 ) | 18 ) |
20 | 19 |
21 var _ = fmt.Errorf | |
22 var _ = system.GetCore | 20 var _ = system.GetCore |
23 | 21 |
24 {% import "enum.tmpl" as enum_macros %} | 22 {% import "enum.tmpl" as enum_macros %} |
25 {% import "interface.tmpl" as interface_macros %} | 23 {% import "interface.tmpl" as interface_macros %} |
26 {% import "struct.tmpl" as struct_macros %} | 24 {% import "struct.tmpl" as struct_macros %} |
27 | 25 |
28 {#- Enum definitions #} | 26 {#- Enum definitions #} |
29 {% for enum in enums %} | 27 {% for enum in enums %} |
30 {{enum_macros.define(enum)}} | 28 {{enum_macros.define(enum)}} |
31 {%- endfor %} | 29 {%- endfor %} |
32 | 30 |
33 {#- Interface definitions #} | 31 {#- Interface definitions #} |
34 {% for interface in interfaces %} | 32 {% for interface in interfaces %} |
35 {{interface_macros.define(interface)}} | 33 {{interface_macros.define(interface)}} |
36 {%- endfor %} | 34 {%- endfor %} |
37 | 35 |
38 {#- Struct definitions #} | 36 {#- Struct definitions #} |
39 {% for struct in structs %} | 37 {% for struct in structs %} |
40 {{struct_macros.define(struct)}} | 38 {{struct_macros.define(struct)}} |
41 {%- endfor %} | 39 {%- endfor %} |
OLD | NEW |