mirror of
https://github.com/servo/servo.git
synced 2025-06-17 12:54:28 +00:00
Generate bindings for HTMLAudioElement, HTMLVideoElement.
This commit is contained in:
parent
a76e46416a
commit
17e888bfea
10 changed files with 174 additions and 1 deletions
41
src/components/script/dom/htmlvideoelement.rs
Normal file
41
src/components/script/dom/htmlvideoelement.rs
Normal 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) {
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue