Generate bindings for HTMLAudioElement, HTMLVideoElement.

This commit is contained in:
Tetsuharu OHZEKI 2013-08-31 19:46:55 +09:00
parent a76e46416a
commit 17e888bfea
10 changed files with 174 additions and 1 deletions

View file

@ -0,0 +1,41 @@
/* 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, ErrorResult};
use dom::htmlmediaelement::HTMLMediaElement;
pub struct HTMLVideoElement {
parent: HTMLMediaElement
}
impl HTMLVideoElement {
pub fn Width(&self) -> u32 {
0
}
pub fn SetWidth(&mut self, _width: u32, _rv: &ErrorResult) {
}
pub fn Height(&self) -> u32 {
0
}
pub fn SetHeight(&mut self, _height: u32, _rv: &ErrorResult) {
}
pub fn VideoWidth(&self) -> u32 {
0
}
pub fn VideoHeight(&self) -> u32 {
0
}
pub fn Poster(&self) -> DOMString {
null_string
}
pub fn SetPoster(&mut self, _poster: &DOMString, _rv: &ErrorResult) {
}
}