Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(413)

Side by Side Diff: core/xml/XMLHttpRequest.idl

Issue 23534036: Roll IDL files forward (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « core/workers/WorkerGlobalScope.idl ('k') | core/xml/XMLHttpRequestEventTarget.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 13 matching lines...) Expand all
24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
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 // FIXME: enable once support for json responseText is completed. (bug #73648 ) 34 "json",
35 // "json",
36 "text" 35 "text"
37 }; 36 };
38 37
39 [ 38 [
40 GlobalContext=Window&WorkerGlobalScope, 39 GlobalContext=Window&WorkerGlobalScope,
41 ActiveDOMObject, 40 ActiveDOMObject,
42 Constructor, 41 Constructor,
43 ConstructorCallWith=ScriptExecutionContext, 42 ConstructorCallWith=ScriptExecutionContext,
44 CustomConstructor(optional XMLHttpRequestOptions options) 43 CustomConstructor(optional XMLHttpRequestOptions options)
45 ] interface XMLHttpRequest : EventTarget { 44 ] 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 45 // event handler attributes
57 attribute EventHandler onreadystatechange; 46 attribute EventHandler onreadystatechange;
58 47
59 // state 48 // state
60 const unsigned short UNSENT = 0; 49 const unsigned short UNSENT = 0;
61 const unsigned short OPENED = 1; 50 const unsigned short OPENED = 1;
62 const unsigned short HEADERS_RECEIVED = 2; 51 const unsigned short HEADERS_RECEIVED = 2;
63 const unsigned short LOADING = 3; 52 const unsigned short LOADING = 3;
64 const unsigned short DONE = 4; 53 const unsigned short DONE = 4;
65 54
(...skipping 20 matching lines...) Expand all
86 75
87 [SetterRaisesException] attribute XMLHttpRequestResponseType responseType; 76 [SetterRaisesException] attribute XMLHttpRequestResponseType responseType;
88 [CustomGetter, GetterRaisesException] readonly attribute Object response; 77 [CustomGetter, GetterRaisesException] readonly attribute Object response;
89 78
90 [GetterRaisesException] readonly attribute unsigned short status; 79 [GetterRaisesException] readonly attribute unsigned short status;
91 [GetterRaisesException] readonly attribute DOMString statusText; 80 [GetterRaisesException] readonly attribute DOMString statusText;
92 81
93 // Extension 82 // Extension
94 void overrideMimeType(DOMString override); 83 void overrideMimeType(DOMString override);
95 }; 84 };
OLDNEW
« no previous file with comments | « core/workers/WorkerGlobalScope.idl ('k') | core/xml/XMLHttpRequestEventTarget.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698