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

Unified Diff: lib/isolate/timer_hook.dart

Issue 10828411: Re-apply 'Unify dart:isolate.' with fixes for autogenerated dart2js and dartium html files. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Review fixes. Created 8 years, 4 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/isolate/timer.dart ('k') | lib/js_isolate_impl/isolate.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/isolate/timer_hook.dart
diff --git a/lib/isolate/timer_hook.dart b/lib/isolate/timer_hook.dart
deleted file mode 100644
index 37286ac5f24e3a1b04ec3dde2696aeddbda73b71..0000000000000000000000000000000000000000
--- a/lib/isolate/timer_hook.dart
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-typedef Timer _TimerFactoryClosure(int milliSeconds,
- void callback(Timer timer),
- bool repeating);
-
-// _TimerFactory provides a hook which allows various implementations of this
-// library to provide a concrete class for the Timer interface.
-class _TimerFactory {
-
- factory Timer(int milliSeconds, void callback(Timer timer)) {
- if (_factory == null) {
- throw new UnsupportedOperationException("Timer interface not supported.");
- }
- return _factory(milliSeconds, callback, false);
- }
-
- factory Timer.repeating(int milliSeconds, void callback(Timer timer)) {
- if (_factory == null) {
- throw new UnsupportedOperationException("Timer interface not supported.");
- }
- return _factory(milliSeconds, callback, true);
- }
-
- static _TimerFactoryClosure _factory;
-}
-
-void _setTimerFactoryClosure(_TimerFactoryClosure closure) {
- _TimerFactory._factory = closure;
-}
« no previous file with comments | « lib/isolate/timer.dart ('k') | lib/js_isolate_impl/isolate.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698