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

Side by Side Diff: sdk/lib/io/timer_impl.dart

Issue 11434030: Revert "Switch libraries to using new tags." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sdk/lib/io/string_stream.dart ('k') | sdk/lib/io/websocket.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of dart_io;
6
7 class _Timer implements Timer { 5 class _Timer implements Timer {
8 // Set jitter to wake up timer events that would happen in _TIMER_JITTER ms. 6 // Set jitter to wake up timer events that would happen in _TIMER_JITTER ms.
9 static const int _TIMER_JITTER = 0; 7 static const int _TIMER_JITTER = 0;
10 8
11 // Disables the timer. 9 // Disables the timer.
12 static const int _NO_TIMER = -1; 10 static const int _NO_TIMER = -1;
13 11
14 static Timer _createTimer(void callback(Timer timer), 12 static Timer _createTimer(void callback(Timer timer),
15 int milliSeconds, 13 int milliSeconds,
16 bool repeating) { 14 bool repeating) {
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 _getTimerFactoryClosure() { 191 _getTimerFactoryClosure() {
194 return (int milliSeconds, void callback(Timer timer), bool repeating) { 192 return (int milliSeconds, void callback(Timer timer), bool repeating) {
195 if (repeating) { 193 if (repeating) {
196 return new _Timer.repeating(milliSeconds, callback); 194 return new _Timer.repeating(milliSeconds, callback);
197 } 195 }
198 return new _Timer(milliSeconds, callback); 196 return new _Timer(milliSeconds, callback);
199 }; 197 };
200 } 198 }
201 199
202 200
OLDNEW
« no previous file with comments | « sdk/lib/io/string_stream.dart ('k') | sdk/lib/io/websocket.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698