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

Unified Diff: sdk/lib/indexed_db/dartium/indexed_db_dartium.dart

Issue 12094103: Added MappedListIterable/Iterator to implement map() on Lists. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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
Index: sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
diff --git a/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart b/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
index ea6824491975603f0ebbbc41d0223f7c1cfa564c..a46e9dfc6fd85cb2ca64569c9cad80f9c830f57f 100644
--- a/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
+++ b/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
@@ -65,22 +65,41 @@ class Cursor extends NativeFieldWrapperClass1 {
@DocsEditable
void advance(int count) native "IDBCursor_advance_Callback";
- void continueFunction([/*IDBKey*/ key]) {
+ void continue([key]) {
+ if (!?key) {
+ _continue_1();
+ return;
+ }
if (?key) {
- _continue_1(key);
+ _continue_2(key);
+ return;
+ }
+ if (!?key) {
+ _continue_3();
return;
}
- _continue_2();
- return;
+ if (?key) {
+ _continue_4(key);
+ return;
+ }
+ throw new ArgumentError("Incorrect number or type of arguments");
}
@DomName('IDBCursor._continue_1')
@DocsEditable
- void _continue_1(key) native "IDBCursor__continue_1_Callback";
+ void _continue_1() native "IDBCursor__continue_1_Callback";
@DomName('IDBCursor._continue_2')
@DocsEditable
- void _continue_2() native "IDBCursor__continue_2_Callback";
+ void _continue_2(key) native "IDBCursor__continue_2_Callback";
+
+ @DomName('IDBCursor._continue_3')
+ @DocsEditable
+ void _continue_3() native "IDBCursor__continue_3_Callback";
+
+ @DomName('IDBCursor._continue_4')
+ @DocsEditable
+ void _continue_4(key) native "IDBCursor__continue_4_Callback";
@DomName('IDBCursor.delete')
@DocsEditable
@@ -344,6 +363,9 @@ class Index extends NativeFieldWrapperClass1 {
if (?key) {
return _get_2(key);
}
+ if (?key) {
+ return _get_3(key);
+ }
throw new ArgumentError("Incorrect number or type of arguments");
}
@@ -355,6 +377,10 @@ class Index extends NativeFieldWrapperClass1 {
@DocsEditable
Request _get_2(key) native "IDBIndex__get_2_Callback";
+ @DomName('IDBIndex._get_3')
+ @DocsEditable
+ Request _get_3(key) native "IDBIndex__get_3_Callback";
+
Request getKey(key) {
if ((key is KeyRange || key == null)) {
return _getKey_1(key);
@@ -508,7 +534,7 @@ class KeyRange extends NativeFieldWrapperClass1 {
@DocsEditable
bool get upperOpen native "IDBKeyRange_upperOpen_Getter";
- static KeyRange bound_(/*IDBKey*/ lower, /*IDBKey*/ upper, [bool lowerOpen, bool upperOpen]) {
+ static KeyRange bound(/*IDBKey*/ lower, /*IDBKey*/ upper, [bool lowerOpen, bool upperOpen]) {
if (?upperOpen) {
return _bound_1(lower, upper, lowerOpen, upperOpen);
}
@@ -530,7 +556,7 @@ class KeyRange extends NativeFieldWrapperClass1 {
@DocsEditable
static KeyRange _bound_3(lower, upper) native "IDBKeyRange__bound_3_Callback";
- static KeyRange lowerBound_(/*IDBKey*/ bound, [bool open]) {
+ static KeyRange lowerBound(/*IDBKey*/ bound, [bool open]) {
if (?open) {
return _lowerBound_1(bound, open);
}
@@ -545,11 +571,11 @@ class KeyRange extends NativeFieldWrapperClass1 {
@DocsEditable
static KeyRange _lowerBound_2(bound) native "IDBKeyRange__lowerBound_2_Callback";
- @DomName('IDBKeyRange.only_')
+ @DomName('IDBKeyRange.only')
@DocsEditable
- static KeyRange only_(/*IDBKey*/ value) native "IDBKeyRange_only__Callback";
+ static KeyRange only(/*IDBKey*/ value) native "IDBKeyRange_only_Callback";
- static KeyRange upperBound_(/*IDBKey*/ bound, [bool open]) {
+ static KeyRange upperBound(/*IDBKey*/ bound, [bool open]) {
if (?open) {
return _upperBound_1(bound, open);
}
@@ -688,6 +714,9 @@ class ObjectStore extends NativeFieldWrapperClass1 {
if (?key) {
return _get_2(key);
}
+ if (?key) {
+ return _get_3(key);
+ }
throw new ArgumentError("Incorrect number or type of arguments");
}
@@ -699,6 +728,10 @@ class ObjectStore extends NativeFieldWrapperClass1 {
@DocsEditable
Request _get_2(key) native "IDBObjectStore__get_2_Callback";
+ @DomName('IDBObjectStore._get_3')
+ @DocsEditable
+ Request _get_3(key) native "IDBObjectStore__get_3_Callback";
+
@DomName('IDBObjectStore.index')
@DocsEditable
Index index(String name) native "IDBObjectStore_index_Callback";

Powered by Google App Engine
This is Rietveld 408576698