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 <stdint.h> | 11 #include <stdint.h> |
12 | 12 |
13 #include "third_party/mojo/src/mojo/public/cpp/bindings/array.h" | 13 #include "mojo/public/cpp/bindings/array.h" |
14 #include "third_party/mojo/src/mojo/public/cpp/bindings/associated_interface_ptr
_info.h" | 14 #include "mojo/public/cpp/bindings/associated_interface_ptr_info.h" |
15 #include "third_party/mojo/src/mojo/public/cpp/bindings/associated_interface_req
uest.h" | 15 #include "mojo/public/cpp/bindings/associated_interface_request.h" |
16 #include "third_party/mojo/src/mojo/public/cpp/bindings/callback.h" | 16 #include "mojo/public/cpp/bindings/callback.h" |
17 #include "third_party/mojo/src/mojo/public/cpp/bindings/interface_ptr.h" | 17 #include "mojo/public/cpp/bindings/interface_ptr.h" |
18 #include "third_party/mojo/src/mojo/public/cpp/bindings/interface_request.h" | 18 #include "mojo/public/cpp/bindings/interface_request.h" |
19 #include "third_party/mojo/src/mojo/public/cpp/bindings/lib/control_message_hand
ler.h" | 19 #include "mojo/public/cpp/bindings/lib/control_message_handler.h" |
20 #include "third_party/mojo/src/mojo/public/cpp/bindings/lib/control_message_prox
y.h" | 20 #include "mojo/public/cpp/bindings/lib/control_message_proxy.h" |
21 #include "third_party/mojo/src/mojo/public/cpp/bindings/map.h" | 21 #include "mojo/public/cpp/bindings/map.h" |
22 #include "third_party/mojo/src/mojo/public/cpp/bindings/message_filter.h" | 22 #include "mojo/public/cpp/bindings/message_filter.h" |
23 #include "third_party/mojo/src/mojo/public/cpp/bindings/no_interface.h" | 23 #include "mojo/public/cpp/bindings/no_interface.h" |
24 #include "third_party/mojo/src/mojo/public/cpp/bindings/string.h" | 24 #include "mojo/public/cpp/bindings/string.h" |
25 #include "third_party/mojo/src/mojo/public/cpp/bindings/struct_ptr.h" | 25 #include "mojo/public/cpp/bindings/struct_ptr.h" |
26 #include "{{module.path}}-internal.h" | 26 #include "{{module.path}}-internal.h" |
27 {%- for import in imports %} | 27 {%- for import in imports %} |
28 #include "{{import.module.path}}.h" | 28 #include "{{import.module.path}}.h" |
29 {%- endfor %} | 29 {%- endfor %} |
30 | 30 |
31 {%- for namespace in namespaces_as_array %} | 31 {%- for namespace in namespaces_as_array %} |
32 namespace {{namespace}} { | 32 namespace {{namespace}} { |
33 {%- endfor %} | 33 {%- endfor %} |
34 | 34 |
35 {#--- Enums #} | 35 {#--- Enums #} |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 {% for union in unions %} | 135 {% for union in unions %} |
136 {% include "union_serialization_declaration.tmpl" %} | 136 {% include "union_serialization_declaration.tmpl" %} |
137 {%- endfor %} | 137 {%- endfor %} |
138 {%- endif %} | 138 {%- endif %} |
139 | 139 |
140 {%- for namespace in namespaces_as_array|reverse %} | 140 {%- for namespace in namespaces_as_array|reverse %} |
141 } // namespace {{namespace}} | 141 } // namespace {{namespace}} |
142 {%- endfor %} | 142 {%- endfor %} |
143 | 143 |
144 #endif // {{header_guard}} | 144 #endif // {{header_guard}} |
OLD | NEW |