| 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 class _AudioContextFactoryProvider { | 5 class _AudioContextFactoryProvider { |
| 6 static AudioContext createAudioContext() => _createAudioContext(); | 6 static AudioContext createAudioContext() => _createAudioContext(); |
| 7 static _createAudioContext([int numberOfChannels, | 7 static _createAudioContext([int numberOfChannels, |
| 8 int numberOfFrames, | 8 int numberOfFrames, |
| 9 int sampleRate]) | 9 int sampleRate]) |
| 10 native "AudioContext_constructor_Callback"; | 10 native "AudioContext_constructor_Callback"; |
| 11 } | 11 } |
| 12 | 12 |
| 13 class _IDBKeyRangeFactoryProvider { | 13 class _IDBKeyRangeFactoryProvider { |
| 14 | 14 |
| 15 static IDBKeyRange createIDBKeyRange_only(/*IDBKey*/ value) => | 15 static IDBKeyRange createIDBKeyRange_only(/*IDBKey*/ value) => |
| 16 _IDBKeyRangeImpl.only_(value); | 16 IDBKeyRange.only_(value); |
| 17 | 17 |
| 18 static IDBKeyRange createIDBKeyRange_lowerBound( | 18 static IDBKeyRange createIDBKeyRange_lowerBound( |
| 19 /*IDBKey*/ bound, [bool open = false]) => | 19 /*IDBKey*/ bound, [bool open = false]) => |
| 20 _IDBKeyRangeImpl.lowerBound_(bound, open); | 20 IDBKeyRange.lowerBound_(bound, open); |
| 21 | 21 |
| 22 static IDBKeyRange createIDBKeyRange_upperBound( | 22 static IDBKeyRange createIDBKeyRange_upperBound( |
| 23 /*IDBKey*/ bound, [bool open = false]) => | 23 /*IDBKey*/ bound, [bool open = false]) => |
| 24 _IDBKeyRangeImpl.upperBound_(bound, open); | 24 IDBKeyRange.upperBound_(bound, open); |
| 25 | 25 |
| 26 static IDBKeyRange createIDBKeyRange_bound( | 26 static IDBKeyRange createIDBKeyRange_bound( |
| 27 /*IDBKey*/ lower, /*IDBKey*/ upper, | 27 /*IDBKey*/ lower, /*IDBKey*/ upper, |
| 28 [bool lowerOpen = false, bool upperOpen = false]) => | 28 [bool lowerOpen = false, bool upperOpen = false]) => |
| 29 _IDBKeyRangeImpl.bound_(lower, upper, lowerOpen, upperOpen); | 29 IDBKeyRange.bound_(lower, upper, lowerOpen, upperOpen); |
| 30 } | 30 } |
| 31 | 31 |
| 32 class _TypedArrayFactoryProvider { | 32 class _TypedArrayFactoryProvider { |
| 33 static Float32Array createFloat32Array(int length) => _F32(length); | 33 static Float32Array createFloat32Array(int length) => _F32(length); |
| 34 static Float32Array createFloat32Array_fromList(List<num> list) => | 34 static Float32Array createFloat32Array_fromList(List<num> list) => |
| 35 _F32(ensureNative(list)); | 35 _F32(ensureNative(list)); |
| 36 static Float32Array createFloat32Array_fromBuffer(ArrayBuffer buffer, | 36 static Float32Array createFloat32Array_fromBuffer(ArrayBuffer buffer, |
| 37 [int byteOffset = 0, int length]) => _F32(buffer, byteOffset, length); | 37 [int byteOffset = 0, int length]) => _F32(buffer, byteOffset, length); |
| 38 static _F32(arg0, [arg1, arg2]) native "Float32Array_constructor_Callback"; | 38 static _F32(arg0, [arg1, arg2]) native "Float32Array_constructor_Callback"; |
| 39 | 39 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 static Point createPoint(num x, num y) => _createWebKitPoint(x, y); | 101 static Point createPoint(num x, num y) => _createWebKitPoint(x, y); |
| 102 static _createWebKitPoint(num x, num y) native "WebKitPoint_constructor_Callba
ck"; | 102 static _createWebKitPoint(num x, num y) native "WebKitPoint_constructor_Callba
ck"; |
| 103 } | 103 } |
| 104 | 104 |
| 105 class _WebSocketFactoryProvider { | 105 class _WebSocketFactoryProvider { |
| 106 static WebSocket createWebSocket(String url) => _createWebSocket(url); | 106 static WebSocket createWebSocket(String url) => _createWebSocket(url); |
| 107 static _createWebSocket(String url) native "WebSocket_constructor_Callback"; | 107 static _createWebSocket(String url) native "WebSocket_constructor_Callback"; |
| 108 } | 108 } |
| 109 | 109 |
| 110 class _TextFactoryProvider { | 110 class _TextFactoryProvider { |
| 111 static Text createText(String data) => _document.$dom_createTextNode(data); | 111 static Text createText(String data) => document.$dom_createTextNode(data); |
| 112 } | 112 } |
| OLD | NEW |