mirror of
https://github.com/servo/servo.git
synced 2025-06-19 14:48:59 +01:00
Generate bindings for HTMLParamElement.
This commit is contained in:
parent
8693459b28
commit
e26a541eb2
8 changed files with 76 additions and 0 deletions
|
@ -593,6 +593,7 @@ addHTMLElement('HTMLOptGroupElement')
|
||||||
addHTMLElement('HTMLOptionElement')
|
addHTMLElement('HTMLOptionElement')
|
||||||
addHTMLElement('HTMLOutputElement')
|
addHTMLElement('HTMLOutputElement')
|
||||||
addHTMLElement('HTMLParagraphElement')
|
addHTMLElement('HTMLParagraphElement')
|
||||||
|
addHTMLElement('HTMLParamElement')
|
||||||
addHTMLElement('HTMLProgressElement')
|
addHTMLElement('HTMLProgressElement')
|
||||||
addHTMLElement('HTMLQuoteElement')
|
addHTMLElement('HTMLQuoteElement')
|
||||||
addHTMLElement('HTMLScriptElement')
|
addHTMLElement('HTMLScriptElement')
|
||||||
|
|
|
@ -0,0 +1,29 @@
|
||||||
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||||
|
/* 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/.
|
||||||
|
*
|
||||||
|
* The origin of this IDL file is
|
||||||
|
* http://www.whatwg.org/specs/web-apps/current-work/#the-param-element
|
||||||
|
* http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
|
||||||
|
*
|
||||||
|
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
|
||||||
|
* Opera Software ASA. You are granted a license to use, reproduce
|
||||||
|
* and create derivative works of this document.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// http://www.whatwg.org/specs/web-apps/current-work/#the-param-element
|
||||||
|
interface HTMLParamElement : HTMLElement {
|
||||||
|
[SetterThrows, Pure]
|
||||||
|
attribute DOMString name;
|
||||||
|
[SetterThrows, Pure]
|
||||||
|
attribute DOMString value;
|
||||||
|
};
|
||||||
|
|
||||||
|
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
|
||||||
|
partial interface HTMLParamElement {
|
||||||
|
[SetterThrows, Pure]
|
||||||
|
attribute DOMString type;
|
||||||
|
[SetterThrows, Pure]
|
||||||
|
attribute DOMString valueType;
|
||||||
|
};
|
|
@ -409,6 +409,8 @@ generate_cacheable_wrapper!(HTMLOutputElement, HTMLOutputElementBinding::Wrap)
|
||||||
generate_binding_object!(HTMLOutputElement)
|
generate_binding_object!(HTMLOutputElement)
|
||||||
generate_cacheable_wrapper!(HTMLParagraphElement, HTMLParagraphElementBinding::Wrap)
|
generate_cacheable_wrapper!(HTMLParagraphElement, HTMLParagraphElementBinding::Wrap)
|
||||||
generate_binding_object!(HTMLParagraphElement)
|
generate_binding_object!(HTMLParagraphElement)
|
||||||
|
generate_cacheable_wrapper!(HTMLParamElement, HTMLParamElementBinding::Wrap)
|
||||||
|
generate_binding_object!(HTMLParamElement)
|
||||||
generate_cacheable_wrapper!(HTMLProgressElement, HTMLProgressElementBinding::Wrap)
|
generate_cacheable_wrapper!(HTMLProgressElement, HTMLProgressElementBinding::Wrap)
|
||||||
generate_binding_object!(HTMLProgressElement)
|
generate_binding_object!(HTMLProgressElement)
|
||||||
generate_cacheable_wrapper!(HTMLQuoteElement, HTMLQuoteElementBinding::Wrap)
|
generate_cacheable_wrapper!(HTMLQuoteElement, HTMLQuoteElementBinding::Wrap)
|
||||||
|
|
|
@ -110,6 +110,7 @@ pub fn create(cx: *JSContext, node: &mut AbstractNode<ScriptView>) -> *JSObject
|
||||||
ElementNodeTypeId(HTMLOptionElementTypeId) => generate_element!(HTMLOptionElement),
|
ElementNodeTypeId(HTMLOptionElementTypeId) => generate_element!(HTMLOptionElement),
|
||||||
ElementNodeTypeId(HTMLOutputElementTypeId) => generate_element!(HTMLOutputElement),
|
ElementNodeTypeId(HTMLOutputElementTypeId) => generate_element!(HTMLOutputElement),
|
||||||
ElementNodeTypeId(HTMLParagraphElementTypeId) => generate_element!(HTMLParagraphElement),
|
ElementNodeTypeId(HTMLParagraphElementTypeId) => generate_element!(HTMLParagraphElement),
|
||||||
|
ElementNodeTypeId(HTMLParamElementTypeId) => generate_element!(HTMLParamElement),
|
||||||
ElementNodeTypeId(HTMLProgressElementTypeId) => generate_element!(HTMLProgressElement),
|
ElementNodeTypeId(HTMLProgressElementTypeId) => generate_element!(HTMLProgressElement),
|
||||||
ElementNodeTypeId(HTMLQuoteElementTypeId) => generate_element!(HTMLQuoteElement),
|
ElementNodeTypeId(HTMLQuoteElementTypeId) => generate_element!(HTMLQuoteElement),
|
||||||
ElementNodeTypeId(HTMLScriptElementTypeId) => generate_element!(HTMLScriptElement),
|
ElementNodeTypeId(HTMLScriptElementTypeId) => generate_element!(HTMLScriptElement),
|
||||||
|
|
|
@ -86,6 +86,7 @@ pub enum ElementTypeId {
|
||||||
HTMLOptionElementTypeId,
|
HTMLOptionElementTypeId,
|
||||||
HTMLOutputElementTypeId,
|
HTMLOutputElementTypeId,
|
||||||
HTMLParagraphElementTypeId,
|
HTMLParagraphElementTypeId,
|
||||||
|
HTMLParamElementTypeId,
|
||||||
HTMLProgressElementTypeId,
|
HTMLProgressElementTypeId,
|
||||||
HTMLQuoteElementTypeId,
|
HTMLQuoteElementTypeId,
|
||||||
HTMLScriptElementTypeId,
|
HTMLScriptElementTypeId,
|
||||||
|
|
40
src/components/script/dom/htmlparamelement.rs
Normal file
40
src/components/script/dom/htmlparamelement.rs
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
/* 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::utils::{DOMString, ErrorResult, null_string};
|
||||||
|
use dom::htmlelement::HTMLElement;
|
||||||
|
|
||||||
|
pub struct HTMLParamElement {
|
||||||
|
parent: HTMLElement
|
||||||
|
}
|
||||||
|
|
||||||
|
impl HTMLParamElement {
|
||||||
|
pub fn Name(&self) -> DOMString {
|
||||||
|
null_string
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn SetName(&mut self, _name: &DOMString, _rv: &mut ErrorResult) {
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn Value(&self) -> DOMString {
|
||||||
|
null_string
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn SetValue(&mut self, _value: &DOMString, _rv: &mut ErrorResult) {
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn Type(&self) -> DOMString {
|
||||||
|
null_string
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn SetType(&mut self, _type: &DOMString, _rv: &mut ErrorResult) {
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn ValueType(&self) -> DOMString {
|
||||||
|
null_string
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn SetValueType(&mut self, _value_type: &DOMString, _rv: &mut ErrorResult) {
|
||||||
|
}
|
||||||
|
}
|
|
@ -220,6 +220,7 @@ fn build_element_from_tag(cx: *JSContext, tag: &str) -> AbstractNode<ScriptView>
|
||||||
handle_element!(cx, tag, "optgroup",HTMLOptGroupElementTypeId, HTMLOptGroupElement, []);
|
handle_element!(cx, tag, "optgroup",HTMLOptGroupElementTypeId, HTMLOptGroupElement, []);
|
||||||
handle_element!(cx, tag, "output", HTMLOutputElementTypeId, HTMLOutputElement, []);
|
handle_element!(cx, tag, "output", HTMLOutputElementTypeId, HTMLOutputElement, []);
|
||||||
handle_element!(cx, tag, "p", HTMLParagraphElementTypeId, HTMLParagraphElement, []);
|
handle_element!(cx, tag, "p", HTMLParagraphElementTypeId, HTMLParagraphElement, []);
|
||||||
|
handle_element!(cx, tag, "param", HTMLParamElementTypeId, HTMLParamElement, []);
|
||||||
handle_element!(cx, tag, "progress",HTMLProgressElementTypeId, HTMLProgressElement, []);
|
handle_element!(cx, tag, "progress",HTMLProgressElementTypeId, HTMLProgressElement, []);
|
||||||
handle_element!(cx, tag, "q", HTMLQuoteElementTypeId, HTMLQuoteElement, []);
|
handle_element!(cx, tag, "q", HTMLQuoteElementTypeId, HTMLQuoteElement, []);
|
||||||
handle_element!(cx, tag, "script", HTMLScriptElementTypeId, HTMLScriptElement, []);
|
handle_element!(cx, tag, "script", HTMLScriptElementTypeId, HTMLScriptElement, []);
|
||||||
|
|
|
@ -95,6 +95,7 @@ pub mod dom {
|
||||||
pub mod htmloptionelement;
|
pub mod htmloptionelement;
|
||||||
pub mod htmloutputelement;
|
pub mod htmloutputelement;
|
||||||
pub mod htmlparagraphelement;
|
pub mod htmlparagraphelement;
|
||||||
|
pub mod htmlparamelement;
|
||||||
pub mod htmlprogresselement;
|
pub mod htmlprogresselement;
|
||||||
pub mod htmlquoteelement;
|
pub mod htmlquoteelement;
|
||||||
pub mod htmlscriptelement;
|
pub mod htmlscriptelement;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue