Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(658)

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/FileAPI/idlharness.idl

Issue 2697453005: Import wpt@758b3b4cfa805067f36121333ba031e583d3a62c (Closed)
Patch Set: Add -expected.txt files. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // https://w3c.github.io/FileAPI/#idl-index 1 // https://w3c.github.io/FileAPI/#idl-index
2 2
3 [Constructor(optional sequence<BlobPart> blobParts, optional BlobPropertyBag opt ions), 3 [Constructor(optional sequence<BlobPart> blobParts, optional BlobPropertyBag opt ions),
4 Exposed=(Window,Worker)] 4 Exposed=(Window,Worker)]
5 interface Blob { 5 interface Blob {
6 6
7 readonly attribute unsigned long long size; 7 readonly attribute unsigned long long size;
8 readonly attribute DOMString type; 8 readonly attribute DOMString type;
9 readonly attribute boolean isClosed;
10 9
11 //slice Blob into byte-ranged chunks 10 //slice Blob into byte-ranged chunks
12 11
13 Blob slice([Clamp] optional long long start, 12 Blob slice([Clamp] optional long long start,
14 [Clamp] optional long long end, 13 [Clamp] optional long long end,
15 optional DOMString contentType); 14 optional DOMString contentType);
16 void close();
17
18 }; 15 };
19 16
20 dictionary BlobPropertyBag { 17 dictionary BlobPropertyBag {
21 DOMString type = ""; 18 DOMString type = "";
22 }; 19 };
23 20
24 typedef (BufferSource or Blob or USVString) BlobPart; 21 typedef (BufferSource or Blob or USVString) BlobPart;
25 22
26 [Constructor(sequence<BlobPart> fileBits, 23 [Constructor(sequence<BlobPart> fileBits,
27 [EnsureUTF16] DOMString fileName, 24 [EnsureUTF16] DOMString fileName,
(...skipping 29 matching lines...) Expand all
57 const unsigned short EMPTY = 0; 54 const unsigned short EMPTY = 0;
58 const unsigned short LOADING = 1; 55 const unsigned short LOADING = 1;
59 const unsigned short DONE = 2; 56 const unsigned short DONE = 2;
60 57
61 58
62 readonly attribute unsigned short readyState; 59 readonly attribute unsigned short readyState;
63 60
64 // File or Blob data 61 // File or Blob data
65 readonly attribute (DOMString or ArrayBuffer)? result; 62 readonly attribute (DOMString or ArrayBuffer)? result;
66 63
67 readonly attribute DOMError? error; 64 readonly attribute DOMException? error;
68 65
69 // event handler content attributes 66 // event handler content attributes
70 attribute EventHandler onloadstart; 67 attribute EventHandler onloadstart;
71 attribute EventHandler onprogress; 68 attribute EventHandler onprogress;
72 attribute EventHandler onload; 69 attribute EventHandler onload;
73 attribute EventHandler onabort; 70 attribute EventHandler onabort;
74 attribute EventHandler onerror; 71 attribute EventHandler onerror;
75 attribute EventHandler onloadend; 72 attribute EventHandler onloadend;
76 73
77 }; 74 };
78 75
79 [Constructor, Exposed=Worker] 76 [Constructor, Exposed=Worker]
80 interface FileReaderSync { 77 interface FileReaderSync {
81 // Synchronously return strings 78 // Synchronously return strings
82 79
83 ArrayBuffer readAsArrayBuffer(Blob blob); 80 ArrayBuffer readAsArrayBuffer(Blob blob);
84 DOMString readAsBinaryString(Blob blob); 81 DOMString readAsBinaryString(Blob blob);
85 DOMString readAsText(Blob blob, optional DOMString label); 82 DOMString readAsText(Blob blob, optional DOMString label);
86 DOMString readAsDataURL(Blob blob); 83 DOMString readAsDataURL(Blob blob);
87 }; 84 };
88 85
89 [Exposed=(Window,DedicatedWorker,SharedWorker)] 86 [Exposed=(Window,DedicatedWorker,SharedWorker)]
90 partial interface URL { 87 partial interface URL {
91 static DOMString createObjectURL(Blob blob); 88 static DOMString createObjectURL(Blob blob);
92 static void revokeObjectURL(DOMString url); 89 static void revokeObjectURL(DOMString url);
93 }; 90 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698