| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 {%- else %} | 122 {%- else %} |
| 123 const {{constant.kind|cpp_pod_type}} {{struct.name}}::{{constant.name}} = {{cons
tant|constant_value}}; | 123 const {{constant.kind|cpp_pod_type}} {{struct.name}}::{{constant.name}} = {{cons
tant|constant_value}}; |
| 124 {%- endif %} | 124 {%- endif %} |
| 125 {%- endfor %} | 125 {%- endfor %} |
| 126 {%- endfor %} | 126 {%- endfor %} |
| 127 | 127 |
| 128 {#--- Struct builder definitions #} | 128 {#--- Struct builder definitions #} |
| 129 {%- for struct in structs %} | 129 {%- for struct in structs %} |
| 130 {%- if not struct|is_native_only_kind %} | 130 {%- if not struct|is_native_only_kind %} |
| 131 {%- include "wrapper_class_definition.tmpl" %} | 131 {%- include "wrapper_class_definition.tmpl" %} |
| 132 {%- include "struct_data_view_definition.tmpl" %} | |
| 133 {%- endif %} | 132 {%- endif %} |
| 134 {%- endfor %} | 133 {%- endfor %} |
| 135 | 134 |
| 136 {#--- Union builder definitions #} | 135 {#--- Union builder definitions #} |
| 137 {%- for union in unions %} | 136 {%- for union in unions %} |
| 138 {%- include "wrapper_union_class_definition.tmpl" %} | 137 {%- include "wrapper_union_class_definition.tmpl" %} |
| 139 {%- endfor %} | 138 {%- endfor %} |
| 140 | 139 |
| 141 {#--- Interface definitions #} | 140 {#--- Interface definitions #} |
| 142 {%- for interface in interfaces %} | 141 {%- for interface in interfaces %} |
| (...skipping 22 matching lines...) Expand all Loading... |
| 165 {%- endfor %} | 164 {%- endfor %} |
| 166 | 165 |
| 167 } // namespace mojo | 166 } // namespace mojo |
| 168 | 167 |
| 169 | 168 |
| 170 #if defined(__clang__) | 169 #if defined(__clang__) |
| 171 #pragma clang diagnostic pop | 170 #pragma clang diagnostic pop |
| 172 #elif defined(_MSC_VER) | 171 #elif defined(_MSC_VER) |
| 173 #pragma warning(pop) | 172 #pragma warning(pop) |
| 174 #endif | 173 #endif |
| OLD | NEW |