| 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 17 matching lines...) Expand all Loading... |
| 28 #include "mojo/public/cpp/bindings/lib/control_message_proxy.h" | 28 #include "mojo/public/cpp/bindings/lib/control_message_proxy.h" |
| 29 #include "mojo/public/cpp/bindings/map.h" | 29 #include "mojo/public/cpp/bindings/map.h" |
| 30 #include "mojo/public/cpp/bindings/message_filter.h" | 30 #include "mojo/public/cpp/bindings/message_filter.h" |
| 31 #include "mojo/public/cpp/bindings/no_interface.h" | 31 #include "mojo/public/cpp/bindings/no_interface.h" |
| 32 #include "mojo/public/cpp/bindings/string.h" | 32 #include "mojo/public/cpp/bindings/string.h" |
| 33 #include "mojo/public/cpp/bindings/struct_ptr.h" | 33 #include "mojo/public/cpp/bindings/struct_ptr.h" |
| 34 #include "{{variant_path}}-internal.h" | 34 #include "{{variant_path}}-internal.h" |
| 35 {%- for import in imports %} | 35 {%- for import in imports %} |
| 36 #include "{{import.module.path}}.h" | 36 #include "{{import.module.path}}.h" |
| 37 {%- endfor %} | 37 {%- endfor %} |
| 38 {%- if variant %} |
| 39 #include "{{module.path}}.h" |
| 40 {%- endif %} |
| 38 | 41 |
| 39 {%- for namespace in namespaces_as_array %} | 42 {%- for namespace in namespaces_as_array %} |
| 40 namespace {{namespace}} { | 43 namespace {{namespace}} { |
| 41 {%- endfor %} | 44 {%- endfor %} |
| 42 {%- if variant %} | 45 {%- if variant %} |
| 43 namespace {{variant}} { | 46 namespace {{variant}} { |
| 44 {%- endif %} | 47 {%- endif %} |
| 45 | 48 |
| 46 {#--- Enums #} | 49 {#--- Enums #} |
| 47 {% from "enum_macros.tmpl" import enum_decl -%} | 50 {% from "enum_macros.tmpl" import enum_decl -%} |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 {%- endif %} | 153 {%- endif %} |
| 151 | 154 |
| 152 {%- if variant %} | 155 {%- if variant %} |
| 153 } // namespace {{variant}} | 156 } // namespace {{variant}} |
| 154 {%- endif %} | 157 {%- endif %} |
| 155 {%- for namespace in namespaces_as_array|reverse %} | 158 {%- for namespace in namespaces_as_array|reverse %} |
| 156 } // namespace {{namespace}} | 159 } // namespace {{namespace}} |
| 157 {%- endfor %} | 160 {%- endfor %} |
| 158 | 161 |
| 159 #endif // {{header_guard}} | 162 #endif // {{header_guard}} |
| OLD | NEW |