script/dom/
mimetype.rs

1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4
5use dom_struct::dom_struct;
6
7use crate::dom::bindings::codegen::Bindings::MimeTypeBinding::MimeTypeMethods;
8use crate::dom::bindings::reflector::Reflector;
9use crate::dom::bindings::root::DomRoot;
10use crate::dom::bindings::str::DOMString;
11use crate::dom::plugin::Plugin;
12
13#[dom_struct]
14pub(crate) struct MimeType {
15    reflector_: Reflector,
16}
17
18impl MimeTypeMethods<crate::DomTypeHolder> for MimeType {
19    // https://html.spec.whatwg.org/multipage/#dom-mimetype-type
20    fn Type(&self) -> DOMString {
21        unreachable!()
22    }
23
24    // https://html.spec.whatwg.org/multipage/#dom-mimetype-description
25    fn Description(&self) -> DOMString {
26        unreachable!()
27    }
28
29    // https://html.spec.whatwg.org/multipage/#dom-mimetype-suffixes
30    fn Suffixes(&self) -> DOMString {
31        unreachable!()
32    }
33
34    // https://html.spec.whatwg.org/multipage/#dom-mimetype-enabledplugin
35    fn EnabledPlugin(&self) -> DomRoot<Plugin> {
36        unreachable!()
37    }
38}