| 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 #include "mojo/public/cpp/bindings/lib/buffer.h" | |
| 13 #include "mojo/public/cpp/bindings/lib/union_accessor.h" | |
| 14 #include "mojo/public/cpp/bindings/struct_ptr.h" | |
| 15 | |
| 16 {%- for import in imports %} | |
| 17 #include "{{import.module.path}}-internal.h" | |
| 18 {%- endfor %} | |
| 19 | |
| 20 namespace mojo { | |
| 21 namespace internal { | |
| 22 class BoundsChecker; | |
| 23 } | |
| 24 } | |
| 25 | |
| 26 {%- for namespace in namespaces_as_array %} | |
| 27 namespace {{namespace}} { | |
| 28 {%- endfor %} | |
| 29 | |
| 30 {#--- Wrapper forward declarations #} | |
| 31 {% for struct in structs %} | |
| 32 class {{struct.name}}; | |
| 33 {%- endfor %} | |
| 34 | |
| 35 namespace internal { | |
| 36 | |
| 37 {#--- Internal forward declarations #} | |
| 38 {% for struct in structs %} | |
| 39 class {{struct.name}}_Data; | |
| 40 {%- endfor %} | |
| 41 | |
| 42 #pragma pack(push, 1) | |
| 43 | |
| 44 {#--- Class declarations #} | |
| 45 {% for struct in structs %} | |
| 46 {% include "struct_declaration.tmpl" %} | |
| 47 {%- endfor %} | |
| 48 | |
| 49 #pragma pack(pop) | |
| 50 | |
| 51 } // namespace internal | |
| 52 {%- for namespace in namespaces_as_array|reverse %} | |
| 53 } // namespace {{namespace}} | |
| 54 {%- endfor %} | |
| 55 | |
| 56 #endif // {{header_guard}} | |
| OLD | NEW |