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

Unified Diff: Source/bindings/templates/union.cpp

Issue 1054443002: Make classes for union types exported. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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: Source/bindings/templates/union.cpp
diff --git a/Source/bindings/templates/union.cpp b/Source/bindings/templates/union.cpp
index 98031198d4fdf640335a426c7ac534ec93d7c2a8..cbcb3afd9fef2340606b121f5514c28e1903e438 100644
--- a/Source/bindings/templates/union.cpp
+++ b/Source/bindings/templates/union.cpp
@@ -58,6 +58,12 @@ void {{container.cpp_class}}::set{{member.type_name}}({{member.rvalue_cpp_type}}
}
{% endfor %}
+#if COMPILER(MSVC) && defined(COMPONENT_BUILD) && LINK_CORE_MODULES_SEPARATELY
+{{container.cpp_class}}::{{container.cpp_class}}(const {{container.cpp_class}}&) = default;
+{{container.cpp_class}}::~{{container.cpp_class}}() = default;
+{{container.cpp_class}}& {{container.cpp_class}}::operator=(const {{container.cpp_class}}&) = default;
+#endif
+
{% if container.needs_trace %}
DEFINE_TRACE({{container.cpp_class}})
{

Powered by Google App Engine
This is Rietveld 408576698