| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   52   static bool isMap(obj) => obj is Map; |   52   static bool isMap(obj) => obj is Map; | 
|   53  |   53  | 
|   54   static Map createMap() => {}; |   54   static Map createMap() => {}; | 
|   55  |   55  | 
|   56   static makeUnimplementedError(String fileName, int lineNo) { |   56   static makeUnimplementedError(String fileName, int lineNo) { | 
|   57     return new UnsupportedError('[info: $fileName:$lineNo]'); |   57     return new UnsupportedError('[info: $fileName:$lineNo]'); | 
|   58   } |   58   } | 
|   59  |   59  | 
|   60   static window() native "Utils_window"; |   60   static window() native "Utils_window"; | 
|   61   static forwardingPrint(String message) native "Utils_forwardingPrint"; |   61   static forwardingPrint(String message) native "Utils_forwardingPrint"; | 
|   62   static void spawnDomFunction(Function topLevelFunction, int replyTo) native "U
     tils_spawnDomFunction"; |   62   static void spawnDomFunction(Function f, int replyTo) native "Utils_spawnDomFu
     nction"; | 
 |   63   static void spawnDomUri(String uri, int replyTo) native "Utils_spawnDomUri"; | 
|   63   static int _getNewIsolateId() native "Utils_getNewIsolateId"; |   64   static int _getNewIsolateId() native "Utils_getNewIsolateId"; | 
|   64   static bool shadowRootSupported(Document document) native "Utils_shadowRootSup
     ported"; |   65   static bool shadowRootSupported(Document document) native "Utils_shadowRootSup
     ported"; | 
|   65 } |   66 } | 
|   66  |   67  | 
|   67 class _NPObject extends NativeFieldWrapperClass1 { |   68 class _NPObject extends NativeFieldWrapperClass1 { | 
|   68   _NPObject.internal(); |   69   _NPObject.internal(); | 
|   69   static _NPObject retrieve(String key) native "NPObject_retrieve"; |   70   static _NPObject retrieve(String key) native "NPObject_retrieve"; | 
|   70   property(String propertyName) native "NPObject_property"; |   71   property(String propertyName) native "NPObject_property"; | 
|   71   invoke(String methodName, [List args = null]) native "NPObject_invoke"; |   72   invoke(String methodName, [List args = null]) native "NPObject_invoke"; | 
|   72 } |   73 } | 
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  162 } |  163 } | 
|  163  |  164  | 
|  164 final _printClosure = window.console.log; |  165 final _printClosure = window.console.log; | 
|  165 final _pureIsolatePrintClosure = (s) { |  166 final _pureIsolatePrintClosure = (s) { | 
|  166   _HELPER_ISOLATE_PORT.then((sendPort) { |  167   _HELPER_ISOLATE_PORT.then((sendPort) { | 
|  167     sendPort.send([_PRINT, s]); |  168     sendPort.send([_PRINT, s]); | 
|  168   }); |  169   }); | 
|  169 }; |  170 }; | 
|  170  |  171  | 
|  171 final _forwardingPrintClosure = _Utils.forwardingPrint; |  172 final _forwardingPrintClosure = _Utils.forwardingPrint; | 
| OLD | NEW |