diff options
Diffstat (limited to 'src/components/script/dom/htmlmediaelement.rs')
-rw-r--r-- | src/components/script/dom/htmlmediaelement.rs | 171 |
1 files changed, 0 insertions, 171 deletions
diff --git a/src/components/script/dom/htmlmediaelement.rs b/src/components/script/dom/htmlmediaelement.rs index 6b939a1b001..ca9f7d9d0e9 100644 --- a/src/components/script/dom/htmlmediaelement.rs +++ b/src/components/script/dom/htmlmediaelement.rs @@ -4,7 +4,6 @@ use dom::bindings::js::{JSRef}; use dom::bindings::codegen::InheritTypes::HTMLMediaElementDerived; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::{ElementTypeId, HTMLAudioElementTypeId, HTMLVideoElementTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; @@ -36,174 +35,4 @@ impl HTMLMediaElement { } pub trait HTMLMediaElementMethods { - fn Src(&self) -> DOMString; - fn SetSrc(&self, _src: DOMString) -> ErrorResult; - fn CurrentSrc(&self) -> DOMString; - fn CrossOrigin(&self) -> DOMString; - fn SetCrossOrigin(&self, _cross_origin: DOMString) -> ErrorResult; - fn Preload(&self) -> DOMString; - fn SetPreload(&self, _preload: DOMString) -> ErrorResult; - fn Load(&self); - fn CanPlayType(&self, _type: DOMString) -> DOMString; - fn ReadyState(&self) -> u16; - fn Seeking(&self) -> bool; - fn CurrentTime(&self) -> f64; - fn SetCurrentTime(&self, _current_time: f64) -> ErrorResult; - fn GetDuration(&self) -> f64; - fn Paused(&self) -> bool; - fn DefaultPlaybackRate(&self) -> f64; - fn SetDefaultPlaybackRate(&self, _default_playback_rate: f64) -> ErrorResult; - fn PlaybackRate(&self) -> f64; - fn SetPlaybackRate(&self, _playback_rate: f64) -> ErrorResult; - fn Ended(&self) -> bool; - fn Autoplay(&self) -> bool; - fn SetAutoplay(&self, _autoplay: bool) -> ErrorResult; - fn Loop(&self) -> bool; - fn SetLoop(&self, _loop: bool) -> ErrorResult; - fn Play(&self) -> ErrorResult; - fn Pause(&self) -> ErrorResult; - fn Controls(&self) -> bool; - fn SetControls(&self, _controls: bool) -> ErrorResult; - fn Volume(&self) -> f64; - fn SetVolume(&self, _volume: f64) -> ErrorResult; - fn Muted(&self) -> bool; - fn SetMuted(&self, _muted: bool); - fn DefaultMuted(&self) -> bool; - fn SetDefaultMuted(&self, _default_muted: bool) -> ErrorResult; -} - -impl<'a> HTMLMediaElementMethods for JSRef<'a, HTMLMediaElement> { - fn Src(&self) -> DOMString { - "".to_owned() - } - - fn SetSrc(&self, _src: DOMString) -> ErrorResult { - Ok(()) - } - - fn CurrentSrc(&self) -> DOMString { - "".to_owned() - } - - fn CrossOrigin(&self) -> DOMString { - "".to_owned() - } - - fn SetCrossOrigin(&self, _cross_origin: DOMString) -> ErrorResult { - Ok(()) - } - - fn Preload(&self) -> DOMString { - "".to_owned() - } - - fn SetPreload(&self, _preload: DOMString) -> ErrorResult { - Ok(()) - } - - fn Load(&self) { - } - - fn CanPlayType(&self, _type: DOMString) -> DOMString { - "".to_owned() - } - - fn ReadyState(&self) -> u16 { - 0 - } - - fn Seeking(&self) -> bool { - false - } - - fn CurrentTime(&self) -> f64 { - 0f64 - } - - fn SetCurrentTime(&self, _current_time: f64) -> ErrorResult { - Ok(()) - } - - fn GetDuration(&self) -> f64 { - 0f64 - } - - fn Paused(&self) -> bool { - false - } - - fn DefaultPlaybackRate(&self) -> f64 { - 0f64 - } - - fn SetDefaultPlaybackRate(&self, _default_playback_rate: f64) -> ErrorResult { - Ok(()) - } - - fn PlaybackRate(&self) -> f64 { - 0f64 - } - - fn SetPlaybackRate(&self, _playback_rate: f64) -> ErrorResult { - Ok(()) - } - - fn Ended(&self) -> bool { - false - } - - fn Autoplay(&self) -> bool { - false - } - - fn SetAutoplay(&self, _autoplay: bool) -> ErrorResult { - Ok(()) - } - - fn Loop(&self) -> bool { - false - } - - fn SetLoop(&self, _loop: bool) -> ErrorResult { - Ok(()) - } - - fn Play(&self) -> ErrorResult { - Ok(()) - } - - fn Pause(&self) -> ErrorResult { - Ok(()) - } - - fn Controls(&self) -> bool { - false - } - - fn SetControls(&self, _controls: bool) -> ErrorResult { - Ok(()) - } - - fn Volume(&self) -> f64 { - 0f64 - } - - fn SetVolume(&self, _volume: f64) -> ErrorResult { - Ok(()) - } - - fn Muted(&self) -> bool { - false - } - - fn SetMuted(&self, _muted: bool) { - } - - fn DefaultMuted(&self) -> bool { - false - } - - fn SetDefaultMuted(&self, _default_muted: bool) -> ErrorResult { - Ok(()) - } } |