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 0293accde40db9a2a4d6edc980d37100988e5b18..7861942bedc783cb973bfa870368a682b8c99f11 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 |
@@ -1,7 +1,11 @@ |
{% from "enum_macros.tmpl" import enum_decl -%} |
+ |
+class {{struct.name}}_Reader; |
+ |
class {{struct.name}} { |
public: |
using Data_ = internal::{{struct.name}}_Data; |
+ using Reader = {{struct.name}}_Reader; |
{#--- Enums #} |
{%- for enum in struct.enums -%} |