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

Unified Diff: Source/core/xmlhttprequest/XMLHttpRequest.idl

Issue 1155313002: Rearrange the XHR interfaces to match the spec order (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add spec link Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/xmlhttprequest/XMLHttpRequestEventTarget.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/xmlhttprequest/XMLHttpRequest.idl
diff --git a/Source/core/xmlhttprequest/XMLHttpRequest.idl b/Source/core/xmlhttprequest/XMLHttpRequest.idl
index 9553634830561ced5f58d4f296bd4a16c3ca8d1c..8aadc72283c72ec7446febf4cd5f236ae68734c6 100644
--- a/Source/core/xmlhttprequest/XMLHttpRequest.idl
+++ b/Source/core/xmlhttprequest/XMLHttpRequest.idl
@@ -46,44 +46,35 @@ enum XMLHttpRequestResponseType {
ConstructorCallWith=ScriptState,
Exposed=(Window,DedicatedWorker,SharedWorker)
] interface XMLHttpRequest : XMLHttpRequestEventTarget {
- // event handler attributes
+ // event handler
attribute EventHandler onreadystatechange;
- // state
+ // states
const unsigned short UNSENT = 0;
const unsigned short OPENED = 1;
const unsigned short HEADERS_RECEIVED = 2;
const unsigned short LOADING = 3;
const unsigned short DONE = 4;
-
- [RaisesException=Setter] attribute unsigned long timeout;
readonly attribute unsigned short readyState;
- [RaisesException=Setter] attribute boolean withCredentials;
-
+ // request
[RaisesException] void open(DOMString method, DOMString url, optional boolean async, [TreatUndefinedAs=NullString] optional DOMString? user, [TreatUndefinedAs=NullString] optional DOMString? password);
-
[RaisesException] void setRequestHeader(DOMString header, DOMString value);
-
+ [RaisesException=Setter] attribute unsigned long timeout;
+ [RaisesException=Setter] attribute boolean withCredentials;
+ readonly attribute XMLHttpRequestUpload upload;
[RaisesException] void send(optional (ArrayBuffer or ArrayBufferView or Blob or Document or DOMString or FormData)? data);
-
void abort();
- readonly attribute XMLHttpRequestUpload upload;
-
// response
- [TreatReturnedNullStringAs=Undefined] DOMString getAllResponseHeaders();
- DOMString? getResponseHeader(DOMString header);
- [Custom=Getter, RaisesException=Getter] readonly attribute DOMString? responseText;
- [RaisesException=Getter] readonly attribute Document responseXML;
-
- [RaisesException=Setter] attribute XMLHttpRequestResponseType responseType;
- [Custom=Getter, RaisesException=Getter] readonly attribute object response;
readonly attribute DOMString responseURL;
-
readonly attribute unsigned short status;
readonly attribute DOMString statusText;
-
- // Extension
+ DOMString? getResponseHeader(DOMString header);
+ [TreatReturnedNullStringAs=Undefined] DOMString getAllResponseHeaders();
[RaisesException] void overrideMimeType(DOMString override);
+ [RaisesException=Setter] attribute XMLHttpRequestResponseType responseType;
+ [Custom=Getter, RaisesException=Getter] readonly attribute object response;
+ [Custom=Getter, RaisesException=Getter] readonly attribute DOMString? responseText;
+ [RaisesException=Getter] readonly attribute Document responseXML;
};
« no previous file with comments | « no previous file | Source/core/xmlhttprequest/XMLHttpRequestEventTarget.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698