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

Side by Side Diff: client/dom/generated/src/frog/XMLHttpRequest.dart

Issue 9221006: Move frog dart:dom from fields to getters/setters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: comment Created 8 years, 11 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
OLDNEW
1 1
2 class XMLHttpRequest native "*XMLHttpRequest" { 2 class XMLHttpRequest native "*XMLHttpRequest" {
3 XMLHttpRequest() native; 3 XMLHttpRequest() native;
4 4
5 5
6 static final int DONE = 4; 6 static final int DONE = 4;
7 7
8 static final int HEADERS_RECEIVED = 2; 8 static final int HEADERS_RECEIVED = 2;
9 9
10 static final int LOADING = 3; 10 static final int LOADING = 3;
11 11
12 static final int OPENED = 1; 12 static final int OPENED = 1;
13 13
14 static final int UNSENT = 0; 14 static final int UNSENT = 0;
15 15
16 bool asBlob; 16 bool get asBlob() native "return this.asBlob;";
17 17
18 int readyState; 18 void set asBlob(bool value) native "this.asBlob = value;";
19 19
20 Blob responseBlob; 20 int get readyState() native "return this.readyState;";
21 21
22 String responseText; 22 Blob get responseBlob() native "return this.responseBlob;";
23 23
24 String responseType; 24 String get responseText() native "return this.responseText;";
25 25
26 Document responseXML; 26 String get responseType() native "return this.responseType;";
27 27
28 int status; 28 void set responseType(String value) native "this.responseType = value;";
29 29
30 String statusText; 30 Document get responseXML() native "return this.responseXML;";
31 31
32 XMLHttpRequestUpload upload; 32 int get status() native "return this.status;";
33 33
34 bool withCredentials; 34 String get statusText() native "return this.statusText;";
35
36 XMLHttpRequestUpload get upload() native "return this.upload;";
37
38 bool get withCredentials() native "return this.withCredentials;";
39
40 void set withCredentials(bool value) native "this.withCredentials = value;";
35 41
36 void abort() native; 42 void abort() native;
37 43
38 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native; 44 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native;
39 45
40 bool dispatchEvent(Event evt) native; 46 bool dispatchEvent(Event evt) native;
41 47
42 String getAllResponseHeaders() native; 48 String getAllResponseHeaders() native;
43 49
44 String getResponseHeader(String header) native; 50 String getResponseHeader(String header) native;
45 51
46 void open(String method, String url, [bool async = null, String user = null, S tring password = null]) native; 52 void open(String method, String url, [bool async = null, String user = null, S tring password = null]) native;
47 53
48 void overrideMimeType(String override) native; 54 void overrideMimeType(String override) native;
49 55
50 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native; 56 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native;
51 57
52 void send([var data = null]) native; 58 void send([var data = null]) native;
53 59
54 void setRequestHeader(String header, String value) native; 60 void setRequestHeader(String header, String value) native;
55 61
56 var dartObjectLocalStorage; 62 var dartObjectLocalStorage;
57 63
58 String get typeName() native; 64 String get typeName() native;
59 } 65 }
OLDNEW
« no previous file with comments | « client/dom/generated/src/frog/WorkerNavigator.dart ('k') | client/dom/generated/src/frog/XMLHttpRequestException.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698