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

Side by Side Diff: lib/html/doc/interface/HttpRequest.dartdoc

Issue 11090010: Remove explicit interface versions of dartdoc files. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // WARNING: 5 // WARNING:
6 // This file contains documentation that is merged into the real source. 6 // This file contains documentation that is merged into the real source.
7 // Do not make code changes here. 7 // Do not make code changes here.
8 8
9 /** 9 /**
10 * HttpRequest is Dart's name for the XMLHttpRequest object, as described below. 10 * HttpRequest is Dart's name for the XMLHttpRequest object, as described below.
11 */ 11 */
12 12
13 /// @domName XMLHttpRequest 13 /// @domName XMLHttpRequest
14 interface HttpRequest extends EventTarget default _XMLHttpRequestFactoryProvider { 14 abstract class HttpRequest implements EventTarget {
15 // TODO(rnystrom): This name should just be "get" which is valid in Dart, but 15 factory HttpRequest.get(String url, onSuccess(HttpRequest request)) =>
16 // not correctly implemented yet. (b/4970173) 16 _HttpRequestFactoryProvider.createHttpRequest_get(url, onSuccess);
17 HttpRequest.get(String url, onSuccess(HttpRequest request));
18 17
19 HttpRequest(); 18 factory HttpRequest.getWithCredentials(String url, onSuccess(HttpRequest reque st)) =>
19 _HttpRequestFactoryProvider.createHttpRequestgetWithCredentials(url, onSuc cess);
20
21 factory HttpRequest() => _HttpRequestFactoryProvider.createHttpRequest();
20 22
21 /** 23 /**
22 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 24 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
23 */ 25 */
24 HttpRequestEvents get on(); 26 HttpRequestEvents get on;
25 27
26 static final int DONE = 4; 28 static const int DONE = 4;
27 29
28 static final int HEADERS_RECEIVED = 2; 30 static const int HEADERS_RECEIVED = 2;
29 31
30 static final int LOADING = 3; 32 static const int LOADING = 3;
31 33
32 static final int OPENED = 1; 34 static const int OPENED = 1;
33 35
34 static final int UNSENT = 0; 36 static const int UNSENT = 0;
35
36 /** @domName XMLHttpRequest.asBlob */
37 bool asBlob;
38 37
39 /** @domName XMLHttpRequest.readyState */ 38 /** @domName XMLHttpRequest.readyState */
40 final int readyState; 39 abstract int get readyState;
41 40
42 /** @domName XMLHttpRequest.response */ 41 /** @domName XMLHttpRequest.response */
43 final Object response; 42 abstract Object get response;
44
45 /** @domName XMLHttpRequest.responseBlob */
46 final Blob responseBlob;
47 43
48 /** @domName XMLHttpRequest.responseText */ 44 /** @domName XMLHttpRequest.responseText */
49 final String responseText; 45 abstract String get responseText;
50 46
51 /** @domName XMLHttpRequest.responseType */ 47 /** @domName XMLHttpRequest.responseType */
52 String responseType; 48 String responseType;
53 49
54 /** @domName XMLHttpRequest.responseXML */ 50 /** @domName XMLHttpRequest.responseXML */
55 final Document responseXML; 51 abstract Document get responseXML;
56 52
57 /** @domName XMLHttpRequest.status */ 53 /** @domName XMLHttpRequest.status */
58 final int status; 54 abstract int get status;
59 55
60 /** @domName XMLHttpRequest.statusText */ 56 /** @domName XMLHttpRequest.statusText */
61 final String statusText; 57 abstract String get statusText;
62 58
63 /** @domName XMLHttpRequest.upload */ 59 /** @domName XMLHttpRequest.upload */
64 final HttpRequestUpload upload; 60 abstract HttpRequestUpload get upload;
65 61
66 /** @domName XMLHttpRequest.withCredentials */ 62 /** @domName XMLHttpRequest.withCredentials */
67 bool withCredentials; 63 bool withCredentials;
68 64
69 /** @domName XMLHttpRequest.abort */ 65 /** @domName XMLHttpRequest.abort */
70 void abort(); 66 void abort();
71 67
72 /** @domName XMLHttpRequest.addEventListener */ 68 /** @domName XMLHttpRequest.addEventListener */
73 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]); 69 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]);
74 70
(...skipping 15 matching lines...) Expand all
90 /** @domName XMLHttpRequest.removeEventListener */ 86 /** @domName XMLHttpRequest.removeEventListener */
91 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]); 87 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]);
92 88
93 /** @domName XMLHttpRequest.send */ 89 /** @domName XMLHttpRequest.send */
94 void send([data]); 90 void send([data]);
95 91
96 /** @domName XMLHttpRequest.setRequestHeader */ 92 /** @domName XMLHttpRequest.setRequestHeader */
97 void setRequestHeader(String header, String value); 93 void setRequestHeader(String header, String value);
98 } 94 }
99 95
100 interface HttpRequestEvents extends Events { 96 abstract class HttpRequestEvents implements Events {
101 97
102 EventListenerList get abort(); 98 EventListenerList get abort;
103 99
104 EventListenerList get error(); 100 EventListenerList get error;
105 101
106 EventListenerList get load(); 102 EventListenerList get load;
107 103
108 EventListenerList get loadEnd(); 104 EventListenerList get loadEnd;
109 105
110 EventListenerList get loadStart(); 106 EventListenerList get loadStart;
111 107
112 EventListenerList get progress(); 108 EventListenerList get progress;
113 109
114 EventListenerList get readyStateChange(); 110 EventListenerList get readyStateChange;
115 } 111 }
OLDNEW
« no previous file with comments | « lib/html/doc/interface/HtmlElement.dartdoc ('k') | lib/html/doc/interface/HttpRequestException.dartdoc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698