| 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 15 matching lines...) Expand all Loading... |
| 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 enum XMLHttpRequestResponseType { | 29 enum XMLHttpRequestResponseType { |
| 30 "", | 30 "", |
| 31 "arraybuffer", | 31 "arraybuffer", |
| 32 "blob", | 32 "blob", |
| 33 "document", | 33 "document", |
| 34 "json", | 34 "json", |
| 35 "text", | 35 "text", |
| 36 "legacystream" | 36 "legacystream", |
| 37 "stream" |
| 37 }; | 38 }; |
| 38 | 39 |
| 39 [ | 40 [ |
| 40 WillBeGarbageCollected, | 41 WillBeGarbageCollected, |
| 41 ActiveDOMObject, | 42 ActiveDOMObject, |
| 42 CustomConstructor(optional XMLHttpRequestOptions options), | 43 CustomConstructor(optional XMLHttpRequestOptions options), |
| 43 Exposed=(Window,DedicatedWorker,SharedWorker) | 44 Exposed=(Window,DedicatedWorker,SharedWorker) |
| 44 ] interface XMLHttpRequest : XMLHttpRequestEventTarget { | 45 ] interface XMLHttpRequest : XMLHttpRequestEventTarget { |
| 45 // event handler attributes | 46 // event handler attributes |
| 46 attribute EventHandler onreadystatechange; | 47 attribute EventHandler onreadystatechange; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 [RaisesException=Getter] readonly attribute Document responseXML; | 82 [RaisesException=Getter] readonly attribute Document responseXML; |
| 82 | 83 |
| 83 [RaisesException=Setter] attribute XMLHttpRequestResponseType responseType; | 84 [RaisesException=Setter] attribute XMLHttpRequestResponseType responseType; |
| 84 [Custom=Getter, RaisesException=Getter] readonly attribute object response; | 85 [Custom=Getter, RaisesException=Getter] readonly attribute object response; |
| 85 readonly attribute DOMString responseURL; | 86 readonly attribute DOMString responseURL; |
| 86 | 87 |
| 87 readonly attribute unsigned short status; | 88 readonly attribute unsigned short status; |
| 88 readonly attribute DOMString statusText; | 89 readonly attribute DOMString statusText; |
| 89 | 90 |
| 90 // Extension | 91 // Extension |
| 91 void overrideMimeType(DOMString override); | 92 [RaisesException] void overrideMimeType(DOMString override); |
| 92 }; | 93 }; |
| OLD | NEW |