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 = "%s_INTERNAL_H_"| | |
6 format(module.path|upper|replace("/","_")|replace(".","_")) %} | |
7 | |
8 #ifndef {{header_guard}} | |
9 #define {{header_guard}} | |
10 | |
11 #include "mojo/public/cpp/bindings/lib/bindings_internal.h" | |
12 {%- for import in imports %} | |
13 #include "{{import.module.path}}-internal.h" | |
14 {%- endfor %} | |
15 | |
16 {%- if namespace %} | |
17 namespace {{namespace}} { | |
18 {%- endif %} | |
19 | |
20 {#--- Wrapper forward declarations #} | |
21 {% for struct in structs %} | |
22 class {{struct.name}}; | |
23 {%- endfor %} | |
24 | |
25 namespace internal { | |
26 | |
27 #pragma pack(push, 1) | |
28 | |
29 {#--- Class declarations #} | |
30 {% for struct in structs %} | |
31 {% include "struct_declaration.tmpl" %} | |
32 {%- endfor %} | |
33 | |
34 #pragma pack(pop) | |
35 | |
36 } // namespace internal | |
37 {%- if namespace %} | |
38 } // namespace {{namespace}} | |
39 {%- endif %} | |
40 | |
41 #endif // {{header_guard}} | |
OLD | NEW |