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_H_"| | 5 {%- set header_guard = "%s_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/array.h" | 11 #include "mojo/public/cpp/bindings/array.h" |
12 #include "mojo/public/cpp/bindings/callback.h" | 12 #include "mojo/public/cpp/bindings/callback.h" |
13 #include "mojo/public/cpp/bindings/interface_impl.h" | 13 #include "mojo/public/cpp/bindings/interface_impl.h" |
14 #include "mojo/public/cpp/bindings/interface_ptr.h" | 14 #include "mojo/public/cpp/bindings/interface_ptr.h" |
15 #include "mojo/public/cpp/bindings/interface_request.h" | 15 #include "mojo/public/cpp/bindings/interface_request.h" |
| 16 #include "mojo/public/cpp/bindings/map.h" |
16 #include "mojo/public/cpp/bindings/message_filter.h" | 17 #include "mojo/public/cpp/bindings/message_filter.h" |
17 #include "mojo/public/cpp/bindings/no_interface.h" | 18 #include "mojo/public/cpp/bindings/no_interface.h" |
18 #include "mojo/public/cpp/bindings/string.h" | 19 #include "mojo/public/cpp/bindings/string.h" |
19 #include "mojo/public/cpp/bindings/struct_ptr.h" | 20 #include "mojo/public/cpp/bindings/struct_ptr.h" |
20 #include "{{module.path}}-internal.h" | 21 #include "{{module.path}}-internal.h" |
21 {%- for import in imports %} | 22 {%- for import in imports %} |
22 #include "{{import.module.path}}.h" | 23 #include "{{import.module.path}}.h" |
23 {%- endfor %} | 24 {%- endfor %} |
24 | 25 |
25 {%- for namespace in namespaces_as_array %} | 26 {%- for namespace in namespaces_as_array %} |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 {% for struct in structs %} | 100 {% for struct in structs %} |
100 {% include "struct_serialization_declaration.tmpl" %} | 101 {% include "struct_serialization_declaration.tmpl" %} |
101 {%- endfor %} | 102 {%- endfor %} |
102 {%- endif %} | 103 {%- endif %} |
103 | 104 |
104 {%- for namespace in namespaces_as_array|reverse %} | 105 {%- for namespace in namespaces_as_array|reverse %} |
105 } // namespace {{namespace}} | 106 } // namespace {{namespace}} |
106 {%- endfor %} | 107 {%- endfor %} |
107 | 108 |
108 #endif // {{header_guard}} | 109 #endif // {{header_guard}} |
OLD | NEW |