Generate bindings for HTMLHeadingElement.

This commit is contained in:
Josh Matthews 2013-08-26 17:09:24 -04:00
parent e71b3e67a4
commit 39772f0bf4
8 changed files with 65 additions and 23 deletions

View file

@ -0,0 +1,29 @@
/* 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, null_string};
use dom::htmlelement::HTMLElement;
pub enum HeadingLevel {
Heading1,
Heading2,
Heading3,
Heading4,
Heading5,
Heading6,
}
pub struct HTMLHeadingElement {
parent: HTMLElement,
level: HeadingLevel,
}
impl HTMLHeadingElement {
pub fn Align(&self) -> DOMString {
null_string
}
pub fn SetAlign(&mut self, _align: &DOMString) {
}
}