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

Unified Diff: samples/ui_lib/touch/Momentum.dart

Issue 11314019: Using 'interface' and 'abstract' for methods should produce error (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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: samples/ui_lib/touch/Momentum.dart
diff --git a/samples/ui_lib/touch/Momentum.dart b/samples/ui_lib/touch/Momentum.dart
index 269b722e5b4f4a34eea6a36cc04aa2a3f8b9131f..a9f5ae6db4a681fe6c78149f5c6590a18e7d7c7d 100644
--- a/samples/ui_lib/touch/Momentum.dart
+++ b/samples/ui_lib/touch/Momentum.dart
@@ -23,9 +23,9 @@
* accelerated method such as using 'translate3d' on the element's
* -webkit-transform style property.
*/
-interface Momentum default TimeoutMomentum {
+abstract class Momentum {
- Momentum(MomentumDelegate delegate, [num defaultDecelerationFactor]);
+ factory Momentum(MomentumDelegate delegate, [num defaultDecelerationFactor]) = TimeoutMomentum;
bool get decelerating;

Powered by Google App Engine
This is Rietveld 408576698