| 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 15 matching lines...) Expand all Loading... |
| 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 ActiveScriptWrappable, |
| 36 GarbageCollected, | |
| 37 DependentLifetime, | 36 DependentLifetime, |
| 38 Constructor, | 37 Constructor, |
| 39 ConstructorCallWith=ExecutionContext, | 38 ConstructorCallWith=ExecutionContext, |
| 40 Exposed=(Window,Worker), | 39 Exposed=(Window,Worker), |
| 41 ] interface FileReader : EventTarget { | 40 ] interface FileReader : EventTarget { |
| 42 // async read methods | 41 // async read methods |
| 43 [RaisesException] void readAsArrayBuffer(Blob blob); | 42 [RaisesException] void readAsArrayBuffer(Blob blob); |
| 44 // TODO(philipj): readAsBinaryString() was removed from the spec in 2012: | 43 // TODO(philipj): readAsBinaryString() was removed from the spec in 2012: |
| 45 // https://github.com/w3c/FileAPI/commit/8cce54559dc27bf8b8244f3f0ca9fb3e4d9
6efdb | 44 // https://github.com/w3c/FileAPI/commit/8cce54559dc27bf8b8244f3f0ca9fb3e4d9
6efdb |
| 46 [RaisesException, Measure] void readAsBinaryString(Blob blob); | 45 [RaisesException, Measure] void readAsBinaryString(Blob blob); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 63 [Measure] readonly attribute FileError? error; | 62 [Measure] readonly attribute FileError? error; |
| 64 | 63 |
| 65 // event handler attributes | 64 // event handler attributes |
| 66 attribute EventHandler onloadstart; | 65 attribute EventHandler onloadstart; |
| 67 attribute EventHandler onprogress; | 66 attribute EventHandler onprogress; |
| 68 attribute EventHandler onload; | 67 attribute EventHandler onload; |
| 69 attribute EventHandler onabort; | 68 attribute EventHandler onabort; |
| 70 attribute EventHandler onerror; | 69 attribute EventHandler onerror; |
| 71 attribute EventHandler onloadend; | 70 attribute EventHandler onloadend; |
| 72 }; | 71 }; |
| OLD | NEW |