| Index: lib/html/src/dartium_FactoryProviders.dart
|
| diff --git a/lib/html/src/dartium_FactoryProviders.dart b/lib/html/src/dartium_FactoryProviders.dart
|
| index 4c5f99142c6b8235acfc59afe82f67db1cc36a9e..e85cfb89a1c47efc8c4c5db91adb11d8e9d4df9d 100644
|
| --- a/lib/html/src/dartium_FactoryProviders.dart
|
| +++ b/lib/html/src/dartium_FactoryProviders.dart
|
| @@ -3,7 +3,7 @@
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| class _AudioContextFactoryProvider {
|
| - factory AudioContext() => _createAudioContext();
|
| + static AudioContext createAudioContext() => _createAudioContext();
|
| static _createAudioContext([int numberOfChannels,
|
| int numberOfFrames,
|
| int sampleRate])
|
| @@ -12,81 +12,85 @@ class _AudioContextFactoryProvider {
|
|
|
| class _IDBKeyRangeFactoryProvider {
|
|
|
| - factory IDBKeyRange.only(/*IDBKey*/ value) =>
|
| + static IDBKeyRange createIDBKeyRange_only(/*IDBKey*/ value) =>
|
| _IDBKeyRangeImpl.only(value);
|
|
|
| - factory IDBKeyRange.lowerBound(/*IDBKey*/ bound, [bool open = false]) =>
|
| + static IDBKeyRange createIDBKeyRange_lowerBound(
|
| + /*IDBKey*/ bound, [bool open = false]) =>
|
| _IDBKeyRangeImpl.lowerBound(bound, open);
|
|
|
| - factory IDBKeyRange.upperBound(/*IDBKey*/ bound, [bool open = false]) =>
|
| + static IDBKeyRange createIDBKeyRange_upperBound(
|
| + /*IDBKey*/ bound, [bool open = false]) =>
|
| _IDBKeyRangeImpl.upperBound(bound, open);
|
|
|
| - factory IDBKeyRange.bound(/*IDBKey*/ lower, /*IDBKey*/ upper,
|
| - [bool lowerOpen = false, bool upperOpen = false]) =>
|
| + static IDBKeyRange createIDBKeyRange_bound(
|
| + /*IDBKey*/ lower, /*IDBKey*/ upper,
|
| + [bool lowerOpen = false, bool upperOpen = false]) =>
|
| _IDBKeyRangeImpl.bound(lower, upper, lowerOpen, upperOpen);
|
| }
|
|
|
| class _TypedArrayFactoryProvider {
|
| - factory Float32Array(int length) => _F32(length);
|
| - factory Float32Array.fromList(List<num> list) => _F32(ensureNative(list));
|
| - factory Float32Array.fromBuffer(ArrayBuffer buffer,
|
| - [int byteOffset = 0, int length]) =>
|
| - _F32(buffer, byteOffset, length);
|
| + static Float32Array createFloat32Array(int length) => _F32(length);
|
| + static Float32Array createFloat32Array_fromList(List<num> list) =>
|
| + _F32(ensureNative(list));
|
| + static Float32Array createFloat32Array_fromBuffer(ArrayBuffer buffer,
|
| + [int byteOffset = 0, int length]) => _F32(buffer, byteOffset, length);
|
| static _F32(arg0, [arg1, arg2]) native "Float32Array_constructor_Callback";
|
|
|
| - factory Float64Array(int length) => _F64(length);
|
| - factory Float64Array.fromList(List<num> list) => _F64(ensureNative(list));
|
| - factory Float64Array.fromBuffer(ArrayBuffer buffer,
|
| - [int byteOffset = 0, int length]) =>
|
| - _F64(buffer, byteOffset, length);
|
| + static Float64Array createFloat64Array(int length) => _F64(length);
|
| + static Float64Array createFloat64Array_fromList(List<num> list) =>
|
| + _F64(ensureNative(list));
|
| + static Float64Array createFloat64Array_fromBuffer(ArrayBuffer buffer,
|
| + [int byteOffset = 0, int length]) => _F64(buffer, byteOffset, length);
|
| static _F64(arg0, [arg1, arg2]) native "Float64Array_constructor_Callback";
|
|
|
| - factory Int8Array(int length) => _I8(length);
|
| - factory Int8Array.fromList(List<num> list) => _I8(ensureNative(list));
|
| - factory Int8Array.fromBuffer(ArrayBuffer buffer,
|
| - [int byteOffset = 0, int length]) =>
|
| - _I8(buffer, byteOffset, length);
|
| + static Int8Array createInt8Array(int length) => _I8(length);
|
| + static Int8Array createInt8Array_fromList(List<num> list) =>
|
| + _I8(ensureNative(list));
|
| + static Int8Array createInt8Array_fromBuffer(ArrayBuffer buffer,
|
| + [int byteOffset = 0, int length]) => _I8(buffer, byteOffset, length);
|
| static _I8(arg0, [arg1, arg2]) native "Int8Array_constructor_Callback";
|
|
|
| - factory Int16Array(int length) => _I16(length);
|
| - factory Int16Array.fromList(List<num> list) => _I16(ensureNative(list));
|
| - factory Int16Array.fromBuffer(ArrayBuffer buffer,
|
| - [int byteOffset = 0, int length]) =>
|
| - _I16(buffer, byteOffset, length);
|
| + static Int16Array createInt16Array(int length) => _I16(length);
|
| + static Int16Array createInt16Array_fromList(List<num> list) =>
|
| + _I16(ensureNative(list));
|
| + static Int16Array createInt16Array_fromBuffer(ArrayBuffer buffer,
|
| + [int byteOffset = 0, int length]) => _I16(buffer, byteOffset, length);
|
| static _I16(arg0, [arg1, arg2]) native "Int16Array_constructor_Callback";
|
|
|
| - factory Int32Array(int length) => _I32(length);
|
| - factory Int32Array.fromList(List<num> list) => _I32(ensureNative(list));
|
| - factory Int32Array.fromBuffer(ArrayBuffer buffer,
|
| - [int byteOffset = 0, int length]) =>
|
| - _I32(buffer, byteOffset, length);
|
| + static Int32Array createInt32Array(int length) => _I32(length);
|
| + static Int32Array createInt32Array_fromList(List<num> list) =>
|
| + _I32(ensureNative(list));
|
| + static Int32Array createInt32Array_fromBuffer(ArrayBuffer buffer,
|
| + [int byteOffset = 0, int length]) => _I32(buffer, byteOffset, length);
|
| static _I32(arg0, [arg1, arg2]) native "Int32Array_constructor_Callback";
|
|
|
| - factory Uint8Array(int length) => _U8(length);
|
| - factory Uint8Array.fromList(List<num> list) => _U8(ensureNative(list));
|
| - factory Uint8Array.fromBuffer(ArrayBuffer buffer,
|
| - [int byteOffset = 0, int length]) =>
|
| - _U8(buffer, byteOffset, length);
|
| + static Uint8Array createUint8Array(int length) => _U8(length);
|
| + static Uint8Array createUint8Array_fromList(List<num> list) =>
|
| + _U8(ensureNative(list));
|
| + static Uint8Array createUint8Array_fromBuffer(ArrayBuffer buffer,
|
| + [int byteOffset = 0, int length]) => _U8(buffer, byteOffset, length);
|
| static _U8(arg0, [arg1, arg2]) native "Uint8Array_constructor_Callback";
|
|
|
| - factory Uint16Array(int length) => _U16(length);
|
| - factory Uint16Array.fromList(List<num> list) => _U16(ensureNative(list));
|
| - factory Uint16Array.fromBuffer(ArrayBuffer buffer,
|
| - [int byteOffset = 0, int length]) =>
|
| - _U16(buffer, byteOffset, length);
|
| + static Uint16Array createUint16Array(int length) => _U16(length);
|
| + static Uint16Array createUint16Array_fromList(List<num> list) =>
|
| + _U16(ensureNative(list));
|
| + static Uint16Array createUint16Array_fromBuffer(ArrayBuffer buffer,
|
| + [int byteOffset = 0, int length]) => _U16(buffer, byteOffset, length);
|
| static _U16(arg0, [arg1, arg2]) native "Uint16Array_constructor_Callback";
|
|
|
| - factory Uint32Array(int length) => _U32(length);
|
| - factory Uint32Array.fromList(List<num> list) => _U32(ensureNative(list));
|
| - factory Uint32Array.fromBuffer(ArrayBuffer buffer,
|
| - [int byteOffset = 0, int length]) =>
|
| - _U32(buffer, byteOffset, length);
|
| + static Uint32Array createUint32Array(int length) => _U32(length);
|
| + static Uint32Array createUint32Array_fromList(List<num> list) =>
|
| + _U32(ensureNative(list));
|
| + static Uint32Array createUint32Array_fromBuffer(ArrayBuffer buffer,
|
| + [int byteOffset = 0, int length]) => _U32(buffer, byteOffset, length);
|
| static _U32(arg0, [arg1, arg2]) native "Uint32Array_constructor_Callback";
|
|
|
| - factory Uint8ClampedArray(int length) => _U8C(length);
|
| - factory Uint8ClampedArray.fromList(List<num> list) => _U8C(ensureNative(list));
|
| - factory Uint8ClampedArray.fromBuffer(ArrayBuffer buffer,
|
| - [int byteOffset = 0, int length]) =>
|
| + static Uint8ClampedArray createUint8ClampedArray(int length) => _U8C(length);
|
| + static Uint8ClampedArray createUint8ClampedArrayUint8ClampedArray_fromList(
|
| + List<num> list) => _U8C(ensureNative(list));
|
| + static Uint8ClampedArray createUint8ClampedArrayUint8ClampedArray_fromBuffer(
|
| + ArrayBuffer buffer, [int byteOffset = 0, int length]) =>
|
| _U8C(buffer, byteOffset, length);
|
| static _U8C(arg0, [arg1, arg2]) native "Uint8ClampedArray_constructor_Callback";
|
|
|
| @@ -94,15 +98,15 @@ class _TypedArrayFactoryProvider {
|
| }
|
|
|
| class _PointFactoryProvider {
|
| - factory Point(num x, num y) => _createWebKitPoint(x, y);
|
| + static Point createPoint(num x, num y) => _createWebKitPoint(x, y);
|
| static _createWebKitPoint(num x, num y) native "WebKitPoint_constructor_Callback";
|
| }
|
|
|
| class _WebSocketFactoryProvider {
|
| - factory WebSocket(String url) => _createWebSocket(url);
|
| + static WebSocket createWebSocket(String url) => _createWebSocket(url);
|
| static _createWebSocket(String url) native "WebSocket_constructor_Callback";
|
| }
|
|
|
| class _TextFactoryProvider {
|
| - factory Text(String data) => _document.$dom_createTextNode(data);
|
| + static Text createText(String data) => _document.$dom_createTextNode(data);
|
| }
|
|
|