| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 library sky_builtin; | 5 library sky_builtin; |
| 6 | 6 |
| 7 import "dart:async"; | 7 import "dart:async"; |
| 8 | 8 |
| 9 // Corelib 'print' implementation. | 9 // Corelib 'print' implementation. |
| 10 void _print(arg) { | 10 void _print(arg) { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 int _id; | 41 int _id; |
| 42 } | 42 } |
| 43 | 43 |
| 44 void _scheduleMicrotask(void callback()) native "ScheduleMicrotask"; | 44 void _scheduleMicrotask(void callback()) native "ScheduleMicrotask"; |
| 45 Timer _createTimer(int milliseconds, | 45 Timer _createTimer(int milliseconds, |
| 46 void callback(Timer timer), | 46 void callback(Timer timer), |
| 47 bool repeating) { | 47 bool repeating) { |
| 48 return new _Timer(milliseconds, callback, repeating); | 48 return new _Timer(milliseconds, callback, repeating); |
| 49 } | 49 } |
| 50 | 50 |
| 51 String _getBaseURLString() native "GetBaseURLString"; |
| 52 Uri _getBaseURL() => Uri.parse(_getBaseURLString()); |
| 53 |
| 51 _getPrintClosure() => _print; | 54 _getPrintClosure() => _print; |
| 52 _getScheduleMicrotaskClosure() => _scheduleMicrotask; | 55 _getScheduleMicrotaskClosure() => _scheduleMicrotask; |
| 56 _getGetBaseURLClosure() =>_getBaseURL; |
| 53 _getCreateTimerClosure() => _createTimer; | 57 _getCreateTimerClosure() => _createTimer; |
| OLD | NEW |