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

Unified Diff: third_party/mojo/src/mojo/public/tools/bindings/generators/cpp_templates/module-internal.h.tmpl

Issue 910883002: Update mojo sdk to rev 8af2ccff2eee4bfca1043015abee30482a030b30 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Apply 9f87aeadbda22441b7d469e596f7bd7d0d73e2a8 (https://codereview.chromium.org/908973002/) Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: third_party/mojo/src/mojo/public/tools/bindings/generators/cpp_templates/module-internal.h.tmpl
diff --git a/third_party/mojo/src/mojo/public/tools/bindings/generators/cpp_templates/module-internal.h.tmpl b/third_party/mojo/src/mojo/public/tools/bindings/generators/cpp_templates/module-internal.h.tmpl
index 116e86ad41c818f4563cda9602445fc1c6b35435..d9a398a193c2d4d4f8518444663c97e9ddd02ec0 100644
--- a/third_party/mojo/src/mojo/public/tools/bindings/generators/cpp_templates/module-internal.h.tmpl
+++ b/third_party/mojo/src/mojo/public/tools/bindings/generators/cpp_templates/module-internal.h.tmpl
@@ -32,6 +32,11 @@ namespace {{namespace}} {
class {{struct.name}};
{%- endfor %}
+{#--- Wrapper forward declarations for unions #}
+{% for union in unions %}
+class {{union.name}};
+{%- endfor %}
+
namespace internal {
{#--- Internal forward declarations #}
@@ -39,6 +44,10 @@ namespace internal {
class {{struct.name}}_Data;
{%- endfor %}
+{% for union in unions %}
+class {{union.name}}_Data;
+{%- endfor %}
+
#pragma pack(push, 1)
{#--- Class declarations #}
@@ -46,6 +55,10 @@ class {{struct.name}}_Data;
{% include "struct_declaration.tmpl" %}
{%- endfor %}
+{% for union in unions %}
+{% include "union_declaration.tmpl" %}
+{%- endfor %}
+
#pragma pack(pop)
} // namespace internal

Powered by Google App Engine
This is Rietveld 408576698