OLD | NEW |
| (Empty) |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 {%- set header_guard = "MOJO_GENERATED_BINDINGS_%s_%s_INTERNAL_H_"| | |
6 format(module_name|upper, module_name|upper) %} | |
7 | |
8 #ifndef {{header_guard}} | |
9 #define {{header_guard}} | |
10 | |
11 #include "mojo/public/bindings/lib/bindings_internal.h" | |
12 {%- for import in imports %} | |
13 #include "{{include_prefix}}{{import.module_name|camel_to_underscores}}_internal
.h" | |
14 {%- endfor %} | |
15 | |
16 namespace {{namespace}} { | |
17 | |
18 {#--- Wrapper forward declarations #} | |
19 {% for struct in structs %} | |
20 class {{struct.name}}; | |
21 {%- endfor %} | |
22 | |
23 namespace internal { | |
24 | |
25 #pragma pack(push, 1) | |
26 | |
27 {#--- Class declarations #} | |
28 {% for struct in structs %} | |
29 {% include "struct_declaration.tmpl" %} | |
30 {%- endfor %} | |
31 | |
32 #pragma pack(pop) | |
33 | |
34 } // namespace internal | |
35 } // namespace {{namespace}} | |
36 | |
37 #endif // {{header_guard}} | |
OLD | NEW |