| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 {%- endif %} | 42 {%- endif %} |
| 43 {%- endfor %} | 43 {%- endfor %} |
| 44 {%- if not for_blink %} | 44 {%- if not for_blink %} |
| 45 #include "mojo/public/cpp/bindings/array.h" | 45 #include "mojo/public/cpp/bindings/array.h" |
| 46 #include "mojo/public/cpp/bindings/string.h" | 46 #include "mojo/public/cpp/bindings/string.h" |
| 47 {%- else %} | 47 {%- else %} |
| 48 #include "mojo/public/cpp/bindings/wtf_array.h" | 48 #include "mojo/public/cpp/bindings/wtf_array.h" |
| 49 #include "third_party/WebKit/Source/wtf/text/WTFString.h" | 49 #include "third_party/WebKit/Source/wtf/text/WTFString.h" |
| 50 {%- endif %} | 50 {%- endif %} |
| 51 | 51 |
| 52 {%- for header in extra_public_headers %} |
| 53 #include "{{header}}" |
| 54 {%- endfor %} |
| 55 |
| 52 {%- for namespace in namespaces_as_array %} | 56 {%- for namespace in namespaces_as_array %} |
| 53 namespace {{namespace}} { | 57 namespace {{namespace}} { |
| 54 {%- endfor %} | 58 {%- endfor %} |
| 55 {%- if variant %} | 59 {%- if variant %} |
| 56 namespace {{variant}} { | 60 namespace {{variant}} { |
| 57 {%- endif %} | 61 {%- endif %} |
| 58 | 62 |
| 59 {#--- Enums #} | 63 {#--- Enums #} |
| 60 {% from "enum_macros.tmpl" import enum_decl -%} | 64 {% from "enum_macros.tmpl" import enum_decl -%} |
| 61 {% from "enum_macros.tmpl" import enum_stream_operator -%} | 65 {% from "enum_macros.tmpl" import enum_stream_operator -%} |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 {%- endfor %} | 193 {%- endfor %} |
| 190 | 194 |
| 191 {%- if variant %} | 195 {%- if variant %} |
| 192 } // namespace {{variant}} | 196 } // namespace {{variant}} |
| 193 {%- endif %} | 197 {%- endif %} |
| 194 {%- for namespace in namespaces_as_array|reverse %} | 198 {%- for namespace in namespaces_as_array|reverse %} |
| 195 } // namespace {{namespace}} | 199 } // namespace {{namespace}} |
| 196 {%- endfor %} | 200 {%- endfor %} |
| 197 | 201 |
| 198 #endif // {{header_guard}} | 202 #endif // {{header_guard}} |
| OLD | NEW |