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

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

Issue 1761973002: Updated status file changes for Dartium sdk/lib generated from 45 IDLs (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Updated Dartium sdk/lib regen'd from 45 IDLs 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/svg/dartium/svg_dartium.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 36b35e38f2963e64a15145550ede0e7bd1b62cea..02a914f7f4a64a456796bf0b8d05e15f2c9e66a1 100644
--- a/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
+++ b/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
@@ -704,6 +704,20 @@ 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));
@@ -1001,20 +1015,11 @@ 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, 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)));
- }
- 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)));
+ 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)));
}
- throw new ArgumentError("Incorrect number or type of arguments");
+ return wrap_jso(_blink.BlinkIDBObjectStore.instance.createIndex_Callback_2_(unwrap_jso(this), name, keyPath));
}
@DomName('IDBObjectStore.delete')
@@ -1029,6 +1034,20 @@ 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));
@@ -1310,6 +1329,11 @@ 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));
@@ -1348,6 +1372,16 @@ 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/html/dartium/html_dartium.dart ('k') | sdk/lib/svg/dartium/svg_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698