Index: core/fileapi/Blob.idl |
diff --git a/core/fileapi/Blob.idl b/core/fileapi/Blob.idl |
index 5f59e11b6735497fb9fb01e6911b5ccb73e04e58..4abe9ed0ebb6662aa29a30c099dcd05e3c942ab9 100644 |
--- a/core/fileapi/Blob.idl |
+++ b/core/fileapi/Blob.idl |
@@ -28,17 +28,22 @@ |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
+// https://w3c.github.io/FileAPI/#blob |
+ |
[ |
- WillBeGarbageCollected, |
- CustomConstructor, |
- CustomConstructor(sequence<any> blobParts, optional BlobPropertyBag options), |
+ GarbageCollected, |
+ Constructor, |
+ Constructor(sequence<(ArrayBuffer or ArrayBufferView or Blob or DOMString)> blobParts, optional BlobPropertyBag options), |
+ RaisesException=Constructor, |
Exposed=(Window,Worker), |
- SpecialWrapFor=File, |
] interface Blob { |
readonly attribute unsigned long long size; |
readonly attribute DOMString type; |
+ // TODO(jsbell): Implement: |
+ // readonly attribute boolean isClosed; |
+ // TODO(jsbell): start and end arguments should be [Clamp] |
+ // TODO(philipj): contentType should not be optional or nullable. |
[RaisesException] Blob slice(optional long long start, optional long long end, [TreatUndefinedAs=NullString] optional DOMString? contentType); |
[RaisesException, CallWith=ExecutionContext, RuntimeEnabled=FileAPIBlobClose] void close(); |
}; |
- |