diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/fileapi/Blob.idl | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/fileapi/Blob.idl')
-rw-r--r-- | Source/WebCore/fileapi/Blob.idl | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/Source/WebCore/fileapi/Blob.idl b/Source/WebCore/fileapi/Blob.idl index ca2dd343b..1ff0e308f 100644 --- a/Source/WebCore/fileapi/Blob.idl +++ b/Source/WebCore/fileapi/Blob.idl @@ -28,21 +28,23 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +typedef (ArrayBufferView or ArrayBuffer) BufferSource; +typedef (BufferSource or Blob or USVString) BlobPart; + [ - GlobalContext=DOMWindow&WorkerGlobalScope, + Exposed=(Window,Worker), GenerateIsReachable=Impl, CustomToJSObject, - JSNoStaticTables, - CustomConstructor, - CustomConstructor(sequence<any> blobParts, optional BlobPropertyBag options), + Constructor(optional sequence<BlobPart> blobParts, optional BlobPropertyBag options), ] interface Blob { readonly attribute unsigned long long size; readonly attribute DOMString type; -#if !defined(LANGUAGE_OBJECTIVE_C) -#if defined(ENABLE_BLOB) && ENABLE_BLOB - Blob slice(optional long long start, optional long long end, [TreatNullAs=NullString, TreatUndefinedAs=NullString] optional DOMString contentType); -#endif -#endif -}; + // slice Blob into byte-ranged chunks + Blob slice(optional long long start = 0, optional long long end = 0x7FFFFFFFFFFFFFFF, optional DOMString? contentType = null); + // FIXME: Implement: + // readonly attribute boolean isClosed; + // void close(); + +}; |