aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/htmlmediaelement.rs
diff options
context:
space:
mode:
authorbors-servo <release+servo@mozilla.com>2014-06-01 13:37:49 -0400
committerbors-servo <release+servo@mozilla.com>2014-06-01 13:37:49 -0400
commit6751990c0d6e55d694ecc83371197536f4c87c47 (patch)
tree8ae77efb4e3340c09be193a08e9be591beef665a /src/components/script/dom/htmlmediaelement.rs
parenteaae994d5761e137ecc847e6b38cbcaf9ff88c19 (diff)
parent2f0929fc363876475b1494034763b00ef0715fea (diff)
downloadservo-6751990c0d6e55d694ecc83371197536f4c87c47.tar.gz
servo-6751990c0d6e55d694ecc83371197536f4c87c47.zip
auto merge of #2543 : Ms2ger/servo/nyi, r=jdm
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(())
- }
}