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

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

Issue 2403533003: Mojo C++ Bindings: Support custom impl ref types (Closed)
Patch Set: nit, move Created 4 years, 2 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
« no previous file with comments | « mojo/public/tools/bindings/generators/cpp_templates/interface_stub_declaration.tmpl ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 #include "mojo/public/cpp/bindings/associated_interface_request.h" 45 #include "mojo/public/cpp/bindings/associated_interface_request.h"
46 #include "mojo/public/cpp/bindings/interface_ptr.h" 46 #include "mojo/public/cpp/bindings/interface_ptr.h"
47 #include "mojo/public/cpp/bindings/interface_request.h" 47 #include "mojo/public/cpp/bindings/interface_request.h"
48 #include "mojo/public/cpp/bindings/lib/control_message_handler.h" 48 #include "mojo/public/cpp/bindings/lib/control_message_handler.h"
49 #include "mojo/public/cpp/bindings/lib/control_message_proxy.h" 49 #include "mojo/public/cpp/bindings/lib/control_message_proxy.h"
50 #include "mojo/public/cpp/bindings/lib/serialization.h" 50 #include "mojo/public/cpp/bindings/lib/serialization.h"
51 #include "mojo/public/cpp/bindings/lib/union_accessor.h" 51 #include "mojo/public/cpp/bindings/lib/union_accessor.h"
52 #include "mojo/public/cpp/bindings/map.h" 52 #include "mojo/public/cpp/bindings/map.h"
53 #include "mojo/public/cpp/bindings/native_struct.h" 53 #include "mojo/public/cpp/bindings/native_struct.h"
54 #include "mojo/public/cpp/bindings/no_interface.h" 54 #include "mojo/public/cpp/bindings/no_interface.h"
55 #include "mojo/public/cpp/bindings/raw_ptr_impl_ref_traits.h"
55 #include "mojo/public/cpp/bindings/struct_ptr.h" 56 #include "mojo/public/cpp/bindings/struct_ptr.h"
56 #include "mojo/public/cpp/bindings/struct_traits.h" 57 #include "mojo/public/cpp/bindings/struct_traits.h"
57 #include "mojo/public/cpp/bindings/union_traits.h" 58 #include "mojo/public/cpp/bindings/union_traits.h"
58 #include "{{module.path}}-shared.h" 59 #include "{{module.path}}-shared.h"
59 {%- for import in imports %} 60 {%- for import in imports %}
60 {%- if variant %} 61 {%- if variant %}
61 #include "{{"%s-%s.h"|format(import.module.path, variant)}}" 62 #include "{{"%s-%s.h"|format(import.module.path, variant)}}"
62 {%- else %} 63 {%- else %}
63 #include "{{import.module.path}}.h" 64 #include "{{import.module.path}}.h"
64 {%- endif %} 65 {%- endif %}
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 {#--- Union Serialization Helpers -#} 218 {#--- Union Serialization Helpers -#}
218 {% if unions %} 219 {% if unions %}
219 {%- for union in unions %} 220 {%- for union in unions %}
220 {% include "union_traits_declaration.tmpl" %} 221 {% include "union_traits_declaration.tmpl" %}
221 {%- endfor %} 222 {%- endfor %}
222 {%- endif %} 223 {%- endif %}
223 224
224 } // namespace mojo 225 } // namespace mojo
225 226
226 #endif // {{header_guard}} 227 #endif // {{header_guard}}
OLDNEW
« no previous file with comments | « mojo/public/tools/bindings/generators/cpp_templates/interface_stub_declaration.tmpl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698