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

Unified Diff: runtime/bin/timer.dart

Issue 9597015: Update Timer API to take the callback as the last parameter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 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 | « runtime/bin/string_stream.dart ('k') | runtime/bin/timer_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/timer.dart
diff --git a/runtime/bin/timer.dart b/runtime/bin/timer.dart
index c5be36f040356c147854c5bfc1fd537d47ba12c3..d3fe635c7cdf67bdf7d35dbf4bf5441b42033591 100644
--- a/runtime/bin/timer.dart
+++ b/runtime/bin/timer.dart
@@ -7,13 +7,13 @@ interface Timer default _Timer{
* Creates a new timer. The [callback] callback is invoked after
* [milliSeconds] milliseconds.
*/
- Timer(void callback(Timer timer), int milliSeconds);
+ Timer(int milliSeconds, void callback(Timer timer));
/**
* Creates a new repeating timer. The [callback] is invoked every
* [milliSeconds] millisecond until cancelled.
*/
- Timer.repeating(void callback(Timer timer), int milliSeconds);
+ Timer.repeating(int milliSeconds, void callback(Timer timer));
/**
* Cancels the timer.
« no previous file with comments | « runtime/bin/string_stream.dart ('k') | runtime/bin/timer_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698