Index: mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_declaration.tmpl |
diff --git a/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_declaration.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_declaration.tmpl |
index bfd68023090764f3e3fd72fa6f884301c4143e76..4c5ed38c998076b0d6aed51c9624c9ed16defa57 100644 |
--- a/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_declaration.tmpl |
+++ b/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_declaration.tmpl |
@@ -46,6 +46,10 @@ class {{export_attribute}} {{struct.name}} { |
T, {{struct.name}}>::value>::type* = nullptr> |
bool Equals(const T& other) const; |
+{%- if struct|is_hashable %} |
+ size_t Hash(size_t seed) const; |
+{%- endif %} |
+ |
{%- set serialization_result_type = "mojo::WTFArray<uint8_t>" |
if for_blink else "mojo::Array<uint8_t>" %} |