Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(351)

Unified Diff: client/dom/frog/dom_frog.dart

Issue 9453030: Fix for issue 1814 for dart:dom (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix typo Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | client/dom/generated/src/frog/Float32Array.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/dom/frog/dom_frog.dart
diff --git a/client/dom/frog/dom_frog.dart b/client/dom/frog/dom_frog.dart
index df1601ea08a73aa76e23565521f386be1f9da009..624aaafa4f14df173c2d23fabc37a701d842a471 100644
--- a/client/dom/frog/dom_frog.dart
+++ b/client/dom/frog/dom_frog.dart
@@ -2320,7 +2320,9 @@ class _Float32ArrayJs extends _ArrayBufferViewJs implements Float32Array, List<n
// -- end List<num> mixins.
- void setElements(Object array, [int offset = null]) native;
+ void setElements(Object array, [int offset = null]) native '''
+if (offset == null) return this.set(array);
+return this.set(array, offset);''';
_Float32ArrayJs subarray(int start, [int end = null]) native;
}
@@ -2410,7 +2412,9 @@ class _Float64ArrayJs extends _ArrayBufferViewJs implements Float64Array, List<n
// -- end List<num> mixins.
- void setElements(Object array, [int offset = null]) native;
+ void setElements(Object array, [int offset = null]) native '''
+if (offset == null) return this.set(array);
+return this.set(array, offset);''';
_Float64ArrayJs subarray(int start, [int end = null]) native;
}
@@ -4000,7 +4004,10 @@ class _IDBCursorJs extends _DOMTypeJs implements IDBCursor native "*IDBCursor" {
final _IDBAnyJs source;
- void continueFunction([_IDBKeyJs key = null]) native;
+ void continueFunction([_IDBKeyJs key = null]) native '''
+if (key == null) return this['continue']();
+return this['continue'](key);
+''';
_IDBRequestJs delete() native;
@@ -4110,7 +4117,7 @@ class _IDBIndexJs extends _DOMTypeJs implements IDBIndex native "*IDBIndex" {
_IDBRequestJs count([_IDBKeyRangeJs range = null]) native;
- _IDBRequestJs getObject(_IDBKeyJs key) native;
+ _IDBRequestJs getObject(_IDBKeyJs key) native '''return this.get(key);''';
_IDBRequestJs getKey(_IDBKeyJs key) native;
@@ -4161,7 +4168,7 @@ class _IDBObjectStoreJs extends _DOMTypeJs implements IDBObjectStore native "*ID
void deleteIndex(String name) native;
- _IDBRequestJs getObject(_IDBKeyJs key) native;
+ _IDBRequestJs getObject(_IDBKeyJs key) native '''return this.get(key);''';
_IDBIndexJs index(String name) native;
@@ -4332,7 +4339,9 @@ class _Int16ArrayJs extends _ArrayBufferViewJs implements Int16Array, List<int>
// -- end List<int> mixins.
- void setElements(Object array, [int offset = null]) native;
+ void setElements(Object array, [int offset = null]) native '''
+if (offset == null) return this.set(array);
+return this.set(array, offset);''';
_Int16ArrayJs subarray(int start, [int end = null]) native;
}
@@ -4422,7 +4431,9 @@ class _Int32ArrayJs extends _ArrayBufferViewJs implements Int32Array, List<int>
// -- end List<int> mixins.
- void setElements(Object array, [int offset = null]) native;
+ void setElements(Object array, [int offset = null]) native '''
+if (offset == null) return this.set(array);
+return this.set(array, offset);''';
_Int32ArrayJs subarray(int start, [int end = null]) native;
}
@@ -4512,7 +4523,9 @@ class _Int8ArrayJs extends _ArrayBufferViewJs implements Int8Array, List<int> na
// -- end List<int> mixins.
- void setElements(Object array, [int offset = null]) native;
+ void setElements(Object array, [int offset = null]) native '''
+if (offset == null) return this.set(array);
+return this.set(array, offset);''';
_Int8ArrayJs subarray(int start, [int end = null]) native;
}
@@ -9725,7 +9738,9 @@ class _Uint16ArrayJs extends _ArrayBufferViewJs implements Uint16Array, List<int
// -- end List<int> mixins.
- void setElements(Object array, [int offset = null]) native;
+ void setElements(Object array, [int offset = null]) native '''
+if (offset == null) return this.set(array);
+return this.set(array, offset);''';
_Uint16ArrayJs subarray(int start, [int end = null]) native;
}
@@ -9815,7 +9830,9 @@ class _Uint32ArrayJs extends _ArrayBufferViewJs implements Uint32Array, List<int
// -- end List<int> mixins.
- void setElements(Object array, [int offset = null]) native;
+ void setElements(Object array, [int offset = null]) native '''
+if (offset == null) return this.set(array);
+return this.set(array, offset);''';
_Uint32ArrayJs subarray(int start, [int end = null]) native;
}
@@ -9905,7 +9922,9 @@ class _Uint8ArrayJs extends _ArrayBufferViewJs implements Uint8Array, List<int>
// -- end List<int> mixins.
- void setElements(Object array, [int offset = null]) native;
+ void setElements(Object array, [int offset = null]) native '''
+if (offset == null) return this.set(array);
+return this.set(array, offset);''';
_Uint8ArrayJs subarray(int start, [int end = null]) native;
}
« no previous file with comments | « no previous file | client/dom/generated/src/frog/Float32Array.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698