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

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

Issue 1518293002: [mojo] Add Mojo bindings support for IPC::ParamTraits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pickle4
Patch Set: Created 5 years 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_suffix = "-%s"|format(variant) -%} 6 {%- set variant_suffix = "-%s"|format(variant) -%}
7 {%- else -%} 7 {%- else -%}
8 {%- set variant_suffix = "" -%} 8 {%- set variant_suffix = "" -%}
9 {%- endif %} 9 {%- endif %}
10 10
(...skipping 12 matching lines...) Expand all
23 #include "mojo/public/cpp/bindings/callback.h" 23 #include "mojo/public/cpp/bindings/callback.h"
24 #include "mojo/public/cpp/bindings/interface_ptr.h" 24 #include "mojo/public/cpp/bindings/interface_ptr.h"
25 #include "mojo/public/cpp/bindings/interface_request.h" 25 #include "mojo/public/cpp/bindings/interface_request.h"
26 #include "mojo/public/cpp/bindings/lib/control_message_handler.h" 26 #include "mojo/public/cpp/bindings/lib/control_message_handler.h"
27 #include "mojo/public/cpp/bindings/lib/control_message_proxy.h" 27 #include "mojo/public/cpp/bindings/lib/control_message_proxy.h"
28 #include "mojo/public/cpp/bindings/map.h" 28 #include "mojo/public/cpp/bindings/map.h"
29 #include "mojo/public/cpp/bindings/message_filter.h" 29 #include "mojo/public/cpp/bindings/message_filter.h"
30 #include "mojo/public/cpp/bindings/no_interface.h" 30 #include "mojo/public/cpp/bindings/no_interface.h"
31 #include "mojo/public/cpp/bindings/string.h" 31 #include "mojo/public/cpp/bindings/string.h"
32 #include "mojo/public/cpp/bindings/struct_ptr.h" 32 #include "mojo/public/cpp/bindings/struct_ptr.h"
33 {%- if variant %}
34 #include "{{module.path}}.h"
35 {%- endif %}
36
33 #include "{{module.path}}{{variant_suffix}}-internal.h" 37 #include "{{module.path}}{{variant_suffix}}-internal.h"
34 {%- for import in imports %} 38 {%- for import in imports %}
35 #include "{{import.module.path}}{{variant_suffix}}.h" 39 #include "{{import.module.path}}{{variant_suffix}}.h"
36 {%- endfor %} 40 {%- endfor %}
37 41
38 {%- for namespace in namespaces_as_array %} 42 {%- for namespace in namespaces_as_array %}
39 namespace {{namespace}} { 43 namespace {{namespace}} {
40 {%- endfor %} 44 {%- endfor %}
41 {% if variant %} 45 {% if variant %}
42 namespace {{variant}} { 46 namespace {{variant}} {
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 {%- endif %} 153 {%- endif %}
150 154
151 {% if variant %} 155 {% if variant %}
152 } // namespace {{variant}} 156 } // namespace {{variant}}
153 {%- endif %} 157 {%- endif %}
154 {%- for namespace in namespaces_as_array|reverse %} 158 {%- for namespace in namespaces_as_array|reverse %}
155 } // namespace {{namespace}} 159 } // namespace {{namespace}}
156 {%- endfor %} 160 {%- endfor %}
157 161
158 #endif // {{header_guard}} 162 #endif // {{header_guard}}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698