Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1783)

Side by Side Diff: mojo/public/tools/bindings/generators/cpp_templates/module-shared.h.tmpl

Issue 2656583002: Remove unused typemap includes from generated C++ mojo bindings. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 20 matching lines...) Expand all
31 } // namespace {{namespace}} 31 } // namespace {{namespace}}
32 {%- endfor %} 32 {%- endfor %}
33 {%- endmacro %} 33 {%- endmacro %}
34 34
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>
42 #include <type_traits> 41 #include <type_traits>
43 #include <utility> 42 #include <utility>
44 43
45 #include "base/compiler_specific.h" 44 #include "base/compiler_specific.h"
46 #include "mojo/public/cpp/bindings/array_data_view.h"
47 #include "mojo/public/cpp/bindings/enum_traits.h"
48 #include "mojo/public/cpp/bindings/interface_data_view.h"
49 #include "mojo/public/cpp/bindings/lib/bindings_internal.h" 45 #include "mojo/public/cpp/bindings/lib/bindings_internal.h"
50 #include "mojo/public/cpp/bindings/lib/serialization.h" 46 #include "mojo/public/cpp/bindings/lib/serialization.h"
51 #include "mojo/public/cpp/bindings/map_data_view.h" 47 {%- for header in public_shared_headers %}
52 #include "mojo/public/cpp/bindings/native_enum.h" 48 #include {{header}}
53 #include "mojo/public/cpp/bindings/native_struct_data_view.h" 49 {%- endfor %}
54 #include "mojo/public/cpp/bindings/string_data_view.h"
55 #include "{{module.path}}-shared-internal.h" 50 #include "{{module.path}}-shared-internal.h"
56 {%- for import in imports %} 51 {%- for import in imports %}
57 #include "{{import.module.path}}-shared.h" 52 #include "{{import.module.path}}-shared.h"
58 {%- endfor %} 53 {%- endfor %}
59
60 {{namespace_begin()}} 54 {{namespace_begin()}}
61 55
62 {#--- Struct Forward Declarations -#} 56 {#--- Struct Forward Declarations -#}
63 {%- for struct in structs %} 57 {%- for struct in structs %}
64 {%- if struct|is_native_only_kind %} 58 {%- if struct|is_native_only_kind %}
65 using {{struct.name}}DataView = mojo::NativeStructDataView; 59 using {{struct.name}}DataView = mojo::NativeStructDataView;
66 {%- else %} 60 {%- else %}
67 class {{struct.name}}DataView; 61 class {{struct.name}}DataView;
68 {%- endif %} 62 {%- endif %}
69 {% endfor %} 63 {% endfor %}
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 {%- endfor %} 197 {%- endfor %}
204 198
205 {%- for union in unions %} 199 {%- for union in unions %}
206 {% include "union_data_view_definition.tmpl" %} 200 {% include "union_data_view_definition.tmpl" %}
207 {%- endfor %} 201 {%- endfor %}
208 202
209 {{namespace_end()}} 203 {{namespace_end()}}
210 204
211 #endif // {{header_guard}} 205 #endif // {{header_guard}}
212 206
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698