aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/htmlmediaelement.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2014-06-01 15:41:09 +0200
committerMs2ger <ms2ger@gmail.com>2014-06-01 15:41:09 +0200
commita0783aebbf95659ed571dabcbb7df7784828d696 (patch)
tree9adda8f3c3b245d04dc2f47573b4962281926d89 /src/components/script/dom/htmlmediaelement.rs
parenteaae994d5761e137ecc847e6b38cbcaf9ff88c19 (diff)
downloadservo-a0783aebbf95659ed571dabcbb7df7784828d696.tar.gz
servo-a0783aebbf95659ed571dabcbb7df7784828d696.zip
Remove not-yet-implemented members from IDL and Rust code.
These stub implementations bring no value, and significantly increased maintenance costs. This commit also synchronizes the IDL with the HTML specification and makes the URLs consistent.
Diffstat (limited to 'src/components/script/dom/htmlmediaelement.rs')
-rw-r--r--src/components/script/dom/htmlmediaelement.rs171
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(())
- }
}