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

Unified Diff: Source/bindings/tests/results/core/UnionTypesCore.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/tests/results/core/UnionTypesCore.cpp
diff --git a/Source/bindings/tests/results/core/UnionTypesCore.cpp b/Source/bindings/tests/results/core/UnionTypesCore.cpp
index 80dd50bb2a6efaef7361e0629df230f532fa7a34..6727759324a84752ff1daf55d93f45c52bb169b6 100644
--- a/Source/bindings/tests/results/core/UnionTypesCore.cpp
+++ b/Source/bindings/tests/results/core/UnionTypesCore.cpp
@@ -96,6 +96,12 @@ ArrayBufferOrArrayBufferViewOrDictionary ArrayBufferOrArrayBufferViewOrDictionar
return container;
}
+#if COMPILER(MSVC) && defined(COMPONENT_BUILD) && LINK_CORE_MODULES_SEPARATELY
+ArrayBufferOrArrayBufferViewOrDictionary::ArrayBufferOrArrayBufferViewOrDictionary(const ArrayBufferOrArrayBufferViewOrDictionary&) = default;
+ArrayBufferOrArrayBufferViewOrDictionary::~ArrayBufferOrArrayBufferViewOrDictionary() = default;
+ArrayBufferOrArrayBufferViewOrDictionary& ArrayBufferOrArrayBufferViewOrDictionary::operator=(const ArrayBufferOrArrayBufferViewOrDictionary&) = default;
+#endif
+
void V8ArrayBufferOrArrayBufferViewOrDictionary::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value, ArrayBufferOrArrayBufferViewOrDictionary& impl, ExceptionState& exceptionState)
{
if (v8Value.IsEmpty())
@@ -213,6 +219,12 @@ BooleanOrStringOrUnrestrictedDouble BooleanOrStringOrUnrestrictedDouble::fromUnr
return container;
}
+#if COMPILER(MSVC) && defined(COMPONENT_BUILD) && LINK_CORE_MODULES_SEPARATELY
+BooleanOrStringOrUnrestrictedDouble::BooleanOrStringOrUnrestrictedDouble(const BooleanOrStringOrUnrestrictedDouble&) = default;
+BooleanOrStringOrUnrestrictedDouble::~BooleanOrStringOrUnrestrictedDouble() = default;
+BooleanOrStringOrUnrestrictedDouble& BooleanOrStringOrUnrestrictedDouble::operator=(const BooleanOrStringOrUnrestrictedDouble&) = default;
+#endif
+
void V8BooleanOrStringOrUnrestrictedDouble::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value, BooleanOrStringOrUnrestrictedDouble& impl, ExceptionState& exceptionState)
{
if (v8Value.IsEmpty())
@@ -310,6 +322,12 @@ DoubleOrString DoubleOrString::fromString(String value)
return container;
}
+#if COMPILER(MSVC) && defined(COMPONENT_BUILD) && LINK_CORE_MODULES_SEPARATELY
+DoubleOrString::DoubleOrString(const DoubleOrString&) = default;
+DoubleOrString::~DoubleOrString() = default;
+DoubleOrString& DoubleOrString::operator=(const DoubleOrString&) = default;
+#endif
+
void V8DoubleOrString::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value, DoubleOrString& impl, ExceptionState& exceptionState)
{
if (v8Value.IsEmpty())
@@ -400,6 +418,12 @@ NodeOrNodeList NodeOrNodeList::fromNodeList(PassRefPtrWillBeRawPtr<NodeList> val
return container;
}
+#if COMPILER(MSVC) && defined(COMPONENT_BUILD) && LINK_CORE_MODULES_SEPARATELY
+NodeOrNodeList::NodeOrNodeList(const NodeOrNodeList&) = default;
+NodeOrNodeList::~NodeOrNodeList() = default;
+NodeOrNodeList& NodeOrNodeList::operator=(const NodeOrNodeList&) = default;
+#endif
+
DEFINE_TRACE(NodeOrNodeList)
{
visitor->trace(m_node);
@@ -513,6 +537,12 @@ StringOrArrayBufferOrArrayBufferView StringOrArrayBufferOrArrayBufferView::fromA
return container;
}
+#if COMPILER(MSVC) && defined(COMPONENT_BUILD) && LINK_CORE_MODULES_SEPARATELY
+StringOrArrayBufferOrArrayBufferView::StringOrArrayBufferOrArrayBufferView(const StringOrArrayBufferOrArrayBufferView&) = default;
+StringOrArrayBufferOrArrayBufferView::~StringOrArrayBufferOrArrayBufferView() = default;
+StringOrArrayBufferOrArrayBufferView& StringOrArrayBufferOrArrayBufferView::operator=(const StringOrArrayBufferOrArrayBufferView&) = default;
+#endif
+
void V8StringOrArrayBufferOrArrayBufferView::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value, StringOrArrayBufferOrArrayBufferView& impl, ExceptionState& exceptionState)
{
if (v8Value.IsEmpty())
@@ -609,6 +639,12 @@ StringOrDouble StringOrDouble::fromDouble(double value)
return container;
}
+#if COMPILER(MSVC) && defined(COMPONENT_BUILD) && LINK_CORE_MODULES_SEPARATELY
+StringOrDouble::StringOrDouble(const StringOrDouble&) = default;
+StringOrDouble::~StringOrDouble() = default;
+StringOrDouble& StringOrDouble::operator=(const StringOrDouble&) = default;
+#endif
+
void V8StringOrDouble::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value, StringOrDouble& impl, ExceptionState& exceptionState)
{
if (v8Value.IsEmpty())
@@ -699,6 +735,12 @@ StringOrStringSequence StringOrStringSequence::fromStringSequence(const Vector<S
return container;
}
+#if COMPILER(MSVC) && defined(COMPONENT_BUILD) && LINK_CORE_MODULES_SEPARATELY
+StringOrStringSequence::StringOrStringSequence(const StringOrStringSequence&) = default;
+StringOrStringSequence::~StringOrStringSequence() = default;
+StringOrStringSequence& StringOrStringSequence::operator=(const StringOrStringSequence&) = default;
+#endif
+
void V8StringOrStringSequence::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value, StringOrStringSequence& impl, ExceptionState& exceptionState)
{
if (v8Value.IsEmpty())
@@ -800,6 +842,12 @@ TestEnumOrDouble TestEnumOrDouble::fromDouble(double value)
return container;
}
+#if COMPILER(MSVC) && defined(COMPONENT_BUILD) && LINK_CORE_MODULES_SEPARATELY
+TestEnumOrDouble::TestEnumOrDouble(const TestEnumOrDouble&) = default;
+TestEnumOrDouble::~TestEnumOrDouble() = default;
+TestEnumOrDouble& TestEnumOrDouble::operator=(const TestEnumOrDouble&) = default;
+#endif
+
void V8TestEnumOrDouble::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value, TestEnumOrDouble& impl, ExceptionState& exceptionState)
{
if (v8Value.IsEmpty())
@@ -898,6 +946,12 @@ TestInterface2OrUint8Array TestInterface2OrUint8Array::fromUint8Array(PassRefPtr
return container;
}
+#if COMPILER(MSVC) && defined(COMPONENT_BUILD) && LINK_CORE_MODULES_SEPARATELY
+TestInterface2OrUint8Array::TestInterface2OrUint8Array(const TestInterface2OrUint8Array&) = default;
+TestInterface2OrUint8Array::~TestInterface2OrUint8Array() = default;
+TestInterface2OrUint8Array& TestInterface2OrUint8Array::operator=(const TestInterface2OrUint8Array&) = default;
+#endif
+
void V8TestInterface2OrUint8Array::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value, TestInterface2OrUint8Array& impl, ExceptionState& exceptionState)
{
if (v8Value.IsEmpty())
@@ -985,6 +1039,12 @@ TestInterfaceGarbageCollectedOrString TestInterfaceGarbageCollectedOrString::fro
return container;
}
+#if COMPILER(MSVC) && defined(COMPONENT_BUILD) && LINK_CORE_MODULES_SEPARATELY
+TestInterfaceGarbageCollectedOrString::TestInterfaceGarbageCollectedOrString(const TestInterfaceGarbageCollectedOrString&) = default;
+TestInterfaceGarbageCollectedOrString::~TestInterfaceGarbageCollectedOrString() = default;
+TestInterfaceGarbageCollectedOrString& TestInterfaceGarbageCollectedOrString::operator=(const TestInterfaceGarbageCollectedOrString&) = default;
+#endif
+
DEFINE_TRACE(TestInterfaceGarbageCollectedOrString)
{
visitor->trace(m_testInterfaceGarbageCollected);
@@ -1078,6 +1138,12 @@ TestInterfaceOrLong TestInterfaceOrLong::fromLong(int value)
return container;
}
+#if COMPILER(MSVC) && defined(COMPONENT_BUILD) && LINK_CORE_MODULES_SEPARATELY
+TestInterfaceOrLong::TestInterfaceOrLong(const TestInterfaceOrLong&) = default;
+TestInterfaceOrLong::~TestInterfaceOrLong() = default;
+TestInterfaceOrLong& TestInterfaceOrLong::operator=(const TestInterfaceOrLong&) = default;
+#endif
+
void V8TestInterfaceOrLong::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value, TestInterfaceOrLong& impl, ExceptionState& exceptionState)
{
if (v8Value.IsEmpty())
@@ -1174,6 +1240,12 @@ TestInterfaceOrTestInterfaceEmpty TestInterfaceOrTestInterfaceEmpty::fromTestInt
return container;
}
+#if COMPILER(MSVC) && defined(COMPONENT_BUILD) && LINK_CORE_MODULES_SEPARATELY
+TestInterfaceOrTestInterfaceEmpty::TestInterfaceOrTestInterfaceEmpty(const TestInterfaceOrTestInterfaceEmpty&) = default;
+TestInterfaceOrTestInterfaceEmpty::~TestInterfaceOrTestInterfaceEmpty() = default;
+TestInterfaceOrTestInterfaceEmpty& TestInterfaceOrTestInterfaceEmpty::operator=(const TestInterfaceOrTestInterfaceEmpty&) = default;
+#endif
+
void V8TestInterfaceOrTestInterfaceEmpty::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value, TestInterfaceOrTestInterfaceEmpty& impl, ExceptionState& exceptionState)
{
if (v8Value.IsEmpty())
@@ -1261,6 +1333,12 @@ TestInterfaceWillBeGarbageCollectedOrTestDictionary TestInterfaceWillBeGarbageCo
return container;
}
+#if COMPILER(MSVC) && defined(COMPONENT_BUILD) && LINK_CORE_MODULES_SEPARATELY
+TestInterfaceWillBeGarbageCollectedOrTestDictionary::TestInterfaceWillBeGarbageCollectedOrTestDictionary(const TestInterfaceWillBeGarbageCollectedOrTestDictionary&) = default;
+TestInterfaceWillBeGarbageCollectedOrTestDictionary::~TestInterfaceWillBeGarbageCollectedOrTestDictionary() = default;
+TestInterfaceWillBeGarbageCollectedOrTestDictionary& TestInterfaceWillBeGarbageCollectedOrTestDictionary::operator=(const TestInterfaceWillBeGarbageCollectedOrTestDictionary&) = default;
+#endif
+
DEFINE_TRACE(TestInterfaceWillBeGarbageCollectedOrTestDictionary)
{
visitor->trace(m_testInterfaceWillBeGarbageCollected);
@@ -1357,6 +1435,12 @@ UnrestrictedDoubleOrString UnrestrictedDoubleOrString::fromString(String value)
return container;
}
+#if COMPILER(MSVC) && defined(COMPONENT_BUILD) && LINK_CORE_MODULES_SEPARATELY
+UnrestrictedDoubleOrString::UnrestrictedDoubleOrString(const UnrestrictedDoubleOrString&) = default;
+UnrestrictedDoubleOrString::~UnrestrictedDoubleOrString() = default;
+UnrestrictedDoubleOrString& UnrestrictedDoubleOrString::operator=(const UnrestrictedDoubleOrString&) = default;
+#endif
+
void V8UnrestrictedDoubleOrString::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value, UnrestrictedDoubleOrString& impl, ExceptionState& exceptionState)
{
if (v8Value.IsEmpty())

Powered by Google App Engine
This is Rietveld 408576698