| 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 JSNoStaticTables | 39 JSNoStaticTables |
| 40 ] FileReader { | 40 ] FileReader { |
| 41 // ready states | 41 // ready states |
| 42 const unsigned short EMPTY = 0; | 42 const unsigned short EMPTY = 0; |
| 43 const unsigned short LOADING = 1; | 43 const unsigned short LOADING = 1; |
| 44 const unsigned short DONE = 2; | 44 const unsigned short DONE = 2; |
| 45 readonly attribute unsigned short readyState; | 45 readonly attribute unsigned short readyState; |
| 46 | 46 |
| 47 // async read methods | 47 // async read methods |
| 48 void readAsArrayBuffer(in Blob blob) | 48 void readAsArrayBuffer(in Blob blob) |
| 49 raises(OperationNotAllowedException); | 49 raises(DOMException); |
| 50 void readAsBinaryString(in Blob blob) | 50 void readAsBinaryString(in Blob blob) |
| 51 raises(OperationNotAllowedException); | 51 raises(DOMException); |
| 52 void readAsText(in Blob blob, in [Optional] DOMString encoding) | 52 void readAsText(in Blob blob, in [Optional] DOMString encoding) |
| 53 raises(OperationNotAllowedException); | 53 raises(DOMException); |
| 54 void readAsDataURL(in Blob blob) | 54 void readAsDataURL(in Blob blob) |
| 55 raises(OperationNotAllowedException); | 55 raises(DOMException); |
| 56 | 56 |
| 57 void abort(); | 57 void abort(); |
| 58 | 58 |
| 59 // file data | 59 // file data |
| 60 readonly attribute [Custom] DOMObject result; | 60 readonly attribute [Custom] DOMObject result; |
| 61 | 61 |
| 62 readonly attribute FileError error; | 62 readonly attribute FileError error; |
| 63 | 63 |
| 64 // EventTarget interface | 64 // EventTarget interface |
| 65 void addEventListener(in DOMString type, | 65 void addEventListener(in DOMString type, |
| 66 in EventListener listener, | 66 in EventListener listener, |
| 67 in [Optional] boolean useCapture); | 67 in [Optional] boolean useCapture); |
| 68 void removeEventListener(in DOMString type, | 68 void removeEventListener(in DOMString type, |
| 69 in EventListener listener, | 69 in EventListener listener, |
| 70 in [Optional] boolean useCapture); | 70 in [Optional] boolean useCapture); |
| 71 boolean dispatchEvent(in Event evt) | 71 boolean dispatchEvent(in Event evt) |
| 72 raises(EventException); | 72 raises(EventException); |
| 73 | 73 |
| 74 attribute EventListener onloadstart; | 74 attribute EventListener onloadstart; |
| 75 attribute EventListener onprogress; | 75 attribute EventListener onprogress; |
| 76 attribute EventListener onload; | 76 attribute EventListener onload; |
| 77 attribute EventListener onabort; | 77 attribute EventListener onabort; |
| 78 attribute EventListener onerror; | 78 attribute EventListener onerror; |
| 79 attribute EventListener onloadend; | 79 attribute EventListener onloadend; |
| 80 }; | 80 }; |
| 81 } | 81 } |
| OLD | NEW |