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 builtin_natives; |
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) { |
11 _Logger._printString(arg.toString()); | 11 _Logger._printString(arg.toString()); |
12 } | 12 } |
13 | 13 |
14 class _Logger { | 14 class _Logger { |
15 static void _printString(String s) native "Logger_PrintString"; | 15 static void _printString(String s) native "Logger_PrintString"; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 return new _Timer(milliseconds, callback, repeating); | 48 return new _Timer(milliseconds, callback, repeating); |
49 } | 49 } |
50 | 50 |
51 String _getBaseURLString() native "GetBaseURLString"; | 51 String _getBaseURLString() native "GetBaseURLString"; |
52 Uri _getBaseURL() => Uri.parse(_getBaseURLString()); | 52 Uri _getBaseURL() => Uri.parse(_getBaseURLString()); |
53 | 53 |
54 _getPrintClosure() => _print; | 54 _getPrintClosure() => _print; |
55 _getScheduleMicrotaskClosure() => _scheduleMicrotask; | 55 _getScheduleMicrotaskClosure() => _scheduleMicrotask; |
56 _getGetBaseURLClosure() =>_getBaseURL; | 56 _getGetBaseURLClosure() =>_getBaseURL; |
57 _getCreateTimerClosure() => _createTimer; | 57 _getCreateTimerClosure() => _createTimer; |
OLD | NEW |