diff options
author | Tetsuharu OHZEKI <saneyuki.s.snyk@gmail.com> | 2013-08-31 19:46:55 +0900 |
---|---|---|
committer | Tetsuharu OHZEKI <saneyuki.s.snyk@gmail.com> | 2013-09-01 06:51:33 +0900 |
commit | 17e888bfea95dd0da29898decd284b79d9681d7c (patch) | |
tree | d0c3450cdcb8d84306cd9bb879e7f575700aba3a /src/components/script/dom/htmlvideoelement.rs | |
parent | a76e46416a6d68f5a3c5b3bb5badff25078f1b94 (diff) | |
download | servo-17e888bfea95dd0da29898decd284b79d9681d7c.tar.gz servo-17e888bfea95dd0da29898decd284b79d9681d7c.zip |
Generate bindings for HTMLAudioElement, HTMLVideoElement.
Diffstat (limited to 'src/components/script/dom/htmlvideoelement.rs')
-rw-r--r-- | src/components/script/dom/htmlvideoelement.rs | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/components/script/dom/htmlvideoelement.rs b/src/components/script/dom/htmlvideoelement.rs new file mode 100644 index 00000000000..19a6a546fed --- /dev/null +++ b/src/components/script/dom/htmlvideoelement.rs @@ -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) { + } +} |