| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 #include "mojo/public/cpp/bindings/wtf_array.h" | 92 #include "mojo/public/cpp/bindings/wtf_array.h" |
| 93 #include "mojo/public/cpp/bindings/wtf_map.h" | 93 #include "mojo/public/cpp/bindings/wtf_map.h" |
| 94 #include "third_party/WebKit/Source/wtf/Optional.h" | 94 #include "third_party/WebKit/Source/wtf/Optional.h" |
| 95 #include "third_party/WebKit/Source/wtf/text/WTFString.h" | 95 #include "third_party/WebKit/Source/wtf/text/WTFString.h" |
| 96 {%- endif %} | 96 {%- endif %} |
| 97 | 97 |
| 98 {%- for header in extra_public_headers %} | 98 {%- for header in extra_public_headers %} |
| 99 #include "{{header}}" | 99 #include "{{header}}" |
| 100 {%- endfor %} | 100 {%- endfor %} |
| 101 | 101 |
| 102 {%- if export_header %} |
| 103 #include "{{export_header}}" |
| 104 {%- endif %} |
| 105 |
| 102 {#--- Enums #} | 106 {#--- Enums #} |
| 103 {%- if enums %} | 107 {%- if enums %} |
| 104 {{namespace_begin()}} | 108 {{namespace_begin()}} |
| 105 {%- for enum in enums %} | 109 {%- for enum in enums %} |
| 106 {%- if enum|is_native_only_kind %} | 110 {%- if enum|is_native_only_kind %} |
| 107 using {{enum.name}} = mojo::NativeEnum; | 111 using {{enum.name}} = mojo::NativeEnum; |
| 108 {%- else %} | 112 {%- else %} |
| 109 {{enum_decl(enum)}} | 113 {{enum_decl(enum)}} |
| 110 {{enum_stream_operator(enum)}} | 114 {{enum_stream_operator(enum)}} |
| 111 {{is_known_enum_value(enum)}} | 115 {{is_known_enum_value(enum)}} |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 {#--- Union Serialization Helpers -#} | 340 {#--- Union Serialization Helpers -#} |
| 337 {% if unions %} | 341 {% if unions %} |
| 338 {%- for union in unions %} | 342 {%- for union in unions %} |
| 339 {% include "union_serialization_declaration.tmpl" %} | 343 {% include "union_serialization_declaration.tmpl" %} |
| 340 {%- endfor %} | 344 {%- endfor %} |
| 341 {%- endif %} | 345 {%- endif %} |
| 342 | 346 |
| 343 } // namespace mojo | 347 } // namespace mojo |
| 344 | 348 |
| 345 #endif // {{header_guard}} | 349 #endif // {{header_guard}} |
| OLD | NEW |