| Index: lib/html/dartium/html_dartium.dart
|
| diff --git a/lib/html/dartium/html_dartium.dart b/lib/html/dartium/html_dartium.dart
|
| index 544f3b0bbfd2100e43759ee0e2b6b77fa33a7a2a..df9f6392d1d40f92eec2bcc7923488d517cd960c 100644
|
| --- a/lib/html/dartium/html_dartium.dart
|
| +++ b/lib/html/dartium/html_dartium.dart
|
| @@ -10456,8 +10456,15 @@ class _IDBObjectStoreImpl extends _DOMTypeBase implements IDBObjectStore {
|
| return;
|
| }
|
|
|
| - IDBRequest getObject(/*IDBKey*/ key) {
|
| - return _wrap(_ptr.getObject(_unwrap(key)));
|
| + IDBRequest getObject(key) {
|
| + if (key is Dynamic) {
|
| + return _wrap(_ptr.getObject(_unwrap(key)));
|
| + } else {
|
| + if (key is IDBKeyRange) {
|
| + return _wrap(_ptr.getObject(_unwrap(key)));
|
| + }
|
| + }
|
| + throw "Incorrect number or type of arguments";
|
| }
|
|
|
| IDBIndex index(String name) {
|
| @@ -10717,7 +10724,7 @@ class _IceCandidateImpl extends _DOMTypeBase implements IceCandidate {
|
| class _ImageDataImpl extends _DOMTypeBase implements ImageData {
|
| _ImageDataImpl._wrap(ptr) : super._wrap(ptr);
|
|
|
| - CanvasPixelArray get data() => _wrap(_ptr.data);
|
| + Uint8ClampedArray get data() => _wrap(_ptr.data);
|
|
|
| int get height() => _wrap(_ptr.height);
|
|
|
| @@ -29823,7 +29830,7 @@ interface IDBObjectStore {
|
| void deleteIndex(String name);
|
|
|
| /** @domName IDBObjectStore.getObject */
|
| - IDBRequest getObject(/*IDBKey*/ key);
|
| + IDBRequest getObject(key);
|
|
|
| /** @domName IDBObjectStore.index */
|
| IDBIndex index(String name);
|
| @@ -30055,7 +30062,7 @@ interface IceCandidate default _IceCandidateFactoryProvider {
|
| interface ImageData {
|
|
|
| /** @domName ImageData.data */
|
| - final CanvasPixelArray data;
|
| + final Uint8ClampedArray data;
|
|
|
| /** @domName ImageData.height */
|
| final int height;
|
| @@ -41524,7 +41531,7 @@ class _AudioContextFactoryProvider {
|
| class _TypedArrayFactoryProvider {
|
|
|
| factory Float32Array(int length) => _F32(length);
|
| - factory Float32Array.fromList(List<num> list) => _F32(ensureNative(list));
|
| + factory Float32Array.fromList(List<num> list) => _F32_1(ensureNative(list));
|
| factory Float32Array.fromBuffer(ArrayBuffer buffer,
|
| [int byteOffset = 0, int length]) {
|
| if (length == null) return _F32_2(buffer, byteOffset);
|
| @@ -41532,7 +41539,7 @@ class _TypedArrayFactoryProvider {
|
| }
|
|
|
| factory Float64Array(int length) => _F64(length);
|
| - factory Float64Array.fromList(List<num> list) => _F64(ensureNative(list));
|
| + factory Float64Array.fromList(List<num> list) => _F64_1(ensureNative(list));
|
| factory Float64Array.fromBuffer(ArrayBuffer buffer,
|
| [int byteOffset = 0, int length]) {
|
| if (length == null) return _F64_2(buffer, byteOffset);
|
| @@ -41540,7 +41547,7 @@ class _TypedArrayFactoryProvider {
|
| }
|
|
|
| factory Int8Array(int length) => _I8(length);
|
| - factory Int8Array.fromList(List<num> list) => _I8(ensureNative(list));
|
| + factory Int8Array.fromList(List<num> list) => _I8_1(ensureNative(list));
|
| factory Int8Array.fromBuffer(ArrayBuffer buffer,
|
| [int byteOffset = 0, int length]) {
|
| if (length == null) return _I8_2(buffer, byteOffset);
|
| @@ -41548,7 +41555,7 @@ class _TypedArrayFactoryProvider {
|
| }
|
|
|
| factory Int16Array(int length) => _I16(length);
|
| - factory Int16Array.fromList(List<num> list) => _I16(ensureNative(list));
|
| + factory Int16Array.fromList(List<num> list) => _I16_1(ensureNative(list));
|
| factory Int16Array.fromBuffer(ArrayBuffer buffer,
|
| [int byteOffset = 0, int length]) {
|
| if (length == null) return _I16_2(buffer, byteOffset);
|
| @@ -41556,7 +41563,7 @@ class _TypedArrayFactoryProvider {
|
| }
|
|
|
| factory Int32Array(int length) => _I32(length);
|
| - factory Int32Array.fromList(List<num> list) => _I32(ensureNative(list));
|
| + factory Int32Array.fromList(List<num> list) => _I32_1(ensureNative(list));
|
| factory Int32Array.fromBuffer(ArrayBuffer buffer,
|
| [int byteOffset = 0, int length]) {
|
| if (length == null) return _I32_2(buffer, byteOffset);
|
| @@ -41564,7 +41571,7 @@ class _TypedArrayFactoryProvider {
|
| }
|
|
|
| factory Uint8Array(int length) => _U8(length);
|
| - factory Uint8Array.fromList(List<num> list) => _U8(ensureNative(list));
|
| + factory Uint8Array.fromList(List<num> list) => _U8_1(ensureNative(list));
|
| factory Uint8Array.fromBuffer(ArrayBuffer buffer,
|
| [int byteOffset = 0, int length]) {
|
| if (length == null) return _U8_2(buffer, byteOffset);
|
| @@ -41572,7 +41579,7 @@ class _TypedArrayFactoryProvider {
|
| }
|
|
|
| factory Uint16Array(int length) => _U16(length);
|
| - factory Uint16Array.fromList(List<num> list) => _U16(ensureNative(list));
|
| + factory Uint16Array.fromList(List<num> list) => _U16_1(ensureNative(list));
|
| factory Uint16Array.fromBuffer(ArrayBuffer buffer,
|
| [int byteOffset = 0, int length]) {
|
| if (length == null) return _U16_2(buffer, byteOffset);
|
| @@ -41580,7 +41587,7 @@ class _TypedArrayFactoryProvider {
|
| }
|
|
|
| factory Uint32Array(int length) => _U32(length);
|
| - factory Uint32Array.fromList(List<num> list) => _U32(ensureNative(list));
|
| + factory Uint32Array.fromList(List<num> list) => _U32_1(ensureNative(list));
|
| factory Uint32Array.fromBuffer(ArrayBuffer buffer,
|
| [int byteOffset = 0, int length]) {
|
| if (length == null) return _U32_2(buffer, byteOffset);
|
| @@ -41588,7 +41595,7 @@ class _TypedArrayFactoryProvider {
|
| }
|
|
|
| factory Uint8ClampedArray(int length) => _U8C(length);
|
| - factory Uint8ClampedArray.fromList(List<num> list) => _U8C(ensureNative(list));
|
| + factory Uint8ClampedArray.fromList(List<num> list) => _U8C_1(ensureNative(list));
|
| factory Uint8ClampedArray.fromBuffer(ArrayBuffer buffer,
|
| [int byteOffset = 0, int length]) {
|
| if (length == null) return _U8C_2(buffer, byteOffset);
|
| @@ -41605,6 +41612,16 @@ class _TypedArrayFactoryProvider {
|
| static Uint32Array _U32(arg) => _wrap(new dom.Uint32Array(arg));
|
| static Uint8ClampedArray _U8C(arg) => _wrap(new dom.Uint8ClampedArray(arg));
|
|
|
| + static Float32Array _F32_1(arg) => _wrap(new dom.Float32Array.fromList(arg));
|
| + static Float64Array _F64_1(arg) => _wrap(new dom.Float64Array.fromList(arg));
|
| + static Int8Array _I8_1(arg) => _wrap(new dom.Int8Array.fromList(arg));
|
| + static Int16Array _I16_1(arg) => _wrap(new dom.Int16Array.fromList(arg));
|
| + static Int32Array _I32_1(arg) => _wrap(new dom.Int32Array.fromList(arg));
|
| + static Uint8Array _U8_1(arg) => _wrap(new dom.Uint8Array.fromList(arg));
|
| + static Uint16Array _U16_1(arg) => _wrap(new dom.Uint16Array.fromList(arg));
|
| + static Uint32Array _U32_1(arg) => _wrap(new dom.Uint32Array.fromList(arg));
|
| + static Uint8ClampedArray _U8C_1(arg) => _wrap(new dom.Uint8ClampedArray.fromList(arg));
|
| +
|
| static Float32Array _F32_2(buffer, byteOffset) => _wrap(new dom.Float32Array.fromBuffer(_unwrap(buffer), byteOffset));
|
| static Float64Array _F64_2(buffer, byteOffset) => _wrap(new dom.Float64Array.fromBuffer(_unwrap(buffer), byteOffset));
|
| static Int8Array _I8_2(buffer, byteOffset) => _wrap(new dom.Int8Array.fromBuffer(_unwrap(buffer), byteOffset));
|
|
|