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

Unified Diff: lib/core/stopwatch.dart

Issue 10939030: Reapply conversion of most core interfaces to abstract classes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
« no previous file with comments | « lib/core/set.dart ('k') | lib/core/string_buffer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/core/stopwatch.dart
diff --git a/lib/core/stopwatch.dart b/lib/core/stopwatch.dart
index 6222d672abd56164ca6b7bf1a169c30d2df5b427..e43f52d4bac7ced5274815a6b56b7d3910e81456 100644
--- a/lib/core/stopwatch.dart
+++ b/lib/core/stopwatch.dart
@@ -5,8 +5,7 @@
/**
* A simple [Stopwatch] interface to measure elapsed time.
*/
-interface Stopwatch default StopwatchImplementation {
-
+abstract class Stopwatch {
/**
* Creates a [Stopwatch] in stopped state with a zero elapsed count.
*
@@ -15,7 +14,7 @@ interface Stopwatch default StopwatchImplementation {
*
* Stopwatch stopwatch = new Stopwatch()..start();
*/
- Stopwatch();
+ factory Stopwatch() => new StopwatchImplementation();
/**
* Starts the [Stopwatch]. The [elapsed] count is increasing monotonically.
« no previous file with comments | « lib/core/set.dart ('k') | lib/core/string_buffer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698