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 <math.h> |
| 13 |
12 #include "mojo/public/cpp/bindings/lib/array_serialization.h" | 14 #include "mojo/public/cpp/bindings/lib/array_serialization.h" |
13 #include "mojo/public/cpp/bindings/lib/bindings_serialization.h" | 15 #include "mojo/public/cpp/bindings/lib/bindings_serialization.h" |
14 #include "mojo/public/cpp/bindings/lib/bounds_checker.h" | 16 #include "mojo/public/cpp/bindings/lib/bounds_checker.h" |
15 #include "mojo/public/cpp/bindings/lib/message_builder.h" | 17 #include "mojo/public/cpp/bindings/lib/message_builder.h" |
16 #include "mojo/public/cpp/bindings/lib/string_serialization.h" | 18 #include "mojo/public/cpp/bindings/lib/string_serialization.h" |
17 #include "mojo/public/cpp/bindings/lib/validation_errors.h" | 19 #include "mojo/public/cpp/bindings/lib/validation_errors.h" |
18 | 20 |
19 {%- for namespace in namespaces_as_array %} | 21 {%- for namespace in namespaces_as_array %} |
20 namespace {{namespace}} { | 22 namespace {{namespace}} { |
21 {%- endfor %} | 23 {%- endfor %} |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 {%- include "struct_serialization_definition.tmpl" %} | 79 {%- include "struct_serialization_definition.tmpl" %} |
78 {%- endfor %} | 80 {%- endfor %} |
79 | 81 |
80 {%- for namespace in namespaces_as_array|reverse %} | 82 {%- for namespace in namespaces_as_array|reverse %} |
81 } // namespace {{namespace}} | 83 } // namespace {{namespace}} |
82 {%- endfor %} | 84 {%- endfor %} |
83 | 85 |
84 #if defined(__clang__) | 86 #if defined(__clang__) |
85 #pragma clang diagnostic pop | 87 #pragma clang diagnostic pop |
86 #endif | 88 #endif |
OLD | NEW |