mirror of
https://github.com/servo/servo.git
synced 2025-10-13 06:50:28 +01:00
Move WebIDL unions into their own module.
This will allow multiple unions to contain the same type.
This commit is contained in:
parent
a90f1e3773
commit
d8801da9c5
4 changed files with 29 additions and 19 deletions
|
@ -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>) {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue