aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/Blob.webidl
diff options
context:
space:
mode:
authorShing Lyu <slyu@mozilla.com>2014-11-14 23:56:48 +0800
committerShing Lyu <shing.lyu@gmail.com>2014-12-09 22:52:19 +0800
commitf2885b8fc75d9c38ff4557d711e67d38bee20069 (patch)
treedb3fa793380e1966c1fe13ebb06d04b49d148ad5 /components/script/dom/webidls/Blob.webidl
parentbdb3a2538b9f10aad4c911cc0118257d8311cd26 (diff)
downloadservo-f2885b8fc75d9c38ff4557d711e67d38bee20069.tar.gz
servo-f2885b8fc75d9c38ff4557d711e67d38bee20069.zip
Issue #1820 - Improve the Blob implementation
Diffstat (limited to 'components/script/dom/webidls/Blob.webidl')
-rw-r--r--components/script/dom/webidls/Blob.webidl11
1 files changed, 8 insertions, 3 deletions
diff --git a/components/script/dom/webidls/Blob.webidl b/components/script/dom/webidls/Blob.webidl
index 3a544024338..6c8bbed1935 100644
--- a/components/script/dom/webidls/Blob.webidl
+++ b/components/script/dom/webidls/Blob.webidl
@@ -6,18 +6,23 @@
// http://dev.w3.org/2006/webapi/FileAPI/#dfn-Blob
//[Exposed=Window,Worker][Constructor,
// Constructor(sequence<(ArrayBuffer or ArrayBufferView or Blob or DOMString)> blobParts, optional BlobPropertyBag options)]
-[Constructor]
+[Constructor,
+ Constructor(DOMString blobParts)]
interface Blob {
- //readonly attribute unsigned long long size;
- //readonly attribute DOMString type;
+ readonly attribute unsigned long long size;
+ readonly attribute DOMString type;
//readonly attribute boolean isClosed;
//slice Blob into byte-ranged chunks
+ //TODO: implement slice with [Clamp]
//Blob slice([Clamp] optional long long start,
// [Clamp] optional long long end,
// optional DOMString contentType);
+ Blob slice(optional long long start,
+ optional long long end,
+ optional DOMString contentType);
//void close();
};