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 24 matching lines...) Expand all Loading... |
35 // "json", | 35 // "json", |
36 "text" | 36 "text" |
37 }; | 37 }; |
38 | 38 |
39 [ | 39 [ |
40 GlobalContext=Window&WorkerGlobalScope, | 40 GlobalContext=Window&WorkerGlobalScope, |
41 ActiveDOMObject, | 41 ActiveDOMObject, |
42 Constructor, | 42 Constructor, |
43 ConstructorCallWith=ScriptExecutionContext, | 43 ConstructorCallWith=ScriptExecutionContext, |
44 CustomConstructor(optional XMLHttpRequestOptions options) | 44 CustomConstructor(optional XMLHttpRequestOptions options) |
45 ] interface XMLHttpRequest : EventTarget { | 45 ] interface XMLHttpRequest : XMLHttpRequestEventTarget { |
46 // From XMLHttpRequestEventTarget | |
47 // event handler attributes | |
48 attribute EventHandler onabort; | |
49 attribute EventHandler onerror; | |
50 attribute EventHandler onload; | |
51 attribute EventHandler onloadend; | |
52 attribute EventHandler onloadstart; | |
53 attribute EventHandler onprogress; | |
54 attribute EventHandler ontimeout; | |
55 | |
56 // event handler attributes | 46 // event handler attributes |
57 attribute EventHandler onreadystatechange; | 47 attribute EventHandler onreadystatechange; |
58 | 48 |
59 // state | 49 // state |
60 const unsigned short UNSENT = 0; | 50 const unsigned short UNSENT = 0; |
61 const unsigned short OPENED = 1; | 51 const unsigned short OPENED = 1; |
62 const unsigned short HEADERS_RECEIVED = 2; | 52 const unsigned short HEADERS_RECEIVED = 2; |
63 const unsigned short LOADING = 3; | 53 const unsigned short LOADING = 3; |
64 const unsigned short DONE = 4; | 54 const unsigned short DONE = 4; |
65 | 55 |
(...skipping 20 matching lines...) Expand all Loading... |
86 | 76 |
87 [SetterRaisesException] attribute XMLHttpRequestResponseType responseType; | 77 [SetterRaisesException] attribute XMLHttpRequestResponseType responseType; |
88 [CustomGetter, GetterRaisesException] readonly attribute Object response; | 78 [CustomGetter, GetterRaisesException] readonly attribute Object response; |
89 | 79 |
90 [GetterRaisesException] readonly attribute unsigned short status; | 80 [GetterRaisesException] readonly attribute unsigned short status; |
91 [GetterRaisesException] readonly attribute DOMString statusText; | 81 [GetterRaisesException] readonly attribute DOMString statusText; |
92 | 82 |
93 // Extension | 83 // Extension |
94 void overrideMimeType(DOMString override); | 84 void overrideMimeType(DOMString override); |
95 }; | 85 }; |
OLD | NEW |