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

Unified Diff: tools/dom/docs/docs.json

Issue 12156002: A bunch more documentation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/docs/docs.json
diff --git a/tools/dom/docs/docs.json b/tools/dom/docs/docs.json
index a8c16aa29366a7fc115e2c05033feeb9f069f5b1..89087ea78dcce4d6570073e8a86a7bf6fedc6eb9 100644
--- a/tools/dom/docs/docs.json
+++ b/tools/dom/docs/docs.json
@@ -104,7 +104,7 @@
"/// Deprecated: use new Element.tag(tagName) instead."
],
"createTouchList": [
- "/// Use the [TouchList] constructor isntead."
+ "/// Use the [TouchList] constructor instead."
],
"getCSSCanvasContext": [
"/// Moved to [HtmlDocument]."
@@ -288,6 +288,40 @@
" * of [common MIME types](http://en.wikipedia.org/wiki/Internet_media_type#List_of_common_media_types)",
" */"
],
+ "readyState": [
+ "/**",
+ " * Indicator of the current state of the request:",
+ " *",
+ " * <table>",
+ " * <tr>",
+ " * <td>Value</td>",
+ " * <td>State</td>",
+ " * <td>Meaning</td>",
+ " * </tr>",
+ " * <tr>",
+ " * <td>0</td>",
+ " * <td>unsent</td>",
+ " * <td><code>open()</code> has not yet been called</td>",
+ " * </tr>",
+ " * <tr>",
+ " * <td>1</td>",
+ " * <td>opened</td>",
+ " * <td><code>send()</code> has not yet been called</td>",
+ " * </tr>",
+ " * <tr>",
+ " * <td>2</td>",
+ " * <td>headers received</td>",
+ " * <td><code>sent()</code> has been called; response headers and <code>status</code> are available</td>",
+ " * </tr>",
+ " * <tr>",
+ " * <td>3</td> <td>loading</td> <td><code>responseText</code> holds some data</td>",
+ " * </tr>",
+ " * <tr>",
+ " * <td>4</td> <td>done</td> <td>request is complete</td>",
+ " * </tr>",
+ " * </table>",
+ " */"
+ ],
"response": [
"/**",
" * The data received as a reponse from the request.",
@@ -314,6 +348,15 @@
" * See also: [MDN responseType](https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest#responseType)",
" */"
],
+ "responseXML": [
+ "/**",
+ " * The request response, or null on failure.",
+ " *",
+ " * The response is processed as",
+ " * `text/xml` stream, unless responseType = 'document' and the request is",
+ " * synchronous.",
+ " */"
+ ],
"send": [
"/**",
" * Send the request with any given `data`.",
@@ -361,7 +404,8 @@
" *",
" * is the (more verbose) equivalent of",
" *",
- " * var request = new HttpRequest.get('http://dartlang.org', (event) => print('Request complete'));",
+ " * var request = new HttpRequest.get('http://dartlang.org',",
+ " * (event) => print('Request complete'));",
" */"
]
}
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698