| 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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 static _NPObject retrieve(String key) native "NPObject_retrieve"; | 199 static _NPObject retrieve(String key) native "NPObject_retrieve"; |
| 200 property(String propertyName) native "NPObject_property"; | 200 property(String propertyName) native "NPObject_property"; |
| 201 invoke(String methodName, [List args = null]) native "NPObject_invoke"; | 201 invoke(String methodName, [List args = null]) native "NPObject_invoke"; |
| 202 } | 202 } |
| 203 | 203 |
| 204 class _DOMWindowCrossFrame extends NativeFieldWrapperClass1 implements | 204 class _DOMWindowCrossFrame extends NativeFieldWrapperClass1 implements |
| 205 WindowBase { | 205 WindowBase { |
| 206 _DOMWindowCrossFrame.internal(); | 206 _DOMWindowCrossFrame.internal(); |
| 207 | 207 |
| 208 // Fields. | 208 // Fields. |
| 209 HistoryBase get history native "DOMWindow_history_cross_frame_Getter"; | 209 HistoryBase get history native "Window_history_cross_frame_Getter"; |
| 210 LocationBase get location native "DOMWindow_location_cross_frame_Getter"; | 210 LocationBase get location native "Window_location_cross_frame_Getter"; |
| 211 bool get closed native "DOMWindow_closed_Getter"; | 211 bool get closed native "Window_closed_Getter"; |
| 212 int get length native "DOMWindow_length_Getter"; | 212 int get length native "Window_length_Getter"; |
| 213 WindowBase get opener native "DOMWindow_opener_Getter"; | 213 WindowBase get opener native "Window_opener_Getter"; |
| 214 WindowBase get parent native "DOMWindow_parent_Getter"; | 214 WindowBase get parent native "Window_parent_Getter"; |
| 215 WindowBase get top native "DOMWindow_top_Getter"; | 215 WindowBase get top native "Window_top_Getter"; |
| 216 | 216 |
| 217 // Methods. | 217 // Methods. |
| 218 void close() native "DOMWindow_close_Callback"; | 218 void close() native "Window_close_Callback"; |
| 219 void postMessage(/*SerializedScriptValue*/ message, String targetOrigin, [List
messagePorts]) native "DOMWindow_postMessage_Callback"; | 219 void postMessage(/*SerializedScriptValue*/ message, String targetOrigin, [List
messagePorts]) native "Window_postMessage_Callback"; |
| 220 | 220 |
| 221 // Implementation support. | 221 // Implementation support. |
| 222 String get typeName => "DOMWindow"; | 222 String get typeName => "Window"; |
| 223 } | 223 } |
| 224 | 224 |
| 225 class _HistoryCrossFrame extends NativeFieldWrapperClass1 implements HistoryBase
{ | 225 class _HistoryCrossFrame extends NativeFieldWrapperClass1 implements HistoryBase
{ |
| 226 _HistoryCrossFrame.internal(); | 226 _HistoryCrossFrame.internal(); |
| 227 | 227 |
| 228 // Methods. | 228 // Methods. |
| 229 void back() native "History_back_Callback"; | 229 void back() native "History_back_Callback"; |
| 230 void forward() native "History_forward_Callback"; | 230 void forward() native "History_forward_Callback"; |
| 231 void go(int distance) native "History_go_Callback"; | 231 void go(int distance) native "History_go_Callback"; |
| 232 | 232 |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 _send(msg) { | 386 _send(msg) { |
| 387 _sendToHelperIsolate(msg, _sendPort); | 387 _sendToHelperIsolate(msg, _sendPort); |
| 388 } | 388 } |
| 389 | 389 |
| 390 bool get isActive => _isActive; | 390 bool get isActive => _isActive; |
| 391 } | 391 } |
| 392 | 392 |
| 393 get _pureIsolateTimerFactoryClosure => | 393 get _pureIsolateTimerFactoryClosure => |
| 394 ((int milliSeconds, void callback(Timer time), bool repeating) => | 394 ((int milliSeconds, void callback(Timer time), bool repeating) => |
| 395 new _PureIsolateTimer(milliSeconds, callback, repeating)); | 395 new _PureIsolateTimer(milliSeconds, callback, repeating)); |
| OLD | NEW |