use dom_struct::dom_struct;
use crate::dom::bindings::codegen::Bindings::MimeTypeArrayBinding::MimeTypeArrayMethods;
use crate::dom::bindings::reflector::{reflect_dom_object, Reflector};
use crate::dom::bindings::root::DomRoot;
use crate::dom::bindings::str::DOMString;
use crate::dom::globalscope::GlobalScope;
use crate::dom::mimetype::MimeType;
#[dom_struct]
pub struct MimeTypeArray {
reflector_: Reflector,
}
impl MimeTypeArray {
pub fn new_inherited() -> MimeTypeArray {
MimeTypeArray {
reflector_: Reflector::new(),
}
}
pub fn new(global: &GlobalScope) -> DomRoot<MimeTypeArray> {
reflect_dom_object(Box::new(MimeTypeArray::new_inherited()), global)
}
}
impl MimeTypeArrayMethods for MimeTypeArray {
fn Length(&self) -> u32 {
0
}
fn Item(&self, _index: u32) -> Option<DomRoot<MimeType>> {
None
}
fn NamedItem(&self, _name: DOMString) -> Option<DomRoot<MimeType>> {
None
}
fn IndexedGetter(&self, _index: u32) -> Option<DomRoot<MimeType>> {
None
}
fn NamedGetter(&self, _name: DOMString) -> Option<DomRoot<MimeType>> {
None
}
fn SupportedPropertyNames(&self) -> Vec<DOMString> {
vec![]
}
}