From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/WebCore/fileapi/Blob.idl | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'Source/WebCore/fileapi/Blob.idl') 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 blobParts, optional BlobPropertyBag options), + Constructor(optional sequence 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(); + +}; -- cgit v1.2.1