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