mirror of
https://github.com/servo/servo.git
synced 2025-07-31 11:10:22 +01:00
81 lines
2 KiB
Rust
81 lines
2 KiB
Rust
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
use dom::bindings::codegen::HTMLEmbedElementBinding;
|
|
use dom::bindings::utils::{DOMString, ErrorResult};
|
|
use dom::document::AbstractDocument;
|
|
use dom::element::HTMLEmbedElementTypeId;
|
|
use dom::htmlelement::HTMLElement;
|
|
use dom::node::{AbstractNode, Node, ScriptView};
|
|
|
|
pub struct HTMLEmbedElement {
|
|
htmlelement: HTMLElement
|
|
}
|
|
|
|
impl HTMLEmbedElement {
|
|
pub fn new_inherited(localName: ~str, document: AbstractDocument) -> HTMLEmbedElement {
|
|
HTMLEmbedElement {
|
|
htmlelement: HTMLElement::new_inherited(HTMLEmbedElementTypeId, localName, document)
|
|
}
|
|
}
|
|
|
|
pub fn new(localName: ~str, document: AbstractDocument) -> AbstractNode<ScriptView> {
|
|
let element = HTMLEmbedElement::new_inherited(localName, document);
|
|
Node::reflect_node(@mut element, document, HTMLEmbedElementBinding::Wrap)
|
|
}
|
|
}
|
|
|
|
impl HTMLEmbedElement {
|
|
pub fn Src(&self) -> DOMString {
|
|
~""
|
|
}
|
|
|
|
pub fn SetSrc(&mut self, _src: DOMString) -> ErrorResult {
|
|
Ok(())
|
|
}
|
|
|
|
pub fn Type(&self) -> DOMString {
|
|
~""
|
|
}
|
|
|
|
pub fn SetType(&mut self, _type: DOMString) -> ErrorResult {
|
|
Ok(())
|
|
}
|
|
|
|
pub fn Width(&self) -> DOMString {
|
|
~""
|
|
}
|
|
|
|
pub fn SetWidth(&mut self, _width: DOMString) -> ErrorResult {
|
|
Ok(())
|
|
}
|
|
|
|
pub fn Height(&self) -> DOMString {
|
|
~""
|
|
}
|
|
|
|
pub fn SetHeight(&mut self, _height: DOMString) -> ErrorResult {
|
|
Ok(())
|
|
}
|
|
|
|
pub fn Align(&self) -> DOMString {
|
|
~""
|
|
}
|
|
|
|
pub fn SetAlign(&mut self, _type: DOMString) -> ErrorResult {
|
|
Ok(())
|
|
}
|
|
|
|
pub fn Name(&self) -> DOMString {
|
|
~""
|
|
}
|
|
|
|
pub fn SetName(&mut self, _type: DOMString) -> ErrorResult {
|
|
Ok(())
|
|
}
|
|
|
|
pub fn GetSVGDocument(&self) -> Option<AbstractDocument> {
|
|
None
|
|
}
|
|
}
|