OLD | NEW |
---|---|
1 [Constructor, | 1 [Constructor, |
2 Constructor(sequence<(ArrayBuffer or ArrayBufferView or Blob or DOMString)> blo bParts, optional BlobPropertyBag options), Exposed=Window,Worker] | 2 Constructor(sequence<(ArrayBuffer or ArrayBufferView or Blob or DOMString)> blo bParts, optional BlobPropertyBag options), Exposed=Window,Worker] |
3 interface Blob { | 3 interface Blob { |
4 | 4 |
5 readonly attribute unsigned long long size; | 5 readonly attribute unsigned long long size; |
6 readonly attribute DOMString type; | 6 readonly attribute DOMString type; |
7 readonly attribute boolean isClosed; | 7 readonly attribute boolean isClosed; |
8 | 8 |
9 //slice Blob into byte-ranged chunks | 9 //slice Blob into byte-ranged chunks |
10 | 10 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
48 void readAsText(Blob blob, optional DOMString label); | 48 void readAsText(Blob blob, optional DOMString label); |
49 void readAsDataURL(Blob blob); | 49 void readAsDataURL(Blob blob); |
50 | 50 |
51 void abort(); | 51 void abort(); |
52 | 52 |
53 // states | 53 // states |
54 const unsigned short EMPTY = 0; | 54 const unsigned short EMPTY = 0; |
55 const unsigned short LOADING = 1; | 55 const unsigned short LOADING = 1; |
56 const unsigned short DONE = 2; | 56 const unsigned short DONE = 2; |
57 | 57 |
58 readonly attribute unsigned short readyState; | 58 [ImplementedAs=getReadyState] readonly attribute unsigned short readyState; |
tkent
2016/02/25 23:13:09
This is an imported test. You don't need to updat
danakj
2016/02/25 23:27:04
Oops I thot that fixed some v8 compile error, but
| |
59 | 59 |
60 // File or Blob data | 60 // File or Blob data |
61 readonly attribute (DOMString or ArrayBuffer)? result; | 61 readonly attribute (DOMString or ArrayBuffer)? result; |
62 | 62 |
63 readonly attribute DOMError? error; | 63 readonly attribute DOMError? error; |
64 | 64 |
65 // event handler attributes | 65 // event handler attributes |
66 attribute EventHandler onloadstart; | 66 attribute EventHandler onloadstart; |
67 attribute EventHandler onprogress; | 67 attribute EventHandler onprogress; |
68 attribute EventHandler onload; | 68 attribute EventHandler onload; |
69 attribute EventHandler onabort; | 69 attribute EventHandler onabort; |
70 attribute EventHandler onerror; | 70 attribute EventHandler onerror; |
71 attribute EventHandler onloadend; | 71 attribute EventHandler onloadend; |
72 | 72 |
73 }; | 73 }; |
74 | 74 |
75 partial interface URL { | 75 partial interface URL { |
76 | 76 |
77 static DOMString createObjectURL(Blob blob); | 77 static DOMString createObjectURL(Blob blob); |
78 static DOMString createFor(Blob blob); | 78 static DOMString createFor(Blob blob); |
79 static void revokeObjectURL(DOMString url); | 79 static void revokeObjectURL(DOMString url); |
80 | 80 |
81 }; | 81 }; |
OLD | NEW |