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

Unified Diff: lib/html/templates/html/dart2js/factoryprovider_HttpRequest.darttemplate

Issue 10915245: Removing interfaces from dart:html (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Further fixes to dartium. Created 8 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 side-by-side diff with in-line comments
Download patch
Index: lib/html/templates/html/dart2js/factoryprovider_HttpRequest.darttemplate
diff --git a/lib/html/templates/html/dart2js/factoryprovider_HttpRequest.darttemplate b/lib/html/templates/html/dart2js/factoryprovider_HttpRequest.darttemplate
index 8ec7f2e3428a571936f41d5799e7c600bf2f91e1..e1f652b7bdee61e263b7cdb9a85ddc256620a304 100644
--- a/lib/html/templates/html/dart2js/factoryprovider_HttpRequest.darttemplate
+++ b/lib/html/templates/html/dart2js/factoryprovider_HttpRequest.darttemplate
@@ -3,13 +3,13 @@
// BSD-style license that can be found in the LICENSE file.
class $FACTORYPROVIDER {
- factory HttpRequest() native 'return new XMLHttpRequest();';
+ static HttpRequest createHttpRequest() native 'return new XMLHttpRequest();';
- factory HttpRequest.get(String url,
- onSuccess(HttpRequest request)) =>
+ static HttpRequest createHttpRequest_get(String url,
+ onSuccess(HttpRequest request)) =>
_HttpRequestUtils.get(url, onSuccess, false);
- factory HttpRequest.getWithCredentials(String url,
- onSuccess(HttpRequest request)) =>
+ static HttpRequest createHttpRequest_getWithCredentials(String url,
+ onSuccess(HttpRequest request)) =>
_HttpRequestUtils.get(url, onSuccess, true);
}

Powered by Google App Engine
This is Rietveld 408576698