| OLD | NEW |
| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 #include "mojo/public/cpp/bindings/map.h" | 70 #include "mojo/public/cpp/bindings/map.h" |
| 71 #include "mojo/public/cpp/bindings/map_data_view.h" | 71 #include "mojo/public/cpp/bindings/map_data_view.h" |
| 72 #include "mojo/public/cpp/bindings/message_filter.h" | 72 #include "mojo/public/cpp/bindings/message_filter.h" |
| 73 #include "mojo/public/cpp/bindings/native_enum.h" | 73 #include "mojo/public/cpp/bindings/native_enum.h" |
| 74 #include "mojo/public/cpp/bindings/native_struct.h" | 74 #include "mojo/public/cpp/bindings/native_struct.h" |
| 75 #include "mojo/public/cpp/bindings/native_struct_data_view.h" | 75 #include "mojo/public/cpp/bindings/native_struct_data_view.h" |
| 76 #include "mojo/public/cpp/bindings/no_interface.h" | 76 #include "mojo/public/cpp/bindings/no_interface.h" |
| 77 #include "mojo/public/cpp/bindings/string_data_view.h" | 77 #include "mojo/public/cpp/bindings/string_data_view.h" |
| 78 #include "mojo/public/cpp/bindings/struct_ptr.h" | 78 #include "mojo/public/cpp/bindings/struct_ptr.h" |
| 79 #include "mojo/public/cpp/bindings/struct_traits.h" | 79 #include "mojo/public/cpp/bindings/struct_traits.h" |
| 80 #include "mojo/public/cpp/bindings/union_traits.h" |
| 80 #include "{{variant_path}}-internal.h" | 81 #include "{{variant_path}}-internal.h" |
| 81 {%- for import in imports %} | 82 {%- for import in imports %} |
| 82 {%- if variant %} | 83 {%- if variant %} |
| 83 #include "{{"%s-%s.h"|format(import.module.path, variant)}}" | 84 #include "{{"%s-%s.h"|format(import.module.path, variant)}}" |
| 84 {%- else %} | 85 {%- else %} |
| 85 #include "{{import.module.path}}.h" | 86 #include "{{import.module.path}}.h" |
| 86 {%- endif %} | 87 {%- endif %} |
| 87 {%- endfor %} | 88 {%- endfor %} |
| 88 {%- if not for_blink %} | 89 {%- if not for_blink %} |
| 89 #include "mojo/public/cpp/bindings/array.h" | 90 #include "mojo/public/cpp/bindings/array.h" |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 | 267 |
| 267 {{namespace_end()}} | 268 {{namespace_end()}} |
| 268 {{data_view_traits(struct)}} | 269 {{data_view_traits(struct)}} |
| 269 {{namespace_begin()}} | 270 {{namespace_begin()}} |
| 270 | 271 |
| 271 {% endif %} | 272 {% endif %} |
| 272 {%- endfor %} | 273 {%- endfor %} |
| 273 | 274 |
| 274 {%- for union in unions %} | 275 {%- for union in unions %} |
| 275 {% include "wrapper_union_class_template_definition.tmpl" %} | 276 {% include "wrapper_union_class_template_definition.tmpl" %} |
| 277 {% include "union_data_view_definition.tmpl" %} |
| 276 {%- endfor %} | 278 {%- endfor %} |
| 277 | 279 |
| 278 {%- for struct in structs %} | 280 {%- for struct in structs %} |
| 279 {%- if not struct|is_native_only_kind %} | 281 {%- if not struct|is_native_only_kind %} |
| 280 {% include "wrapper_class_template_definition.tmpl" %} | 282 {% include "wrapper_class_template_definition.tmpl" %} |
| 281 {% include "struct_data_view_definition.tmpl" %} | 283 {% include "struct_data_view_definition.tmpl" %} |
| 282 {%- endif %} | 284 {%- endif %} |
| 283 | 285 |
| 284 {%- if struct.enums %} | 286 {%- if struct.enums %} |
| 285 {{namespace_end()}} | 287 {{namespace_end()}} |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 {#--- Union Serialization Helpers -#} | 342 {#--- Union Serialization Helpers -#} |
| 341 {% if unions %} | 343 {% if unions %} |
| 342 {%- for union in unions %} | 344 {%- for union in unions %} |
| 343 {% include "union_serialization_declaration.tmpl" %} | 345 {% include "union_serialization_declaration.tmpl" %} |
| 344 {%- endfor %} | 346 {%- endfor %} |
| 345 {%- endif %} | 347 {%- endif %} |
| 346 | 348 |
| 347 } // namespace mojo | 349 } // namespace mojo |
| 348 | 350 |
| 349 #endif // {{header_guard}} | 351 #endif // {{header_guard}} |
| OLD | NEW |