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

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

Issue 10544064: Add dummy dart:html library for documentation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 // WARNING:
6 // This file contains documentation that is merged into the real source.
7 // Do not make code changes here.
8
9 /// @domName XMLHttpRequest
10 interface XMLHttpRequest extends EventTarget default _XMLHttpRequestFactoryProvi der {
11 // TODO(rnystrom): This name should just be "get" which is valid in Dart, but
12 // not correctly implemented yet. (b/4970173)
13 XMLHttpRequest.get(String url, onSuccess(XMLHttpRequest request));
14
15 XMLHttpRequest();
16
17 /**
18 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
19 */
20 XMLHttpRequestEvents get on();
21
22 static final int DONE = 4;
23
24 static final int HEADERS_RECEIVED = 2;
25
26 static final int LOADING = 3;
27
28 static final int OPENED = 1;
29
30 static final int UNSENT = 0;
31
32 /** @domName XMLHttpRequest.asBlob */
33 bool asBlob;
34
35 /** @domName XMLHttpRequest.readyState */
36 final int readyState;
37
38 /** @domName XMLHttpRequest.response */
39 final Object response;
40
41 /** @domName XMLHttpRequest.responseBlob */
42 final Blob responseBlob;
43
44 /** @domName XMLHttpRequest.responseText */
45 final String responseText;
46
47 /** @domName XMLHttpRequest.responseType */
48 String responseType;
49
50 /** @domName XMLHttpRequest.responseXML */
51 final Document responseXML;
52
53 /** @domName XMLHttpRequest.status */
54 final int status;
55
56 /** @domName XMLHttpRequest.statusText */
57 final String statusText;
58
59 /** @domName XMLHttpRequest.upload */
60 final XMLHttpRequestUpload upload;
61
62 /** @domName XMLHttpRequest.withCredentials */
63 bool withCredentials;
64
65 /** @domName XMLHttpRequest.abort */
66 void abort();
67
68 /** @domName XMLHttpRequest.addEventListener */
69 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]);
70
71 /** @domName XMLHttpRequest.dispatchEvent */
72 bool $dom_dispatchEvent(Event evt);
73
74 /** @domName XMLHttpRequest.getAllResponseHeaders */
75 String getAllResponseHeaders();
76
77 /** @domName XMLHttpRequest.getResponseHeader */
78 String getResponseHeader(String header);
79
80 /** @domName XMLHttpRequest.open */
81 void open(String method, String url, [bool async, String user, String password ]);
82
83 /** @domName XMLHttpRequest.overrideMimeType */
84 void overrideMimeType(String override);
85
86 /** @domName XMLHttpRequest.removeEventListener */
87 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]);
88
89 /** @domName XMLHttpRequest.send */
90 void send([data]);
91
92 /** @domName XMLHttpRequest.setRequestHeader */
93 void setRequestHeader(String header, String value);
94 }
95
96 interface XMLHttpRequestEvents extends Events {
97
98 EventListenerList get abort();
99
100 EventListenerList get error();
101
102 EventListenerList get load();
103
104 EventListenerList get loadEnd();
105
106 EventListenerList get loadStart();
107
108 EventListenerList get progress();
109
110 EventListenerList get readyStateChange();
111 }
OLDNEW
« no previous file with comments | « lib/html/doc/interface/WorkerNavigator.dartdoc ('k') | lib/html/doc/interface/XMLHttpRequestException.dartdoc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698