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

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

Issue 24428003: Adjusted HttpRequest documentation to discourage using open and send in simple cases. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 "open": [ 352 "open": [
353 "/**", 353 "/**",
354 " * Specify the desired `url`, and `method` to use in making the req uest.", 354 " * Specify the desired `url`, and `method` to use in making the req uest.",
355 " *", 355 " *",
356 " * By default the request is done asyncronously, with no user or pa ssword", 356 " * By default the request is done asyncronously, with no user or pa ssword",
357 " * authentication information. If `async` is false, the request wil l be send", 357 " * authentication information. If `async` is false, the request wil l be send",
358 " * synchronously.", 358 " * synchronously.",
359 " *", 359 " *",
360 " * Calling `open` again on a currently active request is equivalent to", 360 " * Calling `open` again on a currently active request is equivalent to",
361 " * calling `abort`.", 361 " * calling `abort`.",
362 " *",
363 " * Note: Most simple HTTP requests can be accomplished using the [g etString],",
364 " * [request], [requestCrossOrigin], or [postFormData] methods. Use of this",
365 " * `open` method is intended only for more complext HTTP requests w here",
366 " * finer-grained control is needed.",
362 " */" 367 " */"
363 ], 368 ],
364 "overrideMimeType": [ 369 "overrideMimeType": [
365 "/**", 370 "/**",
366 " * Specify a particular MIME type (such as `text/xml`) desired for the", 371 " * Specify a particular MIME type (such as `text/xml`) desired for the",
367 " * response.", 372 " * response.",
368 " *", 373 " *",
369 " * This value must be set before the request has been sent. See als o the list", 374 " * This value must be set before the request has been sent. See als o the list",
370 " * of [common MIME types](http://en.wikipedia.org/wiki/Internet_med ia_type#List_of_common_media_types)", 375 " * of [common MIME types](http://en.wikipedia.org/wiki/Internet_med ia_type#List_of_common_media_types)",
371 " */" 376 " */"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 " *", 441 " *",
437 " * The response is processed as", 442 " * The response is processed as",
438 " * `text/xml` stream, unless responseType = 'document' and the requ est is", 443 " * `text/xml` stream, unless responseType = 'document' and the requ est is",
439 " * synchronous.", 444 " * synchronous.",
440 " */" 445 " */"
441 ], 446 ],
442 "send": [ 447 "send": [
443 "/**", 448 "/**",
444 " * Send the request with any given `data`.", 449 " * Send the request with any given `data`.",
445 " *", 450 " *",
451 " * Note: Most simple HTTP requests can be accomplished using the [g etString],",
452 " * [request], [requestCrossOrigin], or [postFormData] methods. Use of this",
453 " * `send` method is intended only for more complext HTTP requests w here",
454 " * finer-grained control is needed.",
455 " *",
446 " * See also:", 456 " * See also:",
447 " *", 457 " *",
448 " * * [send](https://developer.mozilla.org/en-US/docs/DOM/XMLHttpR equest#send%28%29)", 458 " * * [send](https://developer.mozilla.org/en-US/docs/DOM/XMLHttpR equest#send%28%29)",
449 " * from MDN.", 459 " * from MDN.",
450 " */" 460 " */"
451 ], 461 ],
452 "status": [ 462 "status": [
453 "/**", 463 "/**",
454 " * The http result code from the request (200, 404, etc).", 464 " * The http result code from the request (200, 404, etc).",
455 " * See also: [Http Status Codes](http://en.wikipedia.org/wiki/List_ of_HTTP_status_codes)", 465 " * See also: [Http Status Codes](http://en.wikipedia.org/wiki/List_ of_HTTP_status_codes)",
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 " *", 545 " *",
536 " * [oldVersion] should match the database's current [version] exact ly.", 546 " * [oldVersion] should match the database's current [version] exact ly.",
537 " *", 547 " *",
538 " * * [Database.changeVersion](http://www.w3.org/TR/webdatabase/#dom -database-changeversion) from W3C.", 548 " * * [Database.changeVersion](http://www.w3.org/TR/webdatabase/#dom -database-changeversion) from W3C.",
539 " */" 549 " */"
540 ] 550 ]
541 } 551 }
542 } 552 }
543 } 553 }
544 } 554 }
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