| 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 #elif defined(_MSC_VER) | 8 #elif defined(_MSC_VER) |
| 9 #pragma warning(push) | 9 #pragma warning(push) |
| 10 #pragma warning(disable:4056) | 10 #pragma warning(disable:4056) |
| 11 #pragma warning(disable:4756) | 11 #pragma warning(disable:4756) |
| 12 #endif | 12 #endif |
| 13 | 13 |
| 14 #include "{{module.path}}.h" | 14 #include "{{module.path}}.h" |
| 15 | 15 |
| 16 #include <math.h> | 16 #include <math.h> |
| 17 | 17 |
| 18 #include "mojo/public/cpp/bindings/lib/array_serialization.h" | 18 #include "mojo/public/cpp/bindings/lib/array_serialization.h" |
| 19 #include "mojo/public/cpp/bindings/lib/bindings_serialization.h" | 19 #include "mojo/public/cpp/bindings/lib/bindings_serialization.h" |
| 20 #include "mojo/public/cpp/bindings/lib/bounds_checker.h" | 20 #include "mojo/public/cpp/bindings/lib/bounds_checker.h" |
| 21 #include "mojo/public/cpp/bindings/lib/map_data_internal.h" | 21 #include "mojo/public/cpp/bindings/lib/map_data_internal.h" |
| 22 #include "mojo/public/cpp/bindings/lib/map_serialization.h" | 22 #include "mojo/public/cpp/bindings/lib/map_serialization.h" |
| 23 #include "mojo/public/cpp/bindings/lib/message_builder.h" | 23 #include "mojo/public/cpp/bindings/lib/message_builder.h" |
| 24 #include "mojo/public/cpp/bindings/lib/string_serialization.h" | 24 #include "mojo/public/cpp/bindings/lib/string_serialization.h" |
| 25 #include "mojo/public/cpp/bindings/lib/validate_params.h" | 25 #include "mojo/public/cpp/bindings/lib/validate_params.h" |
| 26 #include "mojo/public/cpp/bindings/lib/validation_errors.h" | 26 #include "mojo/public/cpp/bindings/lib/validation_errors.h" |
| 27 #include "mojo/public/cpp/environment/logging.h" |
| 27 | 28 |
| 28 {%- for namespace in namespaces_as_array %} | 29 {%- for namespace in namespaces_as_array %} |
| 29 namespace {{namespace}} { | 30 namespace {{namespace}} { |
| 30 {%- endfor %} | 31 {%- endfor %} |
| 31 | 32 |
| 32 {#--- Constants #} | 33 {#--- Constants #} |
| 33 {% for constant in module.constants %} | 34 {% for constant in module.constants %} |
| 34 const {{constant.kind|cpp_pod_type}} {{constant.name}} = {{constant|constant_val
ue}}; | 35 const {{constant.kind|cpp_pod_type}} {{constant.name}} = {{constant|constant_val
ue}}; |
| 35 {%- endfor %} | 36 {%- endfor %} |
| 36 | 37 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 | 89 |
| 89 {%- for namespace in namespaces_as_array|reverse %} | 90 {%- for namespace in namespaces_as_array|reverse %} |
| 90 } // namespace {{namespace}} | 91 } // namespace {{namespace}} |
| 91 {%- endfor %} | 92 {%- endfor %} |
| 92 | 93 |
| 93 #if defined(__clang__) | 94 #if defined(__clang__) |
| 94 #pragma clang diagnostic pop | 95 #pragma clang diagnostic pop |
| 95 #elif defined(_MSC_VER) | 96 #elif defined(_MSC_VER) |
| 96 #pragma warning(pop) | 97 #pragma warning(pop) |
| 97 #endif | 98 #endif |
| OLD | NEW |