| 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 11 matching lines...) Expand all Loading... |
| 22 #include "mojo/public/cpp/bindings/struct_ptr.h" | 22 #include "mojo/public/cpp/bindings/struct_ptr.h" |
| 23 | 23 |
| 24 {%- for import in imports %} | 24 {%- for import in imports %} |
| 25 {%- if variant %} | 25 {%- if variant %} |
| 26 #include "{{"%s-%s-internal.h"|format(import.module.path, variant)}}" | 26 #include "{{"%s-%s-internal.h"|format(import.module.path, variant)}}" |
| 27 {%- else %} | 27 {%- else %} |
| 28 #include "{{import.module.path}}-internal.h" | 28 #include "{{import.module.path}}-internal.h" |
| 29 {%- endif %} | 29 {%- endif %} |
| 30 {%- endfor %} | 30 {%- endfor %} |
| 31 | 31 |
| 32 {%- if export_header %} |
| 33 #include "{{export_header}}" |
| 34 {%- endif %} |
| 35 |
| 32 namespace mojo { | 36 namespace mojo { |
| 33 namespace internal { | 37 namespace internal { |
| 34 class ValidationContext; | 38 class ValidationContext; |
| 35 } | 39 } |
| 36 } | 40 } |
| 37 | 41 |
| 38 {%- for namespace in namespaces_as_array %} | 42 {%- for namespace in namespaces_as_array %} |
| 39 namespace {{namespace}} { | 43 namespace {{namespace}} { |
| 40 {%- endfor %} | 44 {%- endfor %} |
| 41 {%- if variant %} | 45 {%- if variant %} |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 | 121 |
| 118 } // namespace internal | 122 } // namespace internal |
| 119 {%- if variant %} | 123 {%- if variant %} |
| 120 } // namespace {{variant}} | 124 } // namespace {{variant}} |
| 121 {%- endif %} | 125 {%- endif %} |
| 122 {%- for namespace in namespaces_as_array|reverse %} | 126 {%- for namespace in namespaces_as_array|reverse %} |
| 123 } // namespace {{namespace}} | 127 } // namespace {{namespace}} |
| 124 {%- endfor %} | 128 {%- endfor %} |
| 125 | 129 |
| 126 #endif // {{header_guard}} | 130 #endif // {{header_guard}} |
| OLD | NEW |