| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 #include "mojo/public/cpp/bindings/lib/serialization.h" | 54 #include "mojo/public/cpp/bindings/lib/serialization.h" |
| 55 #include "mojo/public/cpp/bindings/native_struct.h" | 55 #include "mojo/public/cpp/bindings/native_struct.h" |
| 56 #include "mojo/public/cpp/bindings/raw_ptr_impl_ref_traits.h" | 56 #include "mojo/public/cpp/bindings/raw_ptr_impl_ref_traits.h" |
| 57 #include "mojo/public/cpp/bindings/struct_ptr.h" | 57 #include "mojo/public/cpp/bindings/struct_ptr.h" |
| 58 #include "mojo/public/cpp/bindings/struct_traits.h" | 58 #include "mojo/public/cpp/bindings/struct_traits.h" |
| 59 #include "mojo/public/cpp/bindings/thread_safe_interface_ptr.h" | 59 #include "mojo/public/cpp/bindings/thread_safe_interface_ptr.h" |
| 60 #include "mojo/public/cpp/bindings/union_traits.h" | 60 #include "mojo/public/cpp/bindings/union_traits.h" |
| 61 #include "{{module.path}}-shared.h" | 61 #include "{{module.path}}-shared.h" |
| 62 {%- for import in imports %} | 62 {%- for import in imports %} |
| 63 {%- if variant %} | 63 {%- if variant %} |
| 64 #include "{{"%s-%s.h"|format(import.module.path, variant)}}" | 64 #include "{{"%s-%s.h"|format(import.path, variant)}}" |
| 65 {%- else %} | 65 {%- else %} |
| 66 #include "{{import.module.path}}.h" | 66 #include "{{import.path}}.h" |
| 67 {%- endif %} | 67 {%- endif %} |
| 68 {%- endfor %} | 68 {%- endfor %} |
| 69 {%- if not for_blink %} | 69 {%- if not for_blink %} |
| 70 #include <string> | 70 #include <string> |
| 71 #include <vector> | 71 #include <vector> |
| 72 {%- else %} | 72 {%- else %} |
| 73 {# hash_util.h includes template specializations that should be present for | 73 {# hash_util.h includes template specializations that should be present for |
| 74 every use of {Inlined}StructPtr. #} | 74 every use of {Inlined}StructPtr. #} |
| 75 #include "mojo/public/cpp/bindings/lib/wtf_hash_util.h" | 75 #include "mojo/public/cpp/bindings/lib/wtf_hash_util.h" |
| 76 #include "third_party/WebKit/Source/platform/wtf/HashFunctions.h" | 76 #include "third_party/WebKit/Source/platform/wtf/HashFunctions.h" |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 {#--- Union Serialization Helpers -#} | 226 {#--- Union Serialization Helpers -#} |
| 227 {% if unions %} | 227 {% if unions %} |
| 228 {%- for union in unions %} | 228 {%- for union in unions %} |
| 229 {% include "union_traits_declaration.tmpl" %} | 229 {% include "union_traits_declaration.tmpl" %} |
| 230 {%- endfor %} | 230 {%- endfor %} |
| 231 {%- endif %} | 231 {%- endif %} |
| 232 | 232 |
| 233 } // namespace mojo | 233 } // namespace mojo |
| 234 | 234 |
| 235 #endif // {{header_guard}} | 235 #endif // {{header_guard}} |
| OLD | NEW |