script/dom/
plugin.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::PluginBinding::PluginMethods;
8use crate::dom::bindings::reflector::Reflector;
9use crate::dom::bindings::root::DomRoot;
10use crate::dom::bindings::str::DOMString;
11use crate::dom::mimetype::MimeType;
12
13#[dom_struct]
14pub(crate) struct Plugin {
15    reflector_: Reflector,
16}
17
18impl PluginMethods<crate::DomTypeHolder> for Plugin {
19    // https://html.spec.whatwg.org/multipage/#dom-plugin-name
20    fn Name(&self) -> DOMString {
21        unreachable!()
22    }
23
24    // https://html.spec.whatwg.org/multipage/#dom-plugin-description
25    fn Description(&self) -> DOMString {
26        unreachable!()
27    }
28
29    // https://html.spec.whatwg.org/multipage/#dom-plugin-filename
30    fn Filename(&self) -> DOMString {
31        unreachable!()
32    }
33
34    // https://html.spec.whatwg.org/multipage/#dom-plugin-length
35    fn Length(&self) -> u32 {
36        unreachable!()
37    }
38
39    // https://html.spec.whatwg.org/multipage/#dom-plugin-item
40    fn Item(&self, _index: u32) -> Option<DomRoot<MimeType>> {
41        unreachable!()
42    }
43
44    // https://html.spec.whatwg.org/multipage/#dom-plugin-nameditem
45    fn NamedItem(&self, _name: DOMString) -> Option<DomRoot<MimeType>> {
46        unreachable!()
47    }
48
49    // https://html.spec.whatwg.org/multipage/#dom-plugin-item
50    fn IndexedGetter(&self, _index: u32) -> Option<DomRoot<MimeType>> {
51        unreachable!()
52    }
53
54    // check-tidy: no specs after this line
55    fn NamedGetter(&self, _name: DOMString) -> Option<DomRoot<MimeType>> {
56        unreachable!()
57    }
58
59    // https://heycam.github.io/webidl/#dfn-supported-property-names
60    fn SupportedPropertyNames(&self) -> Vec<DOMString> {
61        unreachable!()
62    }
63}