| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 const unsigned short OPENED = 1; | 61 const unsigned short OPENED = 1; |
| 62 const unsigned short HEADERS_RECEIVED = 2; | 62 const unsigned short HEADERS_RECEIVED = 2; |
| 63 const unsigned short LOADING = 3; | 63 const unsigned short LOADING = 3; |
| 64 const unsigned short DONE = 4; | 64 const unsigned short DONE = 4; |
| 65 | 65 |
| 66 [Conditional=XHR_TIMEOUT, SetterRaisesException] attribute unsigned long tim
eout; | 66 [Conditional=XHR_TIMEOUT, SetterRaisesException] attribute unsigned long tim
eout; |
| 67 readonly attribute unsigned short readyState; | 67 readonly attribute unsigned short readyState; |
| 68 | 68 |
| 69 [SetterRaisesException] attribute boolean withCredentials; | 69 [SetterRaisesException] attribute boolean withCredentials; |
| 70 | 70 |
| 71 [Custom, RaisesException] void open(DOMString method, DOMString url, optiona
l boolean async, optional DOMString user, optional DOMString password); | 71 [Custom, ActivityLog=Access, RaisesException] void open(DOMString method, DO
MString url, optional boolean async, optional DOMString user, optional DOMString
password); |
| 72 | 72 |
| 73 [RaisesException] void setRequestHeader(DOMString header, DOMString value); | 73 [ActivityLog=Access, RaisesException] void setRequestHeader(DOMString header
, DOMString value); |
| 74 | 74 |
| 75 [Custom, RaisesException] void send(); | 75 [Custom, RaisesException] void send(); |
| 76 | 76 |
| 77 void abort(); | 77 void abort(); |
| 78 | 78 |
| 79 readonly attribute XMLHttpRequestUpload upload; | 79 readonly attribute XMLHttpRequestUpload upload; |
| 80 | 80 |
| 81 // response | 81 // response |
| 82 [TreatReturnedNullStringAs=Undefined, RaisesException] DOMString getAllRespo
nseHeaders(); | 82 [TreatReturnedNullStringAs=Undefined, RaisesException] DOMString getAllRespo
nseHeaders(); |
| 83 [TreatReturnedNullStringAs=Null, RaisesException] DOMString getResponseHeade
r(DOMString header); | 83 [TreatReturnedNullStringAs=Null, RaisesException] DOMString getResponseHeade
r(DOMString header); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 95 | 95 |
| 96 // EventTarget interface | 96 // EventTarget interface |
| 97 void addEventListener(DOMString type, | 97 void addEventListener(DOMString type, |
| 98 EventListener listener, | 98 EventListener listener, |
| 99 optional boolean useCapture); | 99 optional boolean useCapture); |
| 100 void removeEventListener(DOMString type, | 100 void removeEventListener(DOMString type, |
| 101 EventListener listener, | 101 EventListener listener, |
| 102 optional boolean useCapture); | 102 optional boolean useCapture); |
| 103 [RaisesException] boolean dispatchEvent(Event evt); | 103 [RaisesException] boolean dispatchEvent(Event evt); |
| 104 }; | 104 }; |
| OLD | NEW |