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

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

Issue 2215323004: Mojo C++ bindings: inline Get*DataView() methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@85_6_transform
Patch Set: Created 4 years, 4 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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 {% endif %} 267 {% endif %}
268 {%- endfor %} 268 {%- endfor %}
269 269
270 {%- for union in unions %} 270 {%- for union in unions %}
271 {% include "wrapper_union_class_template_definition.tmpl" %} 271 {% include "wrapper_union_class_template_definition.tmpl" %}
272 {%- endfor %} 272 {%- endfor %}
273 273
274 {%- for struct in structs %} 274 {%- for struct in structs %}
275 {%- if not struct|is_native_only_kind %} 275 {%- if not struct|is_native_only_kind %}
276 {% include "wrapper_class_template_definition.tmpl" %} 276 {% include "wrapper_class_template_definition.tmpl" %}
277 {% include "struct_data_view_definition.tmpl" %}
277 {%- endif %} 278 {%- endif %}
278 279
279 {%- if struct.enums %} 280 {%- if struct.enums %}
280 {{namespace_end()}} 281 {{namespace_end()}}
281 namespace std { 282 namespace std {
282 283
283 {%- for enum in struct.enums %} 284 {%- for enum in struct.enums %}
284 {%- if not enum|is_native_only_kind %} 285 {%- if not enum|is_native_only_kind %}
285 {{enum_hash(enum)}} 286 {{enum_hash(enum)}}
286 {%- endif %} 287 {%- endif %}
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 {#--- Union Serialization Helpers -#} 336 {#--- Union Serialization Helpers -#}
336 {% if unions %} 337 {% if unions %}
337 {%- for union in unions %} 338 {%- for union in unions %}
338 {% include "union_serialization_declaration.tmpl" %} 339 {% include "union_serialization_declaration.tmpl" %}
339 {%- endfor %} 340 {%- endfor %}
340 {%- endif %} 341 {%- endif %}
341 342
342 } // namespace mojo 343 } // namespace mojo
343 344
344 #endif // {{header_guard}} 345 #endif // {{header_guard}}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698