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

Side by Side Diff: tools/dom/docs/docs.json

Issue 12219002: 'Moved all documentation from old .dartdoc files.' (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 "dart.dom.html": { 2 "dart.dom.html": {
3 "CanvasGradient": { 3 "CanvasGradient": {
4 "comment": [ 4 "comment": [
5 "/**", 5 "/**",
6 " * An opaque canvas object representing a gradient.", 6 " * An opaque canvas object representing a gradient.",
7 " *", 7 " *",
8 " * Created by calling [createLinearGradient] or [createRadialGradient] on a", 8 " * Created by calling [createLinearGradient] or [createRadialGradient] on a",
9 " * [CanvasRenderingContext2D] object.", 9 " * [CanvasRenderingContext2D] object.",
10 " *", 10 " *",
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 " * document.body.elements.add(elem);", 243 " * document.body.elements.add(elem);",
244 " *", 244 " *",
245 " * See also:", 245 " * See also:",
246 " *", 246 " *",
247 " * * [HTML <div> element](http://www.w3.org/TR/html-markup/div.html) fr om W3C.", 247 " * * [HTML <div> element](http://www.w3.org/TR/html-markup/div.html) fr om W3C.",
248 " * * [Block-level element](http://www.w3.org/TR/CSS2/visuren.html#block -boxes) from W3C.", 248 " * * [Block-level element](http://www.w3.org/TR/CSS2/visuren.html#block -boxes) from W3C.",
249 " * * [Inline-level element](http://www.w3.org/TR/CSS2/visuren.html#inli ne-boxes) from W3C.", 249 " * * [Inline-level element](http://www.w3.org/TR/CSS2/visuren.html#inli ne-boxes) from W3C.",
250 " */" 250 " */"
251 ] 251 ]
252 }, 252 },
253 "WebSocket": {
254 "comment": [
255 "/**",
256 " * Use the WebSocket interface to connect to a WebSocket,",
257 " * and to send and receive data on that WebSocket.",
258 " *",
259 " * To use a WebSocket in your web app, first create a WebSocket object, ",
260 " * passing the WebSocket URL as an argument to the constructor.",
261 " *",
262 " * var webSocket = new WebSocket('ws://127.0.0.1:1337/ws');",
263 " *",
264 " * To send data on the WebSocket, use the [send] method.",
265 " *",
266 " * if (webSocket != null && webSocket.readyState == WebSocket.OPEN) {",
267 " * webSocket.send(data);",
268 " * } else {",
269 " * print('WebSocket not connected, message $data not sent');",
270 " * }",
271 " *",
272 " * To receive data on the WebSocket, register a listener for message ev ents.",
273 " *",
274 " * webSocket.on.message.add((MessageEvent e) {",
275 " * receivedData(e.data);",
276 " * });",
277 " *",
278 " * The message event handler receives a [MessageEvent] object",
279 " * as its sole argument.",
280 " * You can also define open, close, and error handlers,",
281 " * as specified by [WebSocketEvents].",
282 " *",
283 " * For more information, see the",
284 " * [WebSockets](http://www.dartlang.org/docs/library-tour/#html-websock ets)",
285 " * section of the library tour and",
286 " * [Introducing WebSockets](http://www.html5rocks.com/en/tutorials/webs ockets/basics/),",
287 " * an HTML5Rocks.com tutorial.",
288 " */"
289 ]
290 },
253 "XMLHttpRequest": { 291 "XMLHttpRequest": {
254 "members": { 292 "members": {
255 "abort": [ 293 "abort": [
256 "/**", 294 "/**",
257 " * Stop the current request.", 295 " * Stop the current request.",
258 " *", 296 " *",
259 " * The request can only be stopped if readyState is `HEADERS_RECIEV ED` or", 297 " * The request can only be stopped if readyState is `HEADERS_RECIEV ED` or",
260 " * `LOADING`. If this method is not in the process of being sent, t he method", 298 " * `LOADING`. If this method is not in the process of being sent, t he method",
261 " * has no effect.", 299 " * has no effect.",
262 " */" 300 " */"
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 " * is the (more verbose) equivalent of", 457 " * is the (more verbose) equivalent of",
420 " *", 458 " *",
421 " * var request = new HttpRequest.get('http://dartlang.org',", 459 " * var request = new HttpRequest.get('http://dartlang.org',",
422 " * (event) => print('Request complete'));", 460 " * (event) => print('Request complete'));",
423 " */" 461 " */"
424 ] 462 ]
425 } 463 }
426 } 464 }
427 } 465 }
428 } 466 }
OLDNEW
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/templates/html/dart2js/html_dart2js.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698