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

Side by Side Diff: sdk/lib/html/docs/html_docs.json

Issue 11471005: Add documentation for HttpRequest. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years 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 "AbstractWorker.dart": 2 "AbstractWorker.dart":
3 { 3 {
4 4
5 }, 5 },
6 "AnalyserNode.dart": 6 "AnalyserNode.dart":
7 { 7 {
8 8
9 }, 9 },
10 "AnchorElement.dart": 10 "AnchorElement.dart":
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 " * See also:", 501 " * See also:",
502 " *", 502 " *",
503 " * * [HTML <div> element](http://www.w3.org/TR/html-markup/div.html) from W3C.", 503 " * * [HTML <div> element](http://www.w3.org/TR/html-markup/div.html) from W3C.",
504 " * * [Block-level element](http://www.w3.org/TR/CSS2/visuren.html#block-b oxes) from W3C.", 504 " * * [Block-level element](http://www.w3.org/TR/CSS2/visuren.html#block-b oxes) from W3C.",
505 " * * [Inline-level element](http://www.w3.org/TR/CSS2/visuren.html#inline -boxes) from W3C.", 505 " * * [Inline-level element](http://www.w3.org/TR/CSS2/visuren.html#inline -boxes) from W3C.",
506 " */" 506 " */"
507 ] 507 ]
508 }, 508 },
509 "Document.dart": 509 "Document.dart":
510 { 510 {
511 " void set $dom_body(Element value) {": 511 " @Returns('_NodeList') @Creates('_NodeList')":
512 [
513 " /// Deprecated: use query(\"#$elementId\") instead."
514 ],
515 " Element $dom_createElement(String tagName) native \"createElement\";":
516 [
517 " /// Deprecated: use new Element.tag(tagName) instead."
518 ],
519 " Element $dom_elementFromPoint(int x, int y) native \"elementFromPoint\";":
512 [ 520 [
513 " /// Moved to [HtmlDocument]." 521 " /// Moved to [HtmlDocument]."
514 ], 522 ],
515 " Window get window => _convertNativeToDart_Window(this._window);": 523 " Element $dom_getElementById(String elementId) native \"getElementById\";":
516 [ 524 [
517 " /// Returns the [Window] associated with the document." 525 " /// Deprecated: use query(\"#$elementId\") instead."
526 ],
527 " Element $dom_querySelector(String selectors) native \"querySelector\";":
528 [
529 " /// Deprecated: renamed to the shorter name [query]."
530 ],
531 " Element get $dom_webkitFullscreenElement => JS(\"Element\", \"#.webkitFulls creenElement\", this);":
532 [
533 " /// Moved to [HtmlDocument]."
534 ],
535 " Element get $dom_webkitPointerLockElement => JS(\"Element\", \"#.webkitPoin terLockElement\", this);":
536 [
537 " /// Moved to [HtmlDocument]."
518 ], 538 ],
519 " HeadElement get $dom_head => JS(\"HeadElement\", \"#.head\", this);": 539 " HeadElement get $dom_head => JS(\"HeadElement\", \"#.head\", this);":
520 [ 540 [
521 " /// Moved to [HtmlDocument]." 541 " /// Moved to [HtmlDocument]."
522 ], 542 ],
543 " List<StyleSheet> get $dom_styleSheets => JS(\"_StyleSheetList\", \"#.styleS heets\", this);":
544 [
545 " /// Moved to [HtmlDocument]."
546 ],
547 " Range $dom_caretRangeFromPoint(int x, int y) native \"caretRangeFromPoint\" ;":
548 [
549 " /// Use the [Range] constructor instead."
550 ],
523 " String get $dom_lastModified => JS(\"String\", \"#.lastModified\", this);": 551 " String get $dom_lastModified => JS(\"String\", \"#.lastModified\", this);":
524 [ 552 [
525 " /// Moved to [HtmlDocument]." 553 " /// Moved to [HtmlDocument]."
526 ], 554 ],
527 " String get $dom_referrer => JS(\"String\", \"#.referrer\", this);": 555 " String get $dom_referrer => JS(\"String\", \"#.referrer\", this);":
528 [ 556 [
529 " /// Moved to [HtmlDocument]." 557 " /// Moved to [HtmlDocument]."
530 ], 558 ],
531 " List<StyleSheet> get $dom_styleSheets => JS(\"_StyleSheetList\", \"#.styleS heets\", this);":
532 [
533 " /// Moved to [HtmlDocument]."
534 ],
535 " String get $dom_title => JS(\"String\", \"#.title\", this);": 559 " String get $dom_title => JS(\"String\", \"#.title\", this);":
536 [ 560 [
537 " /// Moved to [HtmlDocument]." 561 " /// Moved to [HtmlDocument]."
538 ], 562 ],
539 " void set $dom_title(String value) {":
540 [
541 " /// Moved to [HtmlDocument]."
542 ],
543 " Element get $dom_webkitFullscreenElement => JS(\"Element\", \"#.webkitFulls creenElement\", this);":
544 [
545 " /// Moved to [HtmlDocument]."
546 ],
547 " bool get $dom_webkitFullscreenEnabled => JS(\"bool\", \"#.webkitFullscreenE nabled\", this);":
548 [
549 " /// Moved to [HtmlDocument]."
550 ],
551 " bool get $dom_webkitHidden => JS(\"bool\", \"#.webkitHidden\", this);":
552 [
553 " /// Moved to [HtmlDocument]."
554 ],
555 " bool get $dom_webkitIsFullScreen => JS(\"bool\", \"#.webkitIsFullScreen\", this);":
556 [
557 " /// Moved to [HtmlDocument]."
558 ],
559 " Element get $dom_webkitPointerLockElement => JS(\"Element\", \"#.webkitPoin terLockElement\", this);":
560 [
561 " /// Moved to [HtmlDocument]."
562 ],
563 " String get $dom_webkitVisibilityState => JS(\"String\", \"#.webkitVisibilit yState\", this);": 563 " String get $dom_webkitVisibilityState => JS(\"String\", \"#.webkitVisibilit yState\", this);":
564 [ 564 [
565 " /// Moved to [HtmlDocument]." 565 " /// Moved to [HtmlDocument]."
566 ], 566 ],
567 " Range $dom_caretRangeFromPoint(int x, int y) native \"caretRangeFromPoint\" ;":
568 [
569 " /// Use the [Range] constructor instead."
570 ],
571 " Element $dom_createElement(String tagName) native \"createElement\";":
572 [
573 " /// Deprecated: use new Element.tag(tagName) instead."
574 ],
575 " TouchList $dom_createTouchList() native \"createTouchList\";": 567 " TouchList $dom_createTouchList() native \"createTouchList\";":
576 [ 568 [
577 " /// Use the [TouchList] constructor isntead." 569 " /// Use the [TouchList] constructor isntead."
578 ], 570 ],
579 " Element $dom_elementFromPoint(int x, int y) native \"elementFromPoint\";": 571 " Window get window => _convertNativeToDart_Window(this._window);":
572 [
573 " /// Returns the [Window] associated with the document."
574 ],
575 " bool get $dom_webkitFullscreenEnabled => JS(\"bool\", \"#.webkitFullscreenE nabled\", this);":
580 [ 576 [
581 " /// Moved to [HtmlDocument]." 577 " /// Moved to [HtmlDocument]."
582 ], 578 ],
583 " Element $dom_getElementById(String elementId) native \"getElementById\";": 579 " bool get $dom_webkitHidden => JS(\"bool\", \"#.webkitHidden\", this);":
584 [ 580 [
585 " /// Deprecated: use query(\"#$elementId\") instead." 581 " /// Moved to [HtmlDocument]."
586 ], 582 ],
587 " @Returns('_NodeList') @Creates('_NodeList')": 583 " bool get $dom_webkitIsFullScreen => JS(\"bool\", \"#.webkitIsFullScreen\", this);":
588 [ 584 [
589 " /// Deprecated: use query(\"#$elementId\") instead." 585 " /// Moved to [HtmlDocument]."
590 ],
591 " Element $dom_querySelector(String selectors) native \"querySelector\";":
592 [
593 " /// Deprecated: renamed to the shorter name [query]."
594 ], 586 ],
595 " void $dom_webkitCancelFullScreen() native \"webkitCancelFullScreen\";": 587 " void $dom_webkitCancelFullScreen() native \"webkitCancelFullScreen\";":
596 [ 588 [
597 " /// Moved to [HtmlDocument]." 589 " /// Moved to [HtmlDocument]."
598 ], 590 ],
599 " void $dom_webkitExitFullscreen() native \"webkitExitFullscreen\";": 591 " void $dom_webkitExitFullscreen() native \"webkitExitFullscreen\";":
600 [ 592 [
601 " /// Moved to [HtmlDocument]." 593 " /// Moved to [HtmlDocument]."
602 ], 594 ],
603 " void $dom_webkitExitPointerLock() native \"webkitExitPointerLock\";": 595 " void $dom_webkitExitPointerLock() native \"webkitExitPointerLock\";":
604 [ 596 [
605 " /// Moved to [HtmlDocument]." 597 " /// Moved to [HtmlDocument]."
598 ],
599 " void set $dom_body(Element value) {":
600 [
601 " /// Moved to [HtmlDocument]."
602 ],
603 " void set $dom_title(String value) {":
604 [
605 " /// Moved to [HtmlDocument]."
606 ] 606 ]
607 }, 607 },
608 "DocumentFragment.dart": 608 "DocumentFragment.dart":
609 { 609 {
610 610
611 }, 611 },
612 "DocumentType.dart": 612 "DocumentType.dart":
613 { 613 {
614 614
615 }, 615 },
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
888 "HtmlElement.dart": 888 "HtmlElement.dart":
889 { 889 {
890 890
891 }, 891 },
892 "HtmlOptionsCollection.dart": 892 "HtmlOptionsCollection.dart":
893 { 893 {
894 894
895 }, 895 },
896 "HttpRequest.dart": 896 "HttpRequest.dart":
897 { 897 {
898 898 " @Creates('ArrayBuffer|Blob|Document|=Object|=List|String|num')":
899 [
900 " /**",
901 " * The data received as a reponse from the request.",
902 " *",
903 " * The data could be in the",
904 " * form of a [String], [ArrayBuffer], [Document], [Blob], or json (also a ",
905 " * [String]). `null` indicates request failure.",
906 " */"
907 ],
908 " HttpRequestEvents get on =>":
909 [
910 " /**",
911 " * Get the set of [HttpRequestEvents] that this request can respond to. ",
912 " * Usually used when adding an EventListener, such as in",
913 " * `document.window.on.keyDown.add((e) => print('keydown happened'))`." ,
914 " */"
915 ],
916 " String getAllResponseHeaders() native;":
917 [
918 " /**",
919 " * Retrieve all the response headers from a request.",
920 " * ",
921 " * `null` if no headers have been received. For multipart requests,",
922 " * `getAllResponseHeaders` will return the response headers for the cur rent",
923 " * part of the request.",
924 " * ",
925 " * See also [HTTP response headers](http://en.wikipedia.org/wiki/List_o f_HTTP_header_fields#Responses)",
926 " * for a list of common response headers.",
927 " */"
928 ],
929 " String getResponseHeader(String header) native;":
930 [
931 " /**",
932 " * Return the response header named `header`, or `null` if not found.",
933 " * ",
934 " * See also [HTTP response headers](http://en.wikipedia.org/wiki/List_o f_HTTP_header_fields#Responses)",
935 " * for a list of common response headers.",
936 " */"
937 ],
938 " String responseType;":
939 [
940 " /**",
941 " * [String] telling the server the desired response format. ",
942 " *",
943 " * Default is `String`.",
944 " * Other options are one of 'arraybuffer', 'blob', 'document', 'json'," ,
945 " * 'text'. Some newer browsers will throw NS_ERROR_DOM_INVALID_ACCESS_E RR if",
946 " * `responseType` is set while performing a synchronous request.",
947 " *",
948 " * See also: [MDN responseType](https://developer.mozilla.org/en-US/doc s/DOM/XMLHttpRequest#responseType)",
949 " */"
950 ],
951 " bool withCredentials;":
952 [
953 " /**",
954 " * True if cross-site requests should use credentials such as cookies",
955 " * or authorization headers; false otherwise. This value is ignored for ",
956 " * same-site requests.",
957 " */"
958 ],
959 " factory HttpRequest() => _HttpRequestFactoryProvider.createHttpRequest();":
960 [
961 " /**",
962 " * General constructor for any type of request (GET, POST, etc). To be used",
963 " * in conjunction with [open].",
964 " * ",
965 " * var request = new HttpRequest();",
966 " * request.open('GET', 'http://dartlang.org')",
967 " * request.on.load.add((event) => print('Request complete'));",
968 " * ",
969 " * is the (more verbose) equivalent of",
970 " * ",
971 " * var request = new HttpRequest.get('http://dartlang.org', (event) => print('Request complete'));",
972 " */"
973 ],
974 " final HttpRequestUpload upload;":
975 [
976 " /**",
977 " * [EventTarget] that can hold listeners to track the progress of the r equest.",
978 " * The events fired will be members of [HttpRequestUploadEvents].",
979 " */"
980 ],
981 " final String responseText;":
982 [
983 " /**",
984 " * The response in string form or `null` on failure.",
985 " */"
986 ],
987 " final String statusText;":
988 [
989 " /**",
990 " * The request response string (such as \"200 OK\").",
991 " * See also: [Http Status Codes](http://en.wikipedia.org/wiki/List_of_H TTP_status_codes)",
992 " */"
993 ],
994 " final int readyState;":
995 [
996 " /** @domName XMLHttpRequest.readyState */"
997 ],
998 " final int status;":
999 [
1000 " /**",
1001 " * The http result code from the request (200, 404, etc).",
1002 " * See also: [Http Status Codes](http://en.wikipedia.org/wiki/List_of_H TTP_status_codes)",
1003 " */"
1004 ],
1005 " void abort() native;":
1006 [
1007 " /**",
1008 " * Stop the current request. The request can only be stopped if readySt ate",
1009 " * is `HEADERS_RECIEVED` or `LOADING`. If this method is not in the pro cess",
1010 " * of being sent, the method has no effect.",
1011 " */"
1012 ],
1013 " void open(String method, String url, [bool async, String user, String passw ord]) native;":
1014 [
1015 " /**",
1016 " * Specify the desired `url`, and `method` to use in making the request .",
1017 " * ",
1018 " * By default the request is done asyncronously, with no user or passwo rd",
1019 " * authentication information. If `async` is false, the request will be send",
1020 " * synchronously.",
1021 " * ",
1022 " * Calling `open` again on a currently active request is equivalent to" ,
1023 " * calling `abort`.",
1024 " */"
1025 ],
1026 " void overrideMimeType(String override) native;":
1027 [
1028 " /**",
1029 " * Specify a particular MIME type (such as `text/xml`) desired for the" ,
1030 " * response.",
1031 " * ",
1032 " * This value must be set before the request has been sent. See also th e list",
1033 " * of [common MIME types](http://en.wikipedia.org/wiki/Internet_media_t ype#List_of_common_media_types)",
1034 " */"
1035 ],
1036 " void send([data]) native;":
1037 [
1038 " /**",
1039 " * Send the request with any given `data`. See also ",
1040 " * [MDN send() docs](https://developer.mozilla.org/en-US/docs/DOM/XMLHt tpRequest#send()).",
1041 " */"
1042 ],
1043 " void setRequestHeader(String header, String value) native;":
1044 [
1045 " /** Sets HTTP `header` to `value`. */"
1046 ]
899 }, 1047 },
900 "HttpRequestException.dart": 1048 "HttpRequestException.dart":
901 { 1049 {
902 1050
903 }, 1051 },
904 "HttpRequestProgressEvent.dart": 1052 "HttpRequestProgressEvent.dart":
905 { 1053 {
906 1054
907 }, 1055 },
908 "HttpRequestUpload.dart": 1056 "HttpRequestUpload.dart":
(...skipping 1085 matching lines...) Expand 10 before | Expand all | Expand 10 after
1994 2142
1995 }, 2143 },
1996 "XmlSerializer.dart": 2144 "XmlSerializer.dart":
1997 { 2145 {
1998 2146
1999 }, 2147 },
2000 "XsltProcessor.dart": 2148 "XsltProcessor.dart":
2001 { 2149 {
2002 2150
2003 } 2151 }
2004 } 2152 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698