| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2011 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 JSNoStaticTables | 36 JSNoStaticTables |
| 37 ] interface XMLHttpRequest { | 37 ] interface XMLHttpRequest { |
| 38 // From XMLHttpRequestEventTarget | 38 // From XMLHttpRequestEventTarget |
| 39 // event handler attributes | 39 // event handler attributes |
| 40 attribute EventListener onabort; | 40 attribute EventListener onabort; |
| 41 attribute EventListener onerror; | 41 attribute EventListener onerror; |
| 42 attribute EventListener onload; | 42 attribute EventListener onload; |
| 43 attribute EventListener onloadend; | 43 attribute EventListener onloadend; |
| 44 attribute EventListener onloadstart; | 44 attribute EventListener onloadstart; |
| 45 attribute EventListener onprogress; | 45 attribute EventListener onprogress; |
| 46 [Conditional=XHR_TIMEOUT] attribute EventListener ontimeout; |
| 46 | 47 |
| 47 // event handler attributes | 48 // event handler attributes |
| 48 attribute EventListener onreadystatechange; | 49 attribute EventListener onreadystatechange; |
| 49 | 50 |
| 50 // state | 51 // state |
| 51 const unsigned short UNSENT = 0; | 52 const unsigned short UNSENT = 0; |
| 52 const unsigned short OPENED = 1; | 53 const unsigned short OPENED = 1; |
| 53 const unsigned short HEADERS_RECEIVED = 2; | 54 const unsigned short HEADERS_RECEIVED = 2; |
| 54 const unsigned short LOADING = 3; | 55 const unsigned short LOADING = 3; |
| 55 const unsigned short DONE = 4; | 56 const unsigned short DONE = 4; |
| 56 | 57 |
| 58 [Conditional=XHR_TIMEOUT] attribute unsigned long timeout |
| 59 setter raises(DOMException); |
| 57 readonly attribute unsigned short readyState; | 60 readonly attribute unsigned short readyState; |
| 58 | 61 |
| 59 attribute boolean withCredentials | 62 attribute boolean withCredentials |
| 60 setter raises(DOMException); | 63 setter raises(DOMException); |
| 61 | 64 |
| 62 [Custom] void open(in DOMString method, in DOMString url, in [Optional] bool
ean async, in [Optional] DOMString user, in [Optional] DOMString password) | 65 [Custom] void open(in DOMString method, in DOMString url, in [Optional] bool
ean async, in [Optional] DOMString user, in [Optional] DOMString password) |
| 63 raises(DOMException); | 66 raises(DOMException); |
| 64 | 67 |
| 65 void setRequestHeader(in DOMString header, in DOMString value) | 68 void setRequestHeader(in DOMString header, in DOMString value) |
| 66 raises(DOMException); | 69 raises(DOMException); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 // EventTarget interface | 113 // EventTarget interface |
| 111 void addEventListener(in DOMString type, | 114 void addEventListener(in DOMString type, |
| 112 in EventListener listener, | 115 in EventListener listener, |
| 113 in [Optional] boolean useCapture); | 116 in [Optional] boolean useCapture); |
| 114 void removeEventListener(in DOMString type, | 117 void removeEventListener(in DOMString type, |
| 115 in EventListener listener, | 118 in EventListener listener, |
| 116 in [Optional] boolean useCapture); | 119 in [Optional] boolean useCapture); |
| 117 boolean dispatchEvent(in Event evt) | 120 boolean dispatchEvent(in Event evt) |
| 118 raises(EventException); | 121 raises(EventException); |
| 119 }; | 122 }; |
| 120 | |
| OLD | NEW |