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

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

Issue 1750283002: Revert "Test sdk/lib regen for dart2js" (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/indexed_db/dart2js/indexed_db_dart2js.dart ('k') | sdk/lib/svg/dart2js/svg_dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 02a914f7f4a64a456796bf0b8d05e15f2c9e66a1..36b35e38f2963e64a15145550ede0e7bd1b62cea 100644
--- a/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
+++ b/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
@@ -704,20 +704,6 @@ class Index extends DartHtmlDomObject {
@DocsEditable()
Request _get(Object key) => wrap_jso(_blink.BlinkIDBIndex.instance.get_Callback_1_(unwrap_jso(this), key));
- Request getAll(Object range, [int maxCount]) {
- if (maxCount != null) {
- return wrap_jso(_blink.BlinkIDBIndex.instance.getAll_Callback_2_(unwrap_jso(this), range, maxCount));
- }
- return wrap_jso(_blink.BlinkIDBIndex.instance.getAll_Callback_1_(unwrap_jso(this), range));
- }
-
- Request getAllKeys(Object range, [int maxCount]) {
- if (maxCount != null) {
- return wrap_jso(_blink.BlinkIDBIndex.instance.getAllKeys_Callback_2_(unwrap_jso(this), range, maxCount));
- }
- return wrap_jso(_blink.BlinkIDBIndex.instance.getAllKeys_Callback_1_(unwrap_jso(this), range));
- }
-
@DomName('IDBIndex.getKey')
@DocsEditable()
Request _getKey(Object key) => wrap_jso(_blink.BlinkIDBIndex.instance.getKey_Callback_1_(unwrap_jso(this), key));
@@ -1015,11 +1001,20 @@ class ObjectStore extends DartHtmlDomObject {
@DocsEditable()
Request _count(Object key) => wrap_jso(_blink.BlinkIDBObjectStore.instance.count_Callback_1_(unwrap_jso(this), key));
- Index _createIndex(String name, Object keyPath, [Map options]) {
- if (options != null) {
- return wrap_jso(_blink.BlinkIDBObjectStore.instance.createIndex_Callback_3_(unwrap_jso(this), name, keyPath, convertDartToNative_Dictionary(options)));
+ Index _createIndex(String name, keyPath, [Map options]) {
+ if ((keyPath is String || keyPath == null) && (name is String || name == null) && options == null) {
+ return wrap_jso(_blink.BlinkIDBObjectStore.instance.createIndex_Callback_2_(unwrap_jso(this), name, unwrap_jso(keyPath)));
+ }
+ if ((options is Map || options == null) && (keyPath is String || keyPath == null) && (name is String || name == null)) {
+ return wrap_jso(_blink.BlinkIDBObjectStore.instance.createIndex_Callback_3_(unwrap_jso(this), name, unwrap_jso(keyPath), convertDartToNative_Dictionary(options)));
+ }
+ if ((keyPath is List<String> || keyPath == null) && (name is String || name == null) && options == null) {
+ return wrap_jso(_blink.BlinkIDBObjectStore.instance.createIndex_Callback_2_(unwrap_jso(this), name, unwrap_jso(keyPath)));
}
- return wrap_jso(_blink.BlinkIDBObjectStore.instance.createIndex_Callback_2_(unwrap_jso(this), name, keyPath));
+ if ((options is Map || options == null) && (keyPath is List<String> || keyPath == null) && (name is String || name == null)) {
+ return wrap_jso(_blink.BlinkIDBObjectStore.instance.createIndex_Callback_3_(unwrap_jso(this), name, unwrap_jso(keyPath), convertDartToNative_Dictionary(options)));
+ }
+ throw new ArgumentError("Incorrect number or type of arguments");
}
@DomName('IDBObjectStore.delete')
@@ -1034,20 +1029,6 @@ class ObjectStore extends DartHtmlDomObject {
@DocsEditable()
Request _get(Object key) => wrap_jso(_blink.BlinkIDBObjectStore.instance.get_Callback_1_(unwrap_jso(this), key));
- Request getAll(Object range, [int maxCount]) {
- if (maxCount != null) {
- return wrap_jso(_blink.BlinkIDBObjectStore.instance.getAll_Callback_2_(unwrap_jso(this), range, maxCount));
- }
- return wrap_jso(_blink.BlinkIDBObjectStore.instance.getAll_Callback_1_(unwrap_jso(this), range));
- }
-
- Request getAllKeys(Object range, [int maxCount]) {
- if (maxCount != null) {
- return wrap_jso(_blink.BlinkIDBObjectStore.instance.getAllKeys_Callback_2_(unwrap_jso(this), range, maxCount));
- }
- return wrap_jso(_blink.BlinkIDBObjectStore.instance.getAllKeys_Callback_1_(unwrap_jso(this), range));
- }
-
@DomName('IDBObjectStore.index')
@DocsEditable()
Index index(String name) => wrap_jso(_blink.BlinkIDBObjectStore.instance.index_Callback_1_(unwrap_jso(this), name));
@@ -1329,11 +1310,6 @@ class Transaction extends EventTarget {
@DocsEditable()
String get mode => _blink.BlinkIDBTransaction.instance.mode_Getter_(unwrap_jso(this));
- @DomName('IDBTransaction.objectStoreNames')
- @DocsEditable()
- @Experimental() // untriaged
- List<String> get objectStoreNames => wrap_jso(_blink.BlinkIDBTransaction.instance.objectStoreNames_Getter_(unwrap_jso(this)));
-
@DomName('IDBTransaction.abort')
@DocsEditable()
void abort() => _blink.BlinkIDBTransaction.instance.abort_Callback_0_(unwrap_jso(this));
@@ -1372,16 +1348,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 wrap_jso(_blink.BlinkIDBVersionChangeEvent.instance.constructorCallback_2_(type, eventInitDict_1));
- }
- return wrap_jso(_blink.BlinkIDBVersionChangeEvent.instance.constructorCallback_1_(type));
- }
-
@Deprecated("Internal Use Only")
static VersionChangeEvent internalCreateVersionChangeEvent() {
« no previous file with comments | « sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart ('k') | sdk/lib/svg/dart2js/svg_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698