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

Side by Side Diff: mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl

Issue 2656583002: Remove unused typemap includes from generated C++ mojo bindings. (Closed)
Patch Set: rebase 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 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 variant -%} 5 {%- if variant -%}
6 {%- set variant_path = "%s-%s"|format(module.path, variant) -%} 6 {%- set variant_path = "%s-%s"|format(module.path, variant) -%}
7 {%- else -%} 7 {%- else -%}
8 {%- set variant_path = module.path -%} 8 {%- set variant_path = module.path -%}
9 {%- endif %} 9 {%- endif %}
10 10
(...skipping 17 matching lines...) Expand all
28 #include "base/trace_event/trace_event.h" 28 #include "base/trace_event/trace_event.h"
29 #include "mojo/public/cpp/bindings/lib/message_builder.h" 29 #include "mojo/public/cpp/bindings/lib/message_builder.h"
30 #include "mojo/public/cpp/bindings/lib/serialization_util.h" 30 #include "mojo/public/cpp/bindings/lib/serialization_util.h"
31 #include "mojo/public/cpp/bindings/lib/validate_params.h" 31 #include "mojo/public/cpp/bindings/lib/validate_params.h"
32 #include "mojo/public/cpp/bindings/lib/validation_context.h" 32 #include "mojo/public/cpp/bindings/lib/validation_context.h"
33 #include "mojo/public/cpp/bindings/lib/validation_errors.h" 33 #include "mojo/public/cpp/bindings/lib/validation_errors.h"
34 #include "mojo/public/interfaces/bindings/interface_control_messages.mojom.h" 34 #include "mojo/public/interfaces/bindings/interface_control_messages.mojom.h"
35 35
36 {%- if for_blink %} 36 {%- if for_blink %}
37 #include "mojo/public/cpp/bindings/lib/wtf_serialization.h" 37 #include "mojo/public/cpp/bindings/lib/wtf_serialization.h"
38 #include "third_party/WebKit/Source/wtf/text/StringHash.h"
38 {%- endif %} 39 {%- endif %}
39 40
40 {%- for header in extra_traits_headers %} 41 {%- for header in extra_traits_headers %}
41 #include "{{header}}" 42 #include {{header}}
42 {%- endfor %} 43 {%- endfor %}
43 44
44 {%- for namespace in namespaces_as_array %} 45 {%- for namespace in namespaces_as_array %}
45 namespace {{namespace}} { 46 namespace {{namespace}} {
46 {%- endfor %} 47 {%- endfor %}
47 {%- if variant %} 48 {%- if variant %}
48 namespace {{variant}} { 49 namespace {{variant}} {
49 {%- endif %} 50 {%- endif %}
50 51
51 {#--- Constants #} 52 {#--- Constants #}
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 {%- include "union_traits_definition.tmpl" %} 103 {%- include "union_traits_definition.tmpl" %}
103 {%- endfor %} 104 {%- endfor %}
104 105
105 } // namespace mojo 106 } // namespace mojo
106 107
107 #if defined(__clang__) 108 #if defined(__clang__)
108 #pragma clang diagnostic pop 109 #pragma clang diagnostic pop
109 #elif defined(_MSC_VER) 110 #elif defined(_MSC_VER)
110 #pragma warning(pop) 111 #pragma warning(pop)
111 #endif 112 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698