Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(361)

Side by Side Diff: mojo/public/tools/bindings/generators/cpp_templates/module.h.tmpl

Issue 2339413004: Allow Mojo structs as map keys (Closed)
Patch Set: Revert no-longer-needed changes to clone_equals_util.h Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 {%- if variant %} 60 {%- if variant %}
61 #include "{{"%s-%s.h"|format(import.module.path, variant)}}" 61 #include "{{"%s-%s.h"|format(import.module.path, variant)}}"
62 {%- else %} 62 {%- else %}
63 #include "{{import.module.path}}.h" 63 #include "{{import.module.path}}.h"
64 {%- endif %} 64 {%- endif %}
65 {%- endfor %} 65 {%- endfor %}
66 {%- if not for_blink %} 66 {%- if not for_blink %}
67 #include "mojo/public/cpp/bindings/array.h" 67 #include "mojo/public/cpp/bindings/array.h"
68 #include "mojo/public/cpp/bindings/string.h" 68 #include "mojo/public/cpp/bindings/string.h"
69 {%- else %} 69 {%- else %}
70 {# hash_util.h includes template specializations that should be preswent for
yzshen1 2016/09/21 23:17:53 preswent -> present
tibell 2016/09/22 05:17:23 Done.
71 every use of {Inlined}StructPtr. #}
72 #include "mojo/public/cpp/bindings/lib/wtf_hash_util.h"
70 #include "mojo/public/cpp/bindings/wtf_array.h" 73 #include "mojo/public/cpp/bindings/wtf_array.h"
71 #include "mojo/public/cpp/bindings/wtf_map.h" 74 #include "mojo/public/cpp/bindings/wtf_map.h"
75 #include "third_party/WebKit/Source/wtf/HashFunctions.h"
72 #include "third_party/WebKit/Source/wtf/Optional.h" 76 #include "third_party/WebKit/Source/wtf/Optional.h"
73 #include "third_party/WebKit/Source/wtf/text/WTFString.h" 77 #include "third_party/WebKit/Source/wtf/text/WTFString.h"
74 {%- endif %} 78 {%- endif %}
75 79
76 {%- for header in extra_public_headers %} 80 {%- for header in extra_public_headers %}
77 #include "{{header}}" 81 #include "{{header}}"
78 {%- endfor %} 82 {%- endfor %}
79 83
80 {%- if export_header %} 84 {%- if export_header %}
81 #include "{{export_header}}" 85 #include "{{export_header}}"
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 {#--- Union Serialization Helpers -#} 217 {#--- Union Serialization Helpers -#}
214 {% if unions %} 218 {% if unions %}
215 {%- for union in unions %} 219 {%- for union in unions %}
216 {% include "union_traits_declaration.tmpl" %} 220 {% include "union_traits_declaration.tmpl" %}
217 {%- endfor %} 221 {%- endfor %}
218 {%- endif %} 222 {%- endif %}
219 223
220 } // namespace mojo 224 } // namespace mojo
221 225
222 #endif // {{header_guard}} 226 #endif // {{header_guard}}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698