OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * Copyright (C) 2011 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 14 matching lines...) Expand all Loading... |
25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
30 */ | 30 */ |
31 | 31 |
32 // https://w3c.github.io/FileAPI/#APIASynch | 32 // https://w3c.github.io/FileAPI/#APIASynch |
33 | 33 |
34 [ | 34 [ |
| 35 ActiveScriptWrappable, |
35 GarbageCollected, | 36 GarbageCollected, |
36 DependentLifetime, | 37 DependentLifetime, |
37 Constructor, | 38 Constructor, |
38 ConstructorCallWith=ExecutionContext, | 39 ConstructorCallWith=ExecutionContext, |
39 Exposed=(Window,Worker), | 40 Exposed=(Window,Worker), |
40 ] interface FileReader : EventTarget { | 41 ] interface FileReader : EventTarget { |
41 // async read methods | 42 // async read methods |
42 [RaisesException] void readAsArrayBuffer(Blob blob); | 43 [RaisesException] void readAsArrayBuffer(Blob blob); |
43 // TODO(philipj): readAsBinaryString() was removed from the spec in 2012: | 44 // TODO(philipj): readAsBinaryString() was removed from the spec in 2012: |
44 // https://github.com/w3c/FileAPI/commit/8cce54559dc27bf8b8244f3f0ca9fb3e4d9
6efdb | 45 // https://github.com/w3c/FileAPI/commit/8cce54559dc27bf8b8244f3f0ca9fb3e4d9
6efdb |
(...skipping 17 matching lines...) Expand all Loading... |
62 [Measure] readonly attribute FileError? error; | 63 [Measure] readonly attribute FileError? error; |
63 | 64 |
64 // event handler attributes | 65 // event handler attributes |
65 attribute EventHandler onloadstart; | 66 attribute EventHandler onloadstart; |
66 attribute EventHandler onprogress; | 67 attribute EventHandler onprogress; |
67 attribute EventHandler onload; | 68 attribute EventHandler onload; |
68 attribute EventHandler onabort; | 69 attribute EventHandler onabort; |
69 attribute EventHandler onerror; | 70 attribute EventHandler onerror; |
70 attribute EventHandler onloadend; | 71 attribute EventHandler onloadend; |
71 }; | 72 }; |
OLD | NEW |