| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 {%- set header_guard = "%s_SHARED_H_"|format( | 5 {%- set header_guard = "%s_SHARED_H_"|format( |
| 6 module.path|upper|replace("/","_")|replace(".","_")| | 6 module.path|upper|replace("/","_")|replace(".","_")| |
| 7 replace("-", "_")) %} | 7 replace("-", "_")) %} |
| 8 | 8 |
| 9 {%- macro mojom_type_traits(kind) %} | 9 {%- macro mojom_type_traits(kind) %} |
| 10 template <> | 10 template <> |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 #ifndef {{header_guard}} | 35 #ifndef {{header_guard}} |
| 36 #define {{header_guard}} | 36 #define {{header_guard}} |
| 37 | 37 |
| 38 #include <stdint.h> | 38 #include <stdint.h> |
| 39 | 39 |
| 40 #include <functional> | 40 #include <functional> |
| 41 #include <ostream> | 41 #include <ostream> |
| 42 #include <type_traits> | 42 #include <type_traits> |
| 43 #include <utility> | 43 #include <utility> |
| 44 | 44 |
| 45 #include "base/compiler_specific.h" |
| 45 #include "mojo/public/cpp/bindings/array_data_view.h" | 46 #include "mojo/public/cpp/bindings/array_data_view.h" |
| 46 #include "mojo/public/cpp/bindings/enum_traits.h" | 47 #include "mojo/public/cpp/bindings/enum_traits.h" |
| 47 #include "mojo/public/cpp/bindings/interface_data_view.h" | 48 #include "mojo/public/cpp/bindings/interface_data_view.h" |
| 48 #include "mojo/public/cpp/bindings/lib/bindings_internal.h" | 49 #include "mojo/public/cpp/bindings/lib/bindings_internal.h" |
| 49 #include "mojo/public/cpp/bindings/lib/serialization.h" | 50 #include "mojo/public/cpp/bindings/lib/serialization.h" |
| 50 #include "mojo/public/cpp/bindings/map_data_view.h" | 51 #include "mojo/public/cpp/bindings/map_data_view.h" |
| 51 #include "mojo/public/cpp/bindings/native_enum.h" | 52 #include "mojo/public/cpp/bindings/native_enum.h" |
| 52 #include "mojo/public/cpp/bindings/native_struct_data_view.h" | 53 #include "mojo/public/cpp/bindings/native_struct_data_view.h" |
| 53 #include "mojo/public/cpp/bindings/string_data_view.h" | 54 #include "mojo/public/cpp/bindings/string_data_view.h" |
| 54 #include "{{module.path}}-shared-internal.h" | 55 #include "{{module.path}}-shared-internal.h" |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 {%- endfor %} | 203 {%- endfor %} |
| 203 | 204 |
| 204 {%- for union in unions %} | 205 {%- for union in unions %} |
| 205 {% include "union_data_view_definition.tmpl" %} | 206 {% include "union_data_view_definition.tmpl" %} |
| 206 {%- endfor %} | 207 {%- endfor %} |
| 207 | 208 |
| 208 {{namespace_end()}} | 209 {{namespace_end()}} |
| 209 | 210 |
| 210 #endif // {{header_guard}} | 211 #endif // {{header_guard}} |
| 211 | 212 |
| OLD | NEW |