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

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

Issue 1763753002: Revert "Changes to tests and status file for the 45 roll w/ regenderated sdk/libs" (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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 | « 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 f969eb3f36ec3a65ba1c6d087c8ff2e941076aa0..1f80c9d43f08a9ba58d3ba7f5c64e82d5780dbe6 100644
--- a/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
+++ b/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
@@ -774,16 +774,6 @@ class Index extends Interceptor {
@annotation_Creates_SerializedScriptValue
Request _get(Object key) native;
- @DomName('IDBIndex.getAll')
- @DocsEditable()
- @Experimental() // untriaged
- Request getAll(Object range, [int maxCount]) native;
-
- @DomName('IDBIndex.getAllKeys')
- @DocsEditable()
- @Experimental() // untriaged
- Request getAllKeys(Object range, [int maxCount]) native;
-
@JSName('getKey')
@DomName('IDBIndex.getKey')
@DocsEditable()
@@ -1082,21 +1072,41 @@ class ObjectStore extends Interceptor {
@DomName('IDBObjectStore.createIndex')
@DocsEditable()
- Index _createIndex(String name, Object keyPath, [Map options]) {
- if (options != null) {
+ Index _createIndex(String name, keyPath, [Map options]) {
+ if ((keyPath is String || keyPath == null) && options == null) {
+ return _createIndex_1(name, keyPath);
+ }
+ if (options != null && (keyPath is String || keyPath == null)) {
var options_1 = convertDartToNative_Dictionary(options);
- return _createIndex_1(name, keyPath, options_1);
+ return _createIndex_2(name, keyPath, options_1);
}
- return _createIndex_2(name, keyPath);
+ if ((keyPath is List<String> || keyPath == null) && options == null) {
+ List keyPath_1 = convertDartToNative_StringArray(keyPath);
+ return _createIndex_3(name, keyPath_1);
+ }
+ if (options != null && (keyPath is List<String> || keyPath == null)) {
+ List keyPath_1 = convertDartToNative_StringArray(keyPath);
+ var options_2 = convertDartToNative_Dictionary(options);
+ return _createIndex_4(name, keyPath_1, options_2);
+ }
+ throw new ArgumentError("Incorrect number or type of arguments");
}
@JSName('createIndex')
@DomName('IDBObjectStore.createIndex')
@DocsEditable()
- Index _createIndex_1(name, keyPath, options) native;
+ Index _createIndex_1(name, String keyPath) native;
+ @JSName('createIndex')
+ @DomName('IDBObjectStore.createIndex')
+ @DocsEditable()
+ Index _createIndex_2(name, String keyPath, options) native;
+ @JSName('createIndex')
+ @DomName('IDBObjectStore.createIndex')
+ @DocsEditable()
+ Index _createIndex_3(name, List keyPath) native;
@JSName('createIndex')
@DomName('IDBObjectStore.createIndex')
@DocsEditable()
- Index _createIndex_2(name, keyPath) native;
+ Index _createIndex_4(name, List keyPath, options) native;
@JSName('delete')
@DomName('IDBObjectStore.delete')
@@ -1115,16 +1125,6 @@ class ObjectStore extends Interceptor {
@annotation_Creates_SerializedScriptValue
Request _get(Object key) native;
- @DomName('IDBObjectStore.getAll')
- @DocsEditable()
- @Experimental() // untriaged
- Request getAll(Object range, [int maxCount]) native;
-
- @DomName('IDBObjectStore.getAllKeys')
- @DocsEditable()
- @Experimental() // untriaged
- Request getAllKeys(Object range, [int maxCount]) native;
-
@DomName('IDBObjectStore.index')
@DocsEditable()
Index index(String name) native;
@@ -1394,13 +1394,6 @@ class Transaction extends EventTarget {
@DocsEditable()
final String mode;
- @DomName('IDBTransaction.objectStoreNames')
- @DocsEditable()
- @Experimental() // untriaged
- @Returns('DomStringList')
- @Creates('DomStringList')
- final List<String> objectStoreNames;
-
@DomName('IDBTransaction.abort')
@DocsEditable()
void abort() native;
@@ -1438,18 +1431,6 @@ class VersionChangeEvent extends Event {
// To suppress missing implicit constructor warnings.
factory VersionChangeEvent._() { throw new UnsupportedError("Not supported"); }
- @DomName('IDBVersionChangeEvent.IDBVersionChangeEvent')
- @DocsEditable()
- factory VersionChangeEvent(String type, [Map eventInitDict]) {
- if (eventInitDict != null) {
- var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
- return VersionChangeEvent._create_1(type, eventInitDict_1);
- }
- return VersionChangeEvent._create_2(type);
- }
- static VersionChangeEvent _create_1(type, eventInitDict) => JS('VersionChangeEvent', 'new IDBVersionChangeEvent(#,#)', type, eventInitDict);
- static VersionChangeEvent _create_2(type) => JS('VersionChangeEvent', 'new IDBVersionChangeEvent(#)', type);
-
@DomName('IDBVersionChangeEvent.dataLoss')
@DocsEditable()
@Experimental() // untriaged
« 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