| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 mojo::AssociatedInterfaceRequest<{{interface.name}}>; | 118 mojo::AssociatedInterfaceRequest<{{interface.name}}>; |
| 119 {% endfor %} | 119 {% endfor %} |
| 120 | 120 |
| 121 {#--- Struct Forward Declarations -#} | 121 {#--- Struct Forward Declarations -#} |
| 122 {% for struct in structs %} | 122 {% for struct in structs %} |
| 123 {%- if struct|is_native_only_kind %} | 123 {%- if struct|is_native_only_kind %} |
| 124 using {{struct.name}} = mojo::NativeStruct; | 124 using {{struct.name}} = mojo::NativeStruct; |
| 125 using {{struct.name}}Ptr = mojo::NativeStructPtr; | 125 using {{struct.name}}Ptr = mojo::NativeStructPtr; |
| 126 {%- else %} | 126 {%- else %} |
| 127 class {{struct.name}}; | 127 class {{struct.name}}; |
| 128 class {{struct.name}}_Reader; | |
| 129 class {{struct.name}}DataView; | 128 class {{struct.name}}DataView; |
| 130 {%- if struct|should_inline %} | 129 {%- if struct|should_inline %} |
| 131 using {{struct.name}}Ptr = mojo::InlinedStructPtr<{{struct.name}}>; | 130 using {{struct.name}}Ptr = mojo::InlinedStructPtr<{{struct.name}}>; |
| 132 {%- else %} | 131 {%- else %} |
| 133 using {{struct.name}}Ptr = mojo::StructPtr<{{struct.name}}>; | 132 using {{struct.name}}Ptr = mojo::StructPtr<{{struct.name}}>; |
| 134 {%- endif %} | 133 {%- endif %} |
| 135 {%- endif %} | 134 {%- endif %} |
| 136 {% endfor %} | 135 {% endfor %} |
| 137 | 136 |
| 138 {#--- Union Forward Declarations -#} | 137 {#--- Union Forward Declarations -#} |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 {#--- Union Serialization Helpers -#} | 227 {#--- Union Serialization Helpers -#} |
| 229 {% if unions %} | 228 {% if unions %} |
| 230 {%- for union in unions %} | 229 {%- for union in unions %} |
| 231 {% include "union_serialization_declaration.tmpl" %} | 230 {% include "union_serialization_declaration.tmpl" %} |
| 232 {%- endfor %} | 231 {%- endfor %} |
| 233 {%- endif %} | 232 {%- endif %} |
| 234 | 233 |
| 235 } // namespace mojo | 234 } // namespace mojo |
| 236 | 235 |
| 237 #endif // {{header_guard}} | 236 #endif // {{header_guard}} |
| OLD | NEW |