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

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

Issue 22265003: Fixing invalid code in docs for HttpRequest constructor. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 " */" 594 " */"
595 ], 595 ],
596 "XMLHttpRequest": [ 596 "XMLHttpRequest": [
597 "/**", 597 "/**",
598 " * General constructor for any type of request (GET, POST, etc).", 598 " * General constructor for any type of request (GET, POST, etc).",
599 " *", 599 " *",
600 " * This call is used in conjunction with [open]:", 600 " * This call is used in conjunction with [open]:",
601 " *", 601 " *",
602 " * var request = new HttpRequest();", 602 " * var request = new HttpRequest();",
603 " * request.open('GET', 'http://dartlang.org')", 603 " * request.open('GET', 'http://dartlang.org')",
604 " * request.onLoad.add((event) => print('Request complete'));", 604 " * request.onLoad.listen((event) => print('Request complete')); ",
605 " *", 605 " *",
606 " * is the (more verbose) equivalent of", 606 " * is the (more verbose) equivalent of",
607 " *", 607 " *",
608 " * HttpRequest.getString('http://dartlang.org').then(", 608 " * HttpRequest.getString('http://dartlang.org').then(",
609 " * (result) => print('Request complete: $result'));", 609 " * (result) => print('Request complete: $result'));",
610 " */" 610 " */"
611 ] 611 ]
612 } 612 }
613 } 613 }
614 }, 614 },
(...skipping 11 matching lines...) Expand all
626 " *", 626 " *",
627 " * [oldVersion] should match the database's current [version] exact ly.", 627 " * [oldVersion] should match the database's current [version] exact ly.",
628 " *", 628 " *",
629 " * * [Database.changeVersion](http://www.w3.org/TR/webdatabase/#dom -database-changeversion) from W3C.", 629 " * * [Database.changeVersion](http://www.w3.org/TR/webdatabase/#dom -database-changeversion) from W3C.",
630 " */" 630 " */"
631 ] 631 ]
632 } 632 }
633 } 633 }
634 } 634 }
635 } 635 }
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