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

Unified Diff: lib/html/templates/html/interface/interface_HttpRequest.darttemplate

Issue 10915245: Removing interfaces from dart:html (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Incorporating review feedback. 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/interface/interface_HttpRequest.darttemplate
diff --git a/lib/html/templates/html/interface/interface_HttpRequest.darttemplate b/lib/html/templates/html/interface/interface_HttpRequest.darttemplate
index 8ab4cedf4f68aede603adcd04c451a8eb9e31a14..c705976a112624781b851b9ff7e101c61cdcb2c0 100644
--- a/lib/html/templates/html/interface/interface_HttpRequest.darttemplate
+++ b/lib/html/templates/html/interface/interface_HttpRequest.darttemplate
@@ -5,8 +5,10 @@
// WARNING: Do not edit - generated code.
$!COMMENT
-interface $ID$EXTENDS {
- $ID.get(String url, onSuccess($ID request));
+abstract class $ID$EXTENDS {
+ factory $ID.get(String url, onSuccess($ID request)) =>
+ _$(ID)FactoryProvider.create$(ID)_get(url, onSuccess);
- $ID.getWithCredentials(String url, onSuccess($ID request));
+ factory $ID.getWithCredentials(String url, onSuccess($ID request)) =>
+ _$(ID)FactoryProvider.create$(ID)getWithCredentials(url, onSuccess);
$!MEMBERS}

Powered by Google App Engine
This is Rietveld 408576698