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

Side by Side Diff: tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate

Issue 409053002: Use @Native annotation on dart2js DOM native classes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of $LIBRARYNAME; 5 part of $LIBRARYNAME;
6 6
7 /** 7 /**
8 * A client-side XHR request for getting data from a URL, 8 * A client-side XHR request for getting data from a URL,
9 * formally known as XMLHttpRequest. 9 * formally known as XMLHttpRequest.
10 * 10 *
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 * * [Fetch Data Dynamically](https://www.dartlang.org/docs/tutorials/fetchdata /), 44 * * [Fetch Data Dynamically](https://www.dartlang.org/docs/tutorials/fetchdata /),
45 * a tutorial from _A Game of Darts_, 45 * a tutorial from _A Game of Darts_,
46 * shows two different ways to use HttpRequest to get a JSON file. 46 * shows two different ways to use HttpRequest to get a JSON file.
47 * * [Get Input from a Form](https://www.dartlang.org/docs/tutorials/forms/), 47 * * [Get Input from a Form](https://www.dartlang.org/docs/tutorials/forms/),
48 * another tutorial from _A Game of Darts_, 48 * another tutorial from _A Game of Darts_,
49 * shows using HttpRequest with a custom server. 49 * shows using HttpRequest with a custom server.
50 * * [Dart article on using HttpRequests](http://www.dartlang.org/articles/json -web-service/#getting-data) 50 * * [Dart article on using HttpRequests](http://www.dartlang.org/articles/json -web-service/#getting-data)
51 * * [JS XMLHttpRequest](https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRe quest) 51 * * [JS XMLHttpRequest](https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRe quest)
52 * * [Using XMLHttpRequest](https://developer.mozilla.org/en-US/docs/DOM/XMLHtt pRequest/Using_XMLHttpRequest) 52 * * [Using XMLHttpRequest](https://developer.mozilla.org/en-US/docs/DOM/XMLHtt pRequest/Using_XMLHttpRequest)
53 */ 53 */
54 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { 54 $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
55 55
56 /** 56 /**
57 * Creates a GET request for the specified [url]. 57 * Creates a GET request for the specified [url].
58 * 58 *
59 * The server response must be a `text/` mime type for this request to 59 * The server response must be a `text/` mime type for this request to
60 * succeed. 60 * succeed.
61 * 61 *
62 * This is similar to [request] but specialized for HTTP GET requests which 62 * This is similar to [request] but specialized for HTTP GET requests which
63 * return text content. 63 * return text content.
64 * 64 *
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 headers[key] = '${headers[key]}, $value'; 371 headers[key] = '${headers[key]}, $value';
372 } else { 372 } else {
373 headers[key] = value; 373 headers[key] = value;
374 } 374 }
375 } 375 }
376 return headers; 376 return headers;
377 } 377 }
378 378
379 $!MEMBERS 379 $!MEMBERS
380 } 380 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698