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

Unified Diff: mojo/public/tools/bindings/generators/cpp_templates/union_serialization_declaration.tmpl

Issue 2225673002: Support exporting Mojo bindings for the component build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix win_clang Created 4 years, 4 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: mojo/public/tools/bindings/generators/cpp_templates/union_serialization_declaration.tmpl
diff --git a/mojo/public/tools/bindings/generators/cpp_templates/union_serialization_declaration.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/union_serialization_declaration.tmpl
index bab90452272118fc97c38940eb5cf8887b0ff54a..f04e16bd4f7db68856cd11d5487a461d1918e85b 100644
--- a/mojo/public/tools/bindings/generators/cpp_templates/union_serialization_declaration.tmpl
+++ b/mojo/public/tools/bindings/generators/cpp_templates/union_serialization_declaration.tmpl
@@ -7,7 +7,7 @@ template <typename MojomType>
struct UnionSerializerImpl;
template <>
-struct UnionSerializerImpl<{{mojom_type}}Ptr> {
+struct {{export_attribute}} UnionSerializerImpl<{{mojom_type}}Ptr> {
static size_t PrepareToSerialize({{mojom_type}}Ptr& input,
bool inlined,
SerializationContext* context);
@@ -24,7 +24,7 @@ struct UnionSerializerImpl<{{mojom_type}}Ptr> {
};
template <typename MaybeConstUserType>
-struct Serializer<{{mojom_type}}Ptr, MaybeConstUserType>
+struct {{export_attribute}} Serializer<{{mojom_type}}Ptr, MaybeConstUserType>
: public UnionSerializerImpl<{{mojom_type}}Ptr> {
using UserType = typename std::remove_const<MaybeConstUserType>::type;

Powered by Google App Engine
This is Rietveld 408576698