| 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 28 matching lines...) Expand all Loading... |
| 39 const unsigned short EMPTY = 0; | 39 const unsigned short EMPTY = 0; |
| 40 const unsigned short LOADING = 1; | 40 const unsigned short LOADING = 1; |
| 41 const unsigned short DONE = 2; | 41 const unsigned short DONE = 2; |
| 42 readonly attribute unsigned short readyState; | 42 readonly attribute unsigned short readyState; |
| 43 | 43 |
| 44 // async read methods | 44 // async read methods |
| 45 [RaisesException] void readAsArrayBuffer(Blob blob); | 45 [RaisesException] void readAsArrayBuffer(Blob blob); |
| 46 [RaisesException] void readAsBinaryString(Blob blob); | 46 [RaisesException] void readAsBinaryString(Blob blob); |
| 47 [RaisesException] void readAsText(Blob blob, optional DOMString encoding); | 47 [RaisesException] void readAsText(Blob blob, optional DOMString encoding); |
| 48 [RaisesException] void readAsDataURL(Blob blob); | 48 [RaisesException] void readAsDataURL(Blob blob); |
| 49 [EnabledAtRuntime=stream, RaisesException] void readAsArrayBuffer(Stream str
eam); |
| 49 | 50 |
| 50 void abort(); | 51 void abort(); |
| 51 | 52 |
| 52 // file data | 53 // file data |
| 53 [Custom] readonly attribute any result; | 54 [Custom] readonly attribute any result; |
| 54 | 55 |
| 55 readonly attribute FileError error; | 56 readonly attribute FileError error; |
| 56 | 57 |
| 57 attribute EventListener onloadstart; | 58 attribute EventListener onloadstart; |
| 58 attribute EventListener onprogress; | 59 attribute EventListener onprogress; |
| 59 attribute EventListener onload; | 60 attribute EventListener onload; |
| 60 attribute EventListener onabort; | 61 attribute EventListener onabort; |
| 61 attribute EventListener onerror; | 62 attribute EventListener onerror; |
| 62 attribute EventListener onloadend; | 63 attribute EventListener onloadend; |
| 63 }; | 64 }; |
| OLD | NEW |