aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/blob.rs
diff options
context:
space:
mode:
authorTom Schuster <evilpies@gmail.com>2013-11-15 15:41:49 +0100
committerTom Schuster <evilpies@gmail.com>2013-11-15 17:56:11 +0100
commit586dd6aed64c1b6a81cc2d19f9c42f979751fb12 (patch)
treeb8c1a3ed1377ddaffa29bb2311bf6d9604d55701 /src/components/script/dom/blob.rs
parente98ddef9bbaf41adb15b158b8a0f21ef252a1a79 (diff)
downloadservo-586dd6aed64c1b6a81cc2d19f9c42f979751fb12.tar.gz
servo-586dd6aed64c1b6a81cc2d19f9c42f979751fb12.zip
Add some more Blob methods/types
Diffstat (limited to 'src/components/script/dom/blob.rs')
-rw-r--r--src/components/script/dom/blob.rs16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/components/script/dom/blob.rs b/src/components/script/dom/blob.rs
index 4b7d37aa7e9..581d9f4535c 100644
--- a/src/components/script/dom/blob.rs
+++ b/src/components/script/dom/blob.rs
@@ -2,7 +2,7 @@
* 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::{Reflectable, Reflector, reflect_dom_object};
+use dom::bindings::utils::{DOMString, Reflectable, Reflector, reflect_dom_object};
use dom::bindings::utils::Fallible;
use dom::bindings::codegen::BlobBinding;
use dom::window::Window;
@@ -29,6 +29,20 @@ impl Blob {
pub fn Constructor(window: @mut Window) -> Fallible<@mut Blob> {
Ok(Blob::new(window))
}
+
+ pub fn Size(&self) -> u64 {
+ 0
+ }
+
+ pub fn Type(&self) -> DOMString {
+ ~""
+ }
+
+ pub fn Slice(&self, _start: i64, _end: i64, _contentType: Option<DOMString>) -> @mut Blob {
+ Blob::new(self.window)
+ }
+
+ pub fn Close(&self) {}
}
impl Reflectable for Blob {