diff options
author | bors-servo <release+servo@mozilla.com> | 2014-06-03 12:58:23 -0400 |
---|---|---|
committer | bors-servo <release+servo@mozilla.com> | 2014-06-03 12:58:23 -0400 |
commit | d448e97c6ac7c73336056be875ca99e5d63d75c3 (patch) | |
tree | 85bd791bdddcff520d3346428e71886fcc278312 /src/components/script/dom/testbinding.rs | |
parent | 052a0ffdf00bf36bdbb511173f88ada3c6296cfc (diff) | |
parent | d8801da9c5e3bc1d1fe4f40853ce9422aedb6103 (diff) | |
download | servo-d448e97c6ac7c73336056be875ca99e5d63d75c3.tar.gz servo-d448e97c6ac7c73336056be875ca99e5d63d75c3.zip |
auto merge of #2558 : Ms2ger/servo/mod-unions, r=jdm
This will allow multiple unions to contain the same type.
Diffstat (limited to 'src/components/script/dom/testbinding.rs')
-rw-r--r-- | src/components/script/dom/testbinding.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/script/dom/testbinding.rs b/src/components/script/dom/testbinding.rs index 28f9a4c432e..4f6020e8c20 100644 --- a/src/components/script/dom/testbinding.rs +++ b/src/components/script/dom/testbinding.rs @@ -5,7 +5,9 @@ use dom::bindings::js::{JS, JSRef, Temporary}; use dom::bindings::codegen::Bindings::TestBindingBinding::TestEnum; use dom::bindings::codegen::Bindings::TestBindingBinding::TestEnumValues::_empty; -use dom::bindings::codegen::UnionTypes::{HTMLElementOrLong, EventOrString}; +use dom::bindings::codegen::UnionTypes::BlobOrString::BlobOrString; +use dom::bindings::codegen::UnionTypes::EventOrString::EventOrString; +use dom::bindings::codegen::UnionTypes::HTMLElementOrLong::HTMLElementOrLong; use dom::bindings::str::ByteString; use dom::bindings::utils::{Reflector, Reflectable}; use dom::blob::Blob; @@ -139,6 +141,7 @@ pub trait TestBindingMethods { fn PassInterface(&self, _: &JSRef<Blob>) {} fn PassUnion(&self, _: HTMLElementOrLong) {} fn PassUnion2(&self, _: EventOrString) {} + fn PassUnion3(&self, _: BlobOrString) {} fn PassAny(&self, _: *mut JSContext, _: JSVal) {} fn PassNullableBoolean(&self, _: Option<bool>) {} |