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

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

Issue 17792002: Fixed old docs for WebSocket. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 " * To send data on the WebSocket, use the [send] method.", 356 " * To send data on the WebSocket, use the [send] method.",
357 " *", 357 " *",
358 " * if (webSocket != null && webSocket.readyState == WebSocket.OPEN) {", 358 " * if (webSocket != null && webSocket.readyState == WebSocket.OPEN) {",
359 " * webSocket.send(data);", 359 " * webSocket.send(data);",
360 " * } else {", 360 " * } else {",
361 " * print('WebSocket not connected, message $data not sent');", 361 " * print('WebSocket not connected, message $data not sent');",
362 " * }", 362 " * }",
363 " *", 363 " *",
364 " * To receive data on the WebSocket, register a listener for message ev ents.", 364 " * To receive data on the WebSocket, register a listener for message ev ents.",
365 " *", 365 " *",
366 " * webSocket.on.message.add((MessageEvent e) {", 366 " * webSocket.onMessage.listen((MessageEvent e) {",
367 " * receivedData(e.data);", 367 " * receivedData(e.data);",
368 " * });", 368 " * });",
369 " *", 369 " *",
370 " * The message event handler receives a [MessageEvent] object", 370 " * The message event handler receives a [MessageEvent] object",
371 " * as its sole argument.", 371 " * as its sole argument.",
372 " * You can also define open, close, and error handlers,", 372 " * You can also define open, close, and error handlers,",
373 " * as specified by [WebSocketEvents].", 373 " * as specified by [WebSocketEvents].",
374 " *", 374 " *",
375 " * For more information, see the", 375 " * For more information, see the",
376 " * [WebSockets](http://www.dartlang.org/docs/library-tour/#html-websock ets)", 376 " * [WebSockets](http://www.dartlang.org/docs/library-tour/#html-websock ets)",
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 " *", 615 " *",
616 " * [oldVersion] should match the database's current [version] exact ly.", 616 " * [oldVersion] should match the database's current [version] exact ly.",
617 " *", 617 " *",
618 " * * [Database.changeVersion](http://www.w3.org/TR/webdatabase/#dom -database-changeversion) from W3C.", 618 " * * [Database.changeVersion](http://www.w3.org/TR/webdatabase/#dom -database-changeversion) from W3C.",
619 " */" 619 " */"
620 ] 620 ]
621 } 621 }
622 } 622 }
623 } 623 }
624 } 624 }
OLDNEW
« 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