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 defined(__clang__) | 5 #if defined(__clang__) |
6 #pragma clang diagnostic push | 6 #pragma clang diagnostic push |
7 #pragma clang diagnostic ignored "-Wunused-private-field" | 7 #pragma clang diagnostic ignored "-Wunused-private-field" |
8 #endif | 8 #endif |
9 | 9 |
10 #include "{{module.path}}.h" | 10 #include "{{module.path}}.h" |
11 | 11 |
12 #include "mojo/public/cpp/bindings/lib/bindings_serialization.h" | 12 #include "mojo/public/cpp/bindings/lib/bindings_serialization.h" |
| 13 #include "mojo/public/cpp/bindings/lib/bounds_checker.h" |
13 #include "mojo/public/cpp/bindings/lib/message_builder.h" | 14 #include "mojo/public/cpp/bindings/lib/message_builder.h" |
14 | 15 |
15 {%- for namespace in namespaces_as_array %} | 16 {%- for namespace in namespaces_as_array %} |
16 namespace {{namespace}} { | 17 namespace {{namespace}} { |
17 {%- endfor %} | 18 {%- endfor %} |
18 | 19 |
19 {#--- Constants #} | 20 {#--- Constants #} |
20 {% for constant in module.constants %} | 21 {% for constant in module.constants %} |
21 const {{constant.kind|cpp_pod_type}} {{constant.name}} = {{constant.value|expres
sion_to_text(module)}}; | 22 const {{constant.kind|cpp_pod_type}} {{constant.name}} = {{constant.value|expres
sion_to_text(module)}}; |
22 {%- endfor %} | 23 {%- endfor %} |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 {%- for interface in interfaces %} | 73 {%- for interface in interfaces %} |
73 {%- include "interface_definition.tmpl" %} | 74 {%- include "interface_definition.tmpl" %} |
74 {%- endfor %} | 75 {%- endfor %} |
75 {%- for namespace in namespaces_as_array|reverse %} | 76 {%- for namespace in namespaces_as_array|reverse %} |
76 } // namespace {{namespace}} | 77 } // namespace {{namespace}} |
77 {%- endfor %} | 78 {%- endfor %} |
78 | 79 |
79 #if defined(__clang__) | 80 #if defined(__clang__) |
80 #pragma clang diagnostic pop | 81 #pragma clang diagnostic pop |
81 #endif | 82 #endif |
OLD | NEW |