| 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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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}} |
| OLD | NEW |