| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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 {%- set header_guard = "%s_INTERNAL_H_"| | 5 {%- set header_guard = "%s_INTERNAL_H_"| |
| 6 format(module.path|upper|replace("/","_")|replace(".","_")) %} | 6 format(module.path|upper|replace("/","_")|replace(".","_")) %} |
| 7 | 7 |
| 8 #ifndef {{header_guard}} | 8 #ifndef {{header_guard}} |
| 9 #define {{header_guard}} | 9 #define {{header_guard}} |
| 10 | 10 |
| 11 #include "mojo/public/cpp/bindings/lib/bindings_internal.h" | 11 #include "mojo/public/cpp/bindings/lib/bindings_internal.h" |
| 12 #include "mojo/public/cpp/bindings/lib/buffer.h" |
| 13 |
| 12 {%- for import in imports %} | 14 {%- for import in imports %} |
| 13 #include "{{import.module.path}}-internal.h" | 15 #include "{{import.module.path}}-internal.h" |
| 14 {%- endfor %} | 16 {%- endfor %} |
| 15 | 17 |
| 16 {%- for namespace in namespaces_as_array %} | 18 {%- for namespace in namespaces_as_array %} |
| 17 namespace {{namespace}} { | 19 namespace {{namespace}} { |
| 18 {%- endfor %} | 20 {%- endfor %} |
| 19 | 21 |
| 20 {#--- Wrapper forward declarations #} | 22 {#--- Wrapper forward declarations #} |
| 21 {% for struct in structs %} | 23 {% for struct in structs %} |
| (...skipping 10 matching lines...) Expand all Loading... |
| 32 {%- endfor %} | 34 {%- endfor %} |
| 33 | 35 |
| 34 #pragma pack(pop) | 36 #pragma pack(pop) |
| 35 | 37 |
| 36 } // namespace internal | 38 } // namespace internal |
| 37 {%- for namespace in namespaces_as_array|reverse %} | 39 {%- for namespace in namespaces_as_array|reverse %} |
| 38 } // namespace {{namespace}} | 40 } // namespace {{namespace}} |
| 39 {%- endfor %} | 41 {%- endfor %} |
| 40 | 42 |
| 41 #endif // {{header_guard}} | 43 #endif // {{header_guard}} |
| OLD | NEW |