| 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 19 matching lines...) Expand all Loading... |
| 30 */ | 30 */ |
| 31 | 31 |
| 32 // https://w3c.github.io/FileAPI/#APIASynch | 32 // https://w3c.github.io/FileAPI/#APIASynch |
| 33 | 33 |
| 34 [ | 34 [ |
| 35 GarbageCollected, | 35 GarbageCollected, |
| 36 DependentLifetime, | 36 DependentLifetime, |
| 37 Constructor, | 37 Constructor, |
| 38 ConstructorCallWith=ExecutionContext, | 38 ConstructorCallWith=ExecutionContext, |
| 39 Exposed=(Window,Worker), | 39 Exposed=(Window,Worker), |
| 40 RequiresFinalizer, |
| 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 |
| 45 [RaisesException, Measure] void readAsBinaryString(Blob blob); | 46 [RaisesException, Measure] void readAsBinaryString(Blob blob); |
| 46 [RaisesException] void readAsText(Blob blob, optional DOMString label); | 47 [RaisesException] void readAsText(Blob blob, optional DOMString label); |
| 47 [RaisesException] void readAsDataURL(Blob blob); | 48 [RaisesException] void readAsDataURL(Blob blob); |
| 48 | 49 |
| 49 void abort(); | 50 void abort(); |
| (...skipping 12 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 |