| OLD | NEW |
| 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 html; | 5 part of html; |
| 6 | 6 |
| 7 class _Utils { | 7 class _Utils { |
| 8 static double dateTimeToDouble(DateTime dateTime) => | 8 static double dateTimeToDouble(DateTime dateTime) => |
| 9 dateTime.millisecondsSinceEpoch.toDouble(); | 9 dateTime.millisecondsSinceEpoch.toDouble(); |
| 10 static DateTime doubleToDateTime(double dateTime) { | 10 static DateTime doubleToDateTime(double dateTime) { |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 | 64 |
| 65 static makeUnimplementedError(String fileName, int lineNo) { | 65 static makeUnimplementedError(String fileName, int lineNo) { |
| 66 return new UnsupportedError('[info: $fileName:$lineNo]'); | 66 return new UnsupportedError('[info: $fileName:$lineNo]'); |
| 67 } | 67 } |
| 68 | 68 |
| 69 static window() native "Utils_window"; | 69 static window() native "Utils_window"; |
| 70 static forwardingPrint(String message) native "Utils_forwardingPrint"; | 70 static forwardingPrint(String message) native "Utils_forwardingPrint"; |
| 71 static void spawnDomFunction(Function f, int replyTo) native "Utils_spawnDomFu
nction"; | 71 static void spawnDomFunction(Function f, int replyTo) native "Utils_spawnDomFu
nction"; |
| 72 static void spawnDomUri(String uri, int replyTo) native "Utils_spawnDomUri"; | 72 static void spawnDomUri(String uri, int replyTo) native "Utils_spawnDomUri"; |
| 73 static int _getNewIsolateId() native "Utils_getNewIsolateId"; | 73 static int _getNewIsolateId() native "Utils_getNewIsolateId"; |
| 74 static bool shadowRootSupported(Document document) native "Utils_shadowRootSup
ported"; | |
| 75 } | 74 } |
| 76 | 75 |
| 77 class _NPObject extends NativeFieldWrapperClass1 { | 76 class _NPObject extends NativeFieldWrapperClass1 { |
| 78 _NPObject.internal(); | 77 _NPObject.internal(); |
| 79 static _NPObject retrieve(String key) native "NPObject_retrieve"; | 78 static _NPObject retrieve(String key) native "NPObject_retrieve"; |
| 80 property(String propertyName) native "NPObject_property"; | 79 property(String propertyName) native "NPObject_property"; |
| 81 invoke(String methodName, [List args = null]) native "NPObject_invoke"; | 80 invoke(String methodName, [List args = null]) native "NPObject_invoke"; |
| 82 } | 81 } |
| 83 | 82 |
| 84 class _DOMWindowCrossFrame extends NativeFieldWrapperClass1 implements | 83 class _DOMWindowCrossFrame extends NativeFieldWrapperClass1 implements |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 } | 249 } |
| 251 | 250 |
| 252 _send(msg) { | 251 _send(msg) { |
| 253 _sendToHelperIsolate(msg, _sendPort); | 252 _sendToHelperIsolate(msg, _sendPort); |
| 254 } | 253 } |
| 255 } | 254 } |
| 256 | 255 |
| 257 get _pureIsolateTimerFactoryClosure => | 256 get _pureIsolateTimerFactoryClosure => |
| 258 ((int milliSeconds, void callback(Timer time), bool repeating) => | 257 ((int milliSeconds, void callback(Timer time), bool repeating) => |
| 259 new _PureIsolateTimer(milliSeconds, callback, repeating)); | 258 new _PureIsolateTimer(milliSeconds, callback, repeating)); |
| OLD | NEW |