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

Unified Diff: tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate

Issue 11968047: Fixing formatting of dart:html's dart2js annotations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: CR feedback. Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate b/tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate
index ab555904c619085f346785229c32df00c44ff68f..11efa7735db15c56e1a92a18ad47a123d1dac950 100644
--- a/tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate
+++ b/tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate
@@ -6,34 +6,33 @@ part of html;
/**
* A utility for retrieving data from a URL.
- *
+ *
* HttpRequest can be used to obtain data from http, ftp, and file
- * protocols.
- *
+ * protocols.
+ *
* For example, suppose we're developing these API docs, and we
* wish to retrieve the HTML of the top-level page and print it out.
* The easiest way to do that would be:
- *
+ *
* var httpRequest = HttpRequest.get('http://api.dartlang.org',
* (request) => print(request.responseText));
- *
+ *
* **Important**: With the default behavior of this class, your
* code making the request should be served from the same origin (domain name,
* port, and application layer protocol) as the URL you are trying to access
- * with HttpRequest. However, there are ways to
+ * with HttpRequest. However, there are ways to
* [get around this restriction](http://www.dartlang.org/articles/json-web-service/#note-on-jsonp).
- *
+ *
* See also:
*
* * [Dart article on using HttpRequests](http://www.dartlang.org/articles/json-web-service/#getting-data)
* * [JS XMLHttpRequest](https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest)
* * [Using XMLHttpRequest](https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest/Using_XMLHttpRequest)
*/
-@DomName('XMLHttpRequest')
-class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
+$(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
/**
* Creates a URL get request for the specified `url`.
- *
+ *
* After completing the request, the object will call the user-provided
* [onComplete] callback.
*/
@@ -45,8 +44,8 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
* Creates a URL GET request for the specified `url` with
* credentials such a cookie (already) set in the header or
* [authorization headers](http://tools.ietf.org/html/rfc1945#section-10.2).
- *
- * After completing the request, the object will call the user-provided
+ *
+ * After completing the request, the object will call the user-provided
* [onComplete] callback.
*
* A few other details to keep in mind when using credentials:
@@ -55,7 +54,7 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
* * The `Access-Control-Allow-Origin` header of `url` cannot contain a wildcard (*).
* * The `Access-Control-Allow-Credentials` header of `url` must be set to true.
* * If `Access-Control-Expose-Headers` has not been set to true, only a subset of all the response headers will be returned when calling [getAllRequestHeaders].
- *
+ *
* See also: [authorization headers](http://en.wikipedia.org/wiki/Basic_access_authentication).
*/
factory $CLASSNAME.getWithCredentials(String url,
« no previous file with comments | « tools/dom/templates/html/impl/impl_WheelEvent.darttemplate ('k') | tools/dom/templates/html/impl/pure_interface.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698