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

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

Issue 155973006: Roll IDL to 1750 (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Created 6 years, 10 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/WorkerLocation.idl ('k') | core/xml/XPathResult.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 19 matching lines...) Expand all
30 "", 30 "",
31 "arraybuffer", 31 "arraybuffer",
32 "blob", 32 "blob",
33 "document", 33 "document",
34 "json", 34 "json",
35 "text", 35 "text",
36 "stream" 36 "stream"
37 }; 37 };
38 38
39 [ 39 [
40 ActiveDOMObject,
41 CustomConstructor(optional XMLHttpRequestOptions options),
40 GlobalContext=Window&WorkerGlobalScope, 42 GlobalContext=Window&WorkerGlobalScope,
41 ActiveDOMObject,
42 Constructor,
43 ConstructorCallWith=ExecutionContext,
44 CustomConstructor(optional XMLHttpRequestOptions options)
45 ] interface XMLHttpRequest : XMLHttpRequestEventTarget { 43 ] interface XMLHttpRequest : XMLHttpRequestEventTarget {
46 // event handler attributes 44 // event handler attributes
47 attribute EventHandler onreadystatechange; 45 attribute EventHandler onreadystatechange;
48 46
49 // state 47 // state
50 const unsigned short UNSENT = 0; 48 const unsigned short UNSENT = 0;
51 const unsigned short OPENED = 1; 49 const unsigned short OPENED = 1;
52 const unsigned short HEADERS_RECEIVED = 2; 50 const unsigned short HEADERS_RECEIVED = 2;
53 const unsigned short LOADING = 3; 51 const unsigned short LOADING = 3;
54 const unsigned short DONE = 4; 52 const unsigned short DONE = 4;
55 53
56 [SetterRaisesException] attribute unsigned long timeout; 54 [RaisesException=Setter] attribute unsigned long timeout;
57 readonly attribute unsigned short readyState; 55 readonly attribute unsigned short readyState;
58 56
59 [SetterRaisesException] attribute boolean withCredentials; 57 [RaisesException=Setter] attribute boolean withCredentials;
60 58
61 [Custom, ActivityLogging=AccessForAllWorlds, RaisesException] void open(DOMS tring method, DOMString url, optional boolean async, optional DOMString user, op tional DOMString password); 59 [Custom, ActivityLogging=ForAllWorlds, RaisesException] void open(DOMString method, DOMString url, optional boolean async, optional DOMString user, optional DOMString password);
62 60
63 [ActivityLogging=AccessForAllWorlds, RaisesException] void setRequestHeader( DOMString header, DOMString value); 61 [ActivityLogging=ForAllWorlds, RaisesException] void setRequestHeader(DOMStr ing header, DOMString value);
64 62
65 [Custom, RaisesException] void send(); 63 [Custom, RaisesException] void send();
66 64
67 void abort(); 65 void abort();
68 66
69 readonly attribute XMLHttpRequestUpload upload; 67 readonly attribute XMLHttpRequestUpload upload;
70 68
71 // response 69 // response
72 [TreatReturnedNullStringAs=Undefined, RaisesException] DOMString getAllRespo nseHeaders(); 70 [TreatReturnedNullStringAs=Undefined] DOMString getAllResponseHeaders();
73 [TreatReturnedNullStringAs=Null, RaisesException] DOMString getResponseHeade r(DOMString header); 71 [TreatReturnedNullStringAs=Null] DOMString getResponseHeader(DOMString heade r);
74 [CustomGetter, GetterRaisesException] readonly attribute DOMString responseT ext; // The custom getter implements TreatReturnedNullStringAs=Null 72 [Custom=Getter, RaisesException=Getter] readonly attribute DOMString respons eText; // The custom getter implements TreatReturnedNullStringAs=Null
75 [GetterRaisesException] readonly attribute Document responseXML; 73 [RaisesException=Getter] readonly attribute Document responseXML;
76 74
77 [SetterRaisesException] attribute XMLHttpRequestResponseType responseType; 75 [RaisesException=Setter] attribute XMLHttpRequestResponseType responseType;
78 [CustomGetter, GetterRaisesException] readonly attribute Object response; 76 [Custom=Getter, RaisesException=Getter] readonly attribute object response;
79 77
80 [GetterRaisesException] readonly attribute unsigned short status; 78 readonly attribute unsigned short status;
81 [GetterRaisesException] readonly attribute DOMString statusText; 79 readonly attribute DOMString statusText;
82 80
83 // Extension 81 // Extension
84 void overrideMimeType(DOMString override); 82 void overrideMimeType(DOMString override);
85 }; 83 };
OLDNEW
« no previous file with comments | « core/workers/WorkerLocation.idl ('k') | core/xml/XPathResult.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698