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 {%- if variant -%} | 5 {%- if variant -%} |
6 {%- set variant_path = "%s-%s"|format(module.path, variant) -%} | 6 {%- set variant_path = "%s-%s"|format(module.path, variant) -%} |
7 {%- else -%} | 7 {%- else -%} |
8 {%- set variant_path = module.path -%} | 8 {%- set variant_path = module.path -%} |
9 {%- endif %} | 9 {%- endif %} |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
33 #include "mojo/public/cpp/bindings/lib/message_builder.h" | 33 #include "mojo/public/cpp/bindings/lib/message_builder.h" |
34 #include "mojo/public/cpp/bindings/lib/validate_params.h" | 34 #include "mojo/public/cpp/bindings/lib/validate_params.h" |
35 #include "mojo/public/cpp/bindings/lib/validation_errors.h" | 35 #include "mojo/public/cpp/bindings/lib/validation_errors.h" |
36 #include "mojo/public/cpp/bindings/lib/validation_util.h" | 36 #include "mojo/public/cpp/bindings/lib/validation_util.h" |
37 #include "mojo/public/interfaces/bindings/interface_control_messages.mojom.h" | 37 #include "mojo/public/interfaces/bindings/interface_control_messages.mojom.h" |
38 | 38 |
39 {%- if for_blink %} | 39 {%- if for_blink %} |
40 #include "mojo/public/cpp/bindings/lib/wtf_serialization.h" | 40 #include "mojo/public/cpp/bindings/lib/wtf_serialization.h" |
41 {%- endif %} | 41 {%- endif %} |
42 | 42 |
| 43 {%- for header in extra_traits_headers %} |
| 44 #include "{{header}}" |
| 45 {%- endfor %} |
| 46 |
43 {%- for namespace in namespaces_as_array %} | 47 {%- for namespace in namespaces_as_array %} |
44 namespace {{namespace}} { | 48 namespace {{namespace}} { |
45 {%- endfor %} | 49 {%- endfor %} |
46 {%- if variant %} | 50 {%- if variant %} |
47 namespace {{variant}} { | 51 namespace {{variant}} { |
48 {%- endif %} | 52 {%- endif %} |
49 | 53 |
50 {#--- Constants #} | 54 {#--- Constants #} |
51 {%- for constant in module.constants %} | 55 {%- for constant in module.constants %} |
52 {%- if not constant.kind|is_integral_kind %} | 56 {%- if not constant.kind|is_integral_kind %} |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 {%- endif %} | 136 {%- endif %} |
133 {%- for namespace in namespaces_as_array|reverse %} | 137 {%- for namespace in namespaces_as_array|reverse %} |
134 } // namespace {{namespace}} | 138 } // namespace {{namespace}} |
135 {%- endfor %} | 139 {%- endfor %} |
136 | 140 |
137 #if defined(__clang__) | 141 #if defined(__clang__) |
138 #pragma clang diagnostic pop | 142 #pragma clang diagnostic pop |
139 #elif defined(_MSC_VER) | 143 #elif defined(_MSC_VER) |
140 #pragma warning(pop) | 144 #pragma warning(pop) |
141 #endif | 145 #endif |
OLD | NEW |