| 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:4065) | 11 #pragma warning(disable:4065) |
| 12 #pragma warning(disable:4756) | 12 #pragma warning(disable:4756) |
| 13 #endif | 13 #endif |
| 14 | 14 |
| 15 #include "{{module.path}}.h" | 15 #include "{{module.path}}.h" |
| 16 | 16 |
| 17 #include <math.h> | 17 #include <math.h> |
| 18 | 18 |
| 19 #include "base/trace_event/trace_event.h" | 19 #include "base/trace_event/trace_event.h" |
| 20 #include "third_party/mojo/src/mojo/public/cpp/bindings/lib/array_serialization.
h" | 20 #include "mojo/public/cpp/bindings/lib/array_serialization.h" |
| 21 #include "third_party/mojo/src/mojo/public/cpp/bindings/lib/bindings_serializati
on.h" | 21 #include "mojo/public/cpp/bindings/lib/bindings_serialization.h" |
| 22 #include "third_party/mojo/src/mojo/public/cpp/bindings/lib/bounds_checker.h" | 22 #include "mojo/public/cpp/bindings/lib/bounds_checker.h" |
| 23 #include "third_party/mojo/src/mojo/public/cpp/bindings/lib/map_data_internal.h" | 23 #include "mojo/public/cpp/bindings/lib/map_data_internal.h" |
| 24 #include "third_party/mojo/src/mojo/public/cpp/bindings/lib/map_serialization.h" | 24 #include "mojo/public/cpp/bindings/lib/map_serialization.h" |
| 25 #include "third_party/mojo/src/mojo/public/cpp/bindings/lib/message_builder.h" | 25 #include "mojo/public/cpp/bindings/lib/message_builder.h" |
| 26 #include "third_party/mojo/src/mojo/public/cpp/bindings/lib/string_serialization
.h" | 26 #include "mojo/public/cpp/bindings/lib/string_serialization.h" |
| 27 #include "third_party/mojo/src/mojo/public/cpp/bindings/lib/validate_params.h" | 27 #include "mojo/public/cpp/bindings/lib/validate_params.h" |
| 28 #include "third_party/mojo/src/mojo/public/cpp/bindings/lib/validation_errors.h" | 28 #include "mojo/public/cpp/bindings/lib/validation_errors.h" |
| 29 #include "third_party/mojo/src/mojo/public/cpp/bindings/lib/validation_util.h" | 29 #include "mojo/public/cpp/bindings/lib/validation_util.h" |
| 30 #include "third_party/mojo/src/mojo/public/cpp/environment/lib/scoped_task_track
ing.h" | 30 #include "mojo/public/cpp/environment/lib/scoped_task_tracking.h" |
| 31 #include "third_party/mojo/src/mojo/public/cpp/environment/logging.h" | 31 #include "mojo/public/cpp/environment/logging.h" |
| 32 #include "third_party/mojo/src/mojo/public/interfaces/bindings/interface_control
_messages.mojom.h" | 32 #include "mojo/public/interfaces/bindings/interface_control_messages.mojom.h" |
| 33 | 33 |
| 34 {%- for namespace in namespaces_as_array %} | 34 {%- for namespace in namespaces_as_array %} |
| 35 namespace {{namespace}} { | 35 namespace {{namespace}} { |
| 36 {%- endfor %} | 36 {%- endfor %} |
| 37 | 37 |
| 38 {#--- Constants #} | 38 {#--- Constants #} |
| 39 {%- for constant in module.constants %} | 39 {%- for constant in module.constants %} |
| 40 {%- if not constant.kind|is_integral_kind %} | 40 {%- if not constant.kind|is_integral_kind %} |
| 41 const {{constant.kind|cpp_pod_type}} {{constant.name}} = {{constant|constant_val
ue}}; | 41 const {{constant.kind|cpp_pod_type}} {{constant.name}} = {{constant|constant_val
ue}}; |
| 42 {%- endif %} | 42 {%- endif %} |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 | 123 |
| 124 {%- for namespace in namespaces_as_array|reverse %} | 124 {%- for namespace in namespaces_as_array|reverse %} |
| 125 } // namespace {{namespace}} | 125 } // namespace {{namespace}} |
| 126 {%- endfor %} | 126 {%- endfor %} |
| 127 | 127 |
| 128 #if defined(__clang__) | 128 #if defined(__clang__) |
| 129 #pragma clang diagnostic pop | 129 #pragma clang diagnostic pop |
| 130 #elif defined(_MSC_VER) | 130 #elif defined(_MSC_VER) |
| 131 #pragma warning(pop) | 131 #pragma warning(pop) |
| 132 #endif | 132 #endif |
| OLD | NEW |