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

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

Issue 15819003: Modernizing HttpRequest documentation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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/web_audio/dartium/web_audio_dartium.dart ('k') | tools/dom/dom.json » ('j') | 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 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 " */" 583 " */"
584 ], 584 ],
585 "XMLHttpRequest": [ 585 "XMLHttpRequest": [
586 "/**", 586 "/**",
587 " * General constructor for any type of request (GET, POST, etc).", 587 " * General constructor for any type of request (GET, POST, etc).",
588 " *", 588 " *",
589 " * This call is used in conjunction with [open]:", 589 " * This call is used in conjunction with [open]:",
590 " *", 590 " *",
591 " * var request = new HttpRequest();", 591 " * var request = new HttpRequest();",
592 " * request.open('GET', 'http://dartlang.org')", 592 " * request.open('GET', 'http://dartlang.org')",
593 " * request.on.load.add((event) => print('Request complete'));", 593 " * request.onLoad.add((event) => print('Request complete'));",
594 " *", 594 " *",
595 " * is the (more verbose) equivalent of", 595 " * is the (more verbose) equivalent of",
596 " *", 596 " *",
597 " * var request = new HttpRequest.get('http://dartlang.org',", 597 " * HttpRequest.getString('http://dartlang.org').then(",
598 " * (event) => print('Request complete'));", 598 " * (result) => print('Request complete: $result'));",
599 " */" 599 " */"
600 ] 600 ]
601 } 601 }
602 } 602 }
603 }, 603 },
604 "dart.dom.web_sql": { 604 "dart.dom.web_sql": {
605 "Database": { 605 "Database": {
606 "members": { 606 "members": {
607 "changeVersion": [ 607 "changeVersion": [
608 "/**", 608 "/**",
609 " * Atomically update the database version to [newVersion], asynchro nously", 609 " * Atomically update the database version to [newVersion], asynchro nously",
610 " * running [callback] on the [SqlTransaction] representing this", 610 " * running [callback] on the [SqlTransaction] representing this",
611 " * [changeVersion] transaction.", 611 " * [changeVersion] transaction.",
612 " *", 612 " *",
613 " * If [callback] runs successfully, then [successCallback] is calle d.", 613 " * If [callback] runs successfully, then [successCallback] is calle d.",
614 " * Otherwise, [errorCallback] is called.", 614 " * Otherwise, [errorCallback] is called.",
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/web_audio/dartium/web_audio_dartium.dart ('k') | tools/dom/dom.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698