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

Unified Diff: Source/bindings/tests/results/core/UnionTypesCore.cpp

Issue 700733003: IDL: Support union type arrays and sequences for method arguments (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « Source/bindings/tests/results/core/UnionTypesCore.h ('k') | Source/core/testing/UnionTypesTest.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e1584c507e371a249064853b640c860d635afc52..91ef707631ae3f37fed8f38d694c218167f01fd7 100644
--- a/Source/bindings/tests/results/core/UnionTypesCore.cpp
+++ b/Source/bindings/tests/results/core/UnionTypesCore.cpp
@@ -112,6 +112,13 @@ v8::Handle<v8::Value> toV8(BooleanOrStringOrUnrestrictedDouble& impl, v8::Handle
return v8::Handle<v8::Value>();
}
+BooleanOrStringOrUnrestrictedDouble NativeValueTraits<BooleanOrStringOrUnrestrictedDouble>::nativeValue(const v8::Handle<v8::Value>& value, v8::Isolate* isolate, ExceptionState& exceptionState)
+{
+ BooleanOrStringOrUnrestrictedDouble impl;
+ V8BooleanOrStringOrUnrestrictedDouble::toImpl(isolate, value, impl, exceptionState);
+ return impl;
+}
+
DoubleOrString::DoubleOrString()
: m_type(SpecificTypeNone)
{
@@ -177,6 +184,13 @@ v8::Handle<v8::Value> toV8(DoubleOrString& impl, v8::Handle<v8::Object> creation
return v8::Handle<v8::Value>();
}
+DoubleOrString NativeValueTraits<DoubleOrString>::nativeValue(const v8::Handle<v8::Value>& value, v8::Isolate* isolate, ExceptionState& exceptionState)
+{
+ DoubleOrString impl;
+ V8DoubleOrString::toImpl(isolate, value, impl, exceptionState);
+ return impl;
+}
+
NodeOrNodeList::NodeOrNodeList()
: m_type(SpecificTypeNone)
{
@@ -249,6 +263,13 @@ v8::Handle<v8::Value> toV8(NodeOrNodeList& impl, v8::Handle<v8::Object> creation
return v8::Handle<v8::Value>();
}
+NodeOrNodeList NativeValueTraits<NodeOrNodeList>::nativeValue(const v8::Handle<v8::Value>& value, v8::Isolate* isolate, ExceptionState& exceptionState)
+{
+ NodeOrNodeList impl;
+ V8NodeOrNodeList::toImpl(isolate, value, impl, exceptionState);
+ return impl;
+}
+
StringOrArrayBufferOrArrayBufferView::StringOrArrayBufferOrArrayBufferView()
: m_type(SpecificTypeNone)
{
@@ -335,6 +356,13 @@ v8::Handle<v8::Value> toV8(StringOrArrayBufferOrArrayBufferView& impl, v8::Handl
return v8::Handle<v8::Value>();
}
+StringOrArrayBufferOrArrayBufferView NativeValueTraits<StringOrArrayBufferOrArrayBufferView>::nativeValue(const v8::Handle<v8::Value>& value, v8::Isolate* isolate, ExceptionState& exceptionState)
+{
+ StringOrArrayBufferOrArrayBufferView impl;
+ V8StringOrArrayBufferOrArrayBufferView::toImpl(isolate, value, impl, exceptionState);
+ return impl;
+}
+
StringOrDouble::StringOrDouble()
: m_type(SpecificTypeNone)
{
@@ -400,6 +428,13 @@ v8::Handle<v8::Value> toV8(StringOrDouble& impl, v8::Handle<v8::Object> creation
return v8::Handle<v8::Value>();
}
+StringOrDouble NativeValueTraits<StringOrDouble>::nativeValue(const v8::Handle<v8::Value>& value, v8::Isolate* isolate, ExceptionState& exceptionState)
+{
+ StringOrDouble impl;
+ V8StringOrDouble::toImpl(isolate, value, impl, exceptionState);
+ return impl;
+}
+
TestInterfaceGarbageCollectedOrString::TestInterfaceGarbageCollectedOrString()
: m_type(SpecificTypeNone)
{
@@ -470,6 +505,13 @@ v8::Handle<v8::Value> toV8(TestInterfaceGarbageCollectedOrString& impl, v8::Hand
return v8::Handle<v8::Value>();
}
+TestInterfaceGarbageCollectedOrString NativeValueTraits<TestInterfaceGarbageCollectedOrString>::nativeValue(const v8::Handle<v8::Value>& value, v8::Isolate* isolate, ExceptionState& exceptionState)
+{
+ TestInterfaceGarbageCollectedOrString impl;
+ V8TestInterfaceGarbageCollectedOrString::toImpl(isolate, value, impl, exceptionState);
+ return impl;
+}
+
TestInterfaceOrLong::TestInterfaceOrLong()
: m_type(SpecificTypeNone)
{
@@ -541,6 +583,13 @@ v8::Handle<v8::Value> toV8(TestInterfaceOrLong& impl, v8::Handle<v8::Object> cre
return v8::Handle<v8::Value>();
}
+TestInterfaceOrLong NativeValueTraits<TestInterfaceOrLong>::nativeValue(const v8::Handle<v8::Value>& value, v8::Isolate* isolate, ExceptionState& exceptionState)
+{
+ TestInterfaceOrLong impl;
+ V8TestInterfaceOrLong::toImpl(isolate, value, impl, exceptionState);
+ return impl;
+}
+
TestInterfaceOrTestInterfaceEmpty::TestInterfaceOrTestInterfaceEmpty()
: m_type(SpecificTypeNone)
{
@@ -607,6 +656,13 @@ v8::Handle<v8::Value> toV8(TestInterfaceOrTestInterfaceEmpty& impl, v8::Handle<v
return v8::Handle<v8::Value>();
}
+TestInterfaceOrTestInterfaceEmpty NativeValueTraits<TestInterfaceOrTestInterfaceEmpty>::nativeValue(const v8::Handle<v8::Value>& value, v8::Isolate* isolate, ExceptionState& exceptionState)
+{
+ TestInterfaceOrTestInterfaceEmpty impl;
+ V8TestInterfaceOrTestInterfaceEmpty::toImpl(isolate, value, impl, exceptionState);
+ return impl;
+}
+
TestInterfaceWillBeGarbageCollectedOrTestDictionary::TestInterfaceWillBeGarbageCollectedOrTestDictionary()
: m_type(SpecificTypeNone)
{
@@ -679,4 +735,11 @@ v8::Handle<v8::Value> toV8(TestInterfaceWillBeGarbageCollectedOrTestDictionary&
return v8::Handle<v8::Value>();
}
+TestInterfaceWillBeGarbageCollectedOrTestDictionary NativeValueTraits<TestInterfaceWillBeGarbageCollectedOrTestDictionary>::nativeValue(const v8::Handle<v8::Value>& value, v8::Isolate* isolate, ExceptionState& exceptionState)
+{
+ TestInterfaceWillBeGarbageCollectedOrTestDictionary impl;
+ V8TestInterfaceWillBeGarbageCollectedOrTestDictionary::toImpl(isolate, value, impl, exceptionState);
+ return impl;
+}
+
} // namespace blink
« no previous file with comments | « Source/bindings/tests/results/core/UnionTypesCore.h ('k') | Source/core/testing/UnionTypesTest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698