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

Unified Diff: sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart

Issue 605083004: Merge 38 changes to bleeding edge (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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 | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/indexed_db/dartium/indexed_db_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
diff --git a/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart b/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
index 2267a4fc625c884e871dda4d5c5239b42ed14a45..3dd4a77b42d0da9e03dce961d2a073f649c492ab 100644
--- a/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
+++ b/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
@@ -701,7 +701,8 @@ class Index extends Interceptor {
}
var request;
if (direction == null) {
- request = _openCursor(key_OR_range);
+ // FIXME: Passing in "next" should be unnecessary.
+ request = _openCursor(key_OR_range, "next");
} else {
request = _openCursor(key_OR_range, direction);
}
@@ -728,7 +729,8 @@ class Index extends Interceptor {
}
var request;
if (direction == null) {
- request = _openKeyCursor(key_OR_range);
+ // FIXME: Passing in "next" should be unnecessary.
+ request = _openKeyCursor(key_OR_range, "next");
} else {
request = _openKeyCursor(key_OR_range, direction);
}
@@ -787,7 +789,7 @@ class Index extends Interceptor {
@Returns('Request')
@Creates('Request')
@Creates('Cursor')
- Request _openCursor(Object key, [String direction]) native;
+ Request _openCursor(Object range, [String direction]) native;
@JSName('openKeyCursor')
@DomName('IDBIndex.openKeyCursor')
@@ -795,7 +797,7 @@ class Index extends Interceptor {
@Returns('Request')
@Creates('Request')
@Creates('Cursor')
- Request _openKeyCursor(Object key, [String direction]) native;
+ Request _openKeyCursor(Object range, [String direction]) native;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
@@ -1138,7 +1140,7 @@ class ObjectStore extends Interceptor {
@DomName('IDBObjectStore.openKeyCursor')
@DocsEditable()
@Experimental() // untriaged
- Request openKeyCursor(Object range, String direction) native;
+ Request openKeyCursor(Object range, [String direction]) native;
@DomName('IDBObjectStore.put')
@DocsEditable()
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/indexed_db/dartium/indexed_db_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698