Skip to main content

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