| 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 _IDBKeyRangeFactoryProvider { | |
| 8 | |
| 9 static IDBKeyRange createIDBKeyRange_only(/*IDBKey*/ value) => | |
| 10 IDBKeyRange.only_(value); | |
| 11 | |
| 12 static IDBKeyRange createIDBKeyRange_lowerBound( | |
| 13 /*IDBKey*/ bound, [bool open = false]) => | |
| 14 IDBKeyRange.lowerBound_(bound, open); | |
| 15 | |
| 16 static IDBKeyRange createIDBKeyRange_upperBound( | |
| 17 /*IDBKey*/ bound, [bool open = false]) => | |
| 18 IDBKeyRange.upperBound_(bound, open); | |
| 19 | |
| 20 static IDBKeyRange createIDBKeyRange_bound( | |
| 21 /*IDBKey*/ lower, /*IDBKey*/ upper, | |
| 22 [bool lowerOpen = false, bool upperOpen = false]) => | |
| 23 IDBKeyRange.bound_(lower, upper, lowerOpen, upperOpen); | |
| 24 } | |
| 25 | |
| 26 class _TypedArrayFactoryProvider { | 7 class _TypedArrayFactoryProvider { |
| 27 static Float32Array createFloat32Array(int length) => _F32(length); | 8 static Float32Array createFloat32Array(int length) => _F32(length); |
| 28 static Float32Array createFloat32Array_fromList(List<num> list) => | 9 static Float32Array createFloat32Array_fromList(List<num> list) => |
| 29 _F32(ensureNative(list)); | 10 _F32(ensureNative(list)); |
| 30 static Float32Array createFloat32Array_fromBuffer(ArrayBuffer buffer, | 11 static Float32Array createFloat32Array_fromBuffer(ArrayBuffer buffer, |
| 31 [int byteOffset = 0, int length]) => _F32(buffer, byteOffset, length); | 12 [int byteOffset = 0, int length]) => _F32(buffer, byteOffset, length); |
| 32 static _F32(arg0, [arg1, arg2]) native "Float32Array_constructor_Callback"; | 13 static _F32(arg0, [arg1, arg2]) native "Float32Array_constructor_Callback"; |
| 33 | 14 |
| 34 static Float64Array createFloat64Array(int length) => _F64(length); | 15 static Float64Array createFloat64Array(int length) => _F64(length); |
| 35 static Float64Array createFloat64Array_fromList(List<num> list) => | 16 static Float64Array createFloat64Array_fromList(List<num> list) => |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 } | 78 } |
| 98 | 79 |
| 99 class _WebSocketFactoryProvider { | 80 class _WebSocketFactoryProvider { |
| 100 static WebSocket createWebSocket(String url) => _createWebSocket(url); | 81 static WebSocket createWebSocket(String url) => _createWebSocket(url); |
| 101 static _createWebSocket(String url) native "WebSocket_constructor_Callback"; | 82 static _createWebSocket(String url) native "WebSocket_constructor_Callback"; |
| 102 } | 83 } |
| 103 | 84 |
| 104 class _TextFactoryProvider { | 85 class _TextFactoryProvider { |
| 105 static Text createText(String data) => document.$dom_createTextNode(data); | 86 static Text createText(String data) => document.$dom_createTextNode(data); |
| 106 } | 87 } |
| OLD | NEW |