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

Unified Diff: lib/html/templates/html/interface/interface_Event.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/interface/interface_Event.darttemplate
diff --git a/lib/html/templates/html/interface/interface_Event.darttemplate b/lib/html/templates/html/interface/interface_Event.darttemplate
index c39d13b93e06ed1f7165e9897e44e9a7c9556cd0..9f392438e5678ae0579da428e0e2c8d89f602742 100644
--- a/lib/html/templates/html/interface/interface_Event.darttemplate
+++ b/lib/html/templates/html/interface/interface_Event.darttemplate
@@ -5,7 +5,7 @@
// WARNING: Do not edit - generated code.
$!COMMENT
-interface $ID$EXTENDS default _$(ID)FactoryProvider {
+abstract class $ID$EXTENDS {
// In JS, canBubble and cancelable are technically required parameters to
// init*Event. In practice, though, if they aren't provided they simply
@@ -13,5 +13,6 @@ interface $ID$EXTENDS default _$(ID)FactoryProvider {
//
// Contrary to JS, we default canBubble and cancelable to true, since that's
// what people want most of the time anyway.
- $ID(String type, [bool canBubble, bool cancelable]);
+ factory $ID(String type, [bool canBubble = true, bool cancelable = true]) =>
+ _$(ID)FactoryProvider.create$ID(type, canBubble, cancelable);
$!MEMBERS}

Powered by Google App Engine
This is Rietveld 408576698