| 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 ee73b5f9ed46c2948902022e4c8c6f1c60da0a59..460b1d997a5aec14d826d30238f9535629baf27c 100644
|
| --- a/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
|
| +++ b/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
|
| @@ -121,6 +121,7 @@ final indexed_dbBlinkMap = {
|
| 'IDBVersionChangeEvent': () => VersionChangeEvent,
|
|
|
| };
|
| +
|
| // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| // BSD-style license that can be found in the LICENSE file.
|
| @@ -150,48 +151,62 @@ class Cursor extends NativeFieldWrapperClass2 {
|
| // To suppress missing implicit constructor warnings.
|
| factory Cursor._() { throw new UnsupportedError("Not supported"); }
|
|
|
| + static Cursor internalCreateCursor() {
|
| + return new Cursor._internalWrap();
|
| + }
|
| +
|
| + JsObject blink_jsObject = null;
|
| +
|
| + factory Cursor._internalWrap() {
|
| + return new Cursor._internal();
|
| + }
|
| +
|
| + Cursor._internal() { }
|
| +
|
| + bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(this, other);
|
| +
|
| @DomName('IDBCursor.direction')
|
| @DocsEditable()
|
| - String get direction => _blink.BlinkIDBCursor.instance.direction_Getter_(this);
|
| -
|
| + String get direction => _blink.BlinkIDBCursor.instance.direction_Getter_(unwrap_jso(this));
|
| +
|
| @DomName('IDBCursor.key')
|
| @DocsEditable()
|
| - Object get key => _blink.BlinkIDBCursor.instance.key_Getter_(this);
|
| -
|
| + Object get key => _blink.BlinkIDBCursor.instance.key_Getter_(unwrap_jso(this));
|
| +
|
| @DomName('IDBCursor.primaryKey')
|
| @DocsEditable()
|
| - Object get primaryKey => _blink.BlinkIDBCursor.instance.primaryKey_Getter_(this);
|
| -
|
| + Object get primaryKey => _blink.BlinkIDBCursor.instance.primaryKey_Getter_(unwrap_jso(this));
|
| +
|
| @DomName('IDBCursor.source')
|
| @DocsEditable()
|
| - Object get source => _blink.BlinkIDBCursor.instance.source_Getter_(this);
|
| -
|
| + Object get source => _blink.BlinkIDBCursor.instance.source_Getter_(unwrap_jso(this));
|
| +
|
| @DomName('IDBCursor.advance')
|
| @DocsEditable()
|
| - void advance(int count) => _blink.BlinkIDBCursor.instance.advance_Callback_1_(this, count);
|
| -
|
| + void advance(int count) => _blink.BlinkIDBCursor.instance.advance_Callback_1_(unwrap_jso(this), count);
|
| +
|
| @DomName('IDBCursor.continuePrimaryKey')
|
| @DocsEditable()
|
| @Experimental() // untriaged
|
| - void continuePrimaryKey(Object key, Object primaryKey) => _blink.BlinkIDBCursor.instance.continuePrimaryKey_Callback_2_(this, key, primaryKey);
|
| -
|
| + void continuePrimaryKey(Object key, Object primaryKey) => _blink.BlinkIDBCursor.instance.continuePrimaryKey_Callback_2_(unwrap_jso(this), key, primaryKey);
|
| +
|
| @DomName('IDBCursor.delete')
|
| @DocsEditable()
|
| - Request _delete() => _blink.BlinkIDBCursor.instance.delete_Callback_0_(this);
|
| -
|
| + Request _delete() => wrap_jso(_blink.BlinkIDBCursor.instance.delete_Callback_0_(unwrap_jso(this)));
|
| +
|
| void next([Object key]) {
|
| if (key != null) {
|
| - _blink.BlinkIDBCursor.instance.continue_Callback_1_(this, key);
|
| + _blink.BlinkIDBCursor.instance.continue_Callback_1_(unwrap_jso(this), key);
|
| return;
|
| }
|
| - _blink.BlinkIDBCursor.instance.continue_Callback_0_(this);
|
| + _blink.BlinkIDBCursor.instance.continue_Callback_0_(unwrap_jso(this));
|
| return;
|
| }
|
|
|
| @DomName('IDBCursor.update')
|
| @DocsEditable()
|
| - Request _update(Object value) => _blink.BlinkIDBCursor.instance.update_Callback_1_(this, value);
|
| -
|
| + Request _update(Object value) => wrap_jso(_blink.BlinkIDBCursor.instance.update_Callback_1_(unwrap_jso(this), value));
|
| +
|
| }
|
| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| @@ -207,10 +222,22 @@ class CursorWithValue extends Cursor {
|
| // To suppress missing implicit constructor warnings.
|
| factory CursorWithValue._() { throw new UnsupportedError("Not supported"); }
|
|
|
| +
|
| + static CursorWithValue internalCreateCursorWithValue() {
|
| + return new CursorWithValue._internalWrap();
|
| + }
|
| +
|
| + factory CursorWithValue._internalWrap() {
|
| + return new CursorWithValue._internal();
|
| + }
|
| +
|
| + CursorWithValue._internal() : super._internal();
|
| +
|
| +
|
| @DomName('IDBCursorWithValue.value')
|
| @DocsEditable()
|
| - Object get value => _blink.BlinkIDBCursorWithValue.instance.value_Getter_(this);
|
| -
|
| + Object get value => _blink.BlinkIDBCursorWithValue.instance.value_Getter_(unwrap_jso(this));
|
| +
|
| }
|
| // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| @@ -290,74 +317,86 @@ class Database extends EventTarget {
|
| @DocsEditable()
|
| static const EventStreamProvider<VersionChangeEvent> versionChangeEvent = const EventStreamProvider<VersionChangeEvent>('versionchange');
|
|
|
| +
|
| + static Database internalCreateDatabase() {
|
| + return new Database._internalWrap();
|
| + }
|
| +
|
| + factory Database._internalWrap() {
|
| + return new Database._internal();
|
| + }
|
| +
|
| + Database._internal() : super._internal();
|
| +
|
| +
|
| @DomName('IDBDatabase.name')
|
| @DocsEditable()
|
| - String get name => _blink.BlinkIDBDatabase.instance.name_Getter_(this);
|
| -
|
| + String get name => _blink.BlinkIDBDatabase.instance.name_Getter_(unwrap_jso(this));
|
| +
|
| @DomName('IDBDatabase.objectStoreNames')
|
| @DocsEditable()
|
| - List<String> get objectStoreNames => _blink.BlinkIDBDatabase.instance.objectStoreNames_Getter_(this);
|
| -
|
| + List<String> get objectStoreNames => _blink.BlinkIDBDatabase.instance.objectStoreNames_Getter_(unwrap_jso(this));
|
| +
|
| @DomName('IDBDatabase.version')
|
| @DocsEditable()
|
| - Object get version => _blink.BlinkIDBDatabase.instance.version_Getter_(this);
|
| -
|
| + Object get version => _blink.BlinkIDBDatabase.instance.version_Getter_(unwrap_jso(this));
|
| +
|
| @DomName('IDBDatabase.close')
|
| @DocsEditable()
|
| - void close() => _blink.BlinkIDBDatabase.instance.close_Callback_0_(this);
|
| -
|
| + void close() => _blink.BlinkIDBDatabase.instance.close_Callback_0_(unwrap_jso(this));
|
| +
|
| ObjectStore _createObjectStore(String name, [Map options]) {
|
| if (options != null) {
|
| - return _blink.BlinkIDBDatabase.instance.createObjectStore_Callback_2_(this, name, options);
|
| + return _blink.BlinkIDBDatabase.instance.createObjectStore_Callback_2_(unwrap_jso(this), name, options != null ? new js.JsObject.jsify(options) : options);
|
| }
|
| - return _blink.BlinkIDBDatabase.instance.createObjectStore_Callback_1_(this, name);
|
| + return _blink.BlinkIDBDatabase.instance.createObjectStore_Callback_1_(unwrap_jso(this), name);
|
| }
|
|
|
| @DomName('IDBDatabase.deleteObjectStore')
|
| @DocsEditable()
|
| - void deleteObjectStore(String name) => _blink.BlinkIDBDatabase.instance.deleteObjectStore_Callback_1_(this, name);
|
| -
|
| + void deleteObjectStore(String name) => _blink.BlinkIDBDatabase.instance.deleteObjectStore_Callback_1_(unwrap_jso(this), name);
|
| +
|
| Transaction transaction(storeName_OR_storeNames, [String mode]) {
|
| if ((storeName_OR_storeNames is String || storeName_OR_storeNames == null) && mode == null) {
|
| - return _blink.BlinkIDBDatabase.instance.transaction_Callback_1_(this, storeName_OR_storeNames);
|
| + return _blink.BlinkIDBDatabase.instance.transaction_Callback_1_(unwrap_jso(this), unwrap_jso(storeName_OR_storeNames));
|
| }
|
| if ((mode is String || mode == null) && (storeName_OR_storeNames is String || storeName_OR_storeNames == null)) {
|
| - return _blink.BlinkIDBDatabase.instance.transaction_Callback_2_(this, storeName_OR_storeNames, mode);
|
| + return _blink.BlinkIDBDatabase.instance.transaction_Callback_2_(unwrap_jso(this), unwrap_jso(storeName_OR_storeNames), mode);
|
| }
|
| if ((storeName_OR_storeNames is List<String> || storeName_OR_storeNames == null) && mode == null) {
|
| - return _blink.BlinkIDBDatabase.instance.transaction_Callback_1_(this, storeName_OR_storeNames);
|
| + return _blink.BlinkIDBDatabase.instance.transaction_Callback_1_(unwrap_jso(this), unwrap_jso(storeName_OR_storeNames));
|
| }
|
| if ((mode is String || mode == null) && (storeName_OR_storeNames is List<String> || storeName_OR_storeNames == null)) {
|
| - return _blink.BlinkIDBDatabase.instance.transaction_Callback_2_(this, storeName_OR_storeNames, mode);
|
| + return _blink.BlinkIDBDatabase.instance.transaction_Callback_2_(unwrap_jso(this), unwrap_jso(storeName_OR_storeNames), mode);
|
| }
|
| if ((storeName_OR_storeNames is DomStringList || storeName_OR_storeNames == null) && mode == null) {
|
| - return _blink.BlinkIDBDatabase.instance.transaction_Callback_1_(this, storeName_OR_storeNames);
|
| + return _blink.BlinkIDBDatabase.instance.transaction_Callback_1_(unwrap_jso(this), unwrap_jso(storeName_OR_storeNames));
|
| }
|
| if ((mode is String || mode == null) && (storeName_OR_storeNames is DomStringList || storeName_OR_storeNames == null)) {
|
| - return _blink.BlinkIDBDatabase.instance.transaction_Callback_2_(this, storeName_OR_storeNames, mode);
|
| + return _blink.BlinkIDBDatabase.instance.transaction_Callback_2_(unwrap_jso(this), unwrap_jso(storeName_OR_storeNames), mode);
|
| }
|
| throw new ArgumentError("Incorrect number or type of arguments");
|
| }
|
|
|
| Transaction transactionList(List<String> storeNames, [String mode]) {
|
| if (mode != null) {
|
| - return _blink.BlinkIDBDatabase.instance.transaction_Callback_2_(this, storeNames, mode);
|
| + return _blink.BlinkIDBDatabase.instance.transaction_Callback_2_(unwrap_jso(this), storeNames, mode);
|
| }
|
| - return _blink.BlinkIDBDatabase.instance.transaction_Callback_1_(this, storeNames);
|
| + return _blink.BlinkIDBDatabase.instance.transaction_Callback_1_(unwrap_jso(this), storeNames);
|
| }
|
|
|
| Transaction transactionStore(String storeName, [String mode]) {
|
| if (mode != null) {
|
| - return _blink.BlinkIDBDatabase.instance.transaction_Callback_2_(this, storeName, mode);
|
| + return _blink.BlinkIDBDatabase.instance.transaction_Callback_2_(unwrap_jso(this), storeName, mode);
|
| }
|
| - return _blink.BlinkIDBDatabase.instance.transaction_Callback_1_(this, storeName);
|
| + return _blink.BlinkIDBDatabase.instance.transaction_Callback_1_(unwrap_jso(this), storeName);
|
| }
|
|
|
| Transaction transactionStores(List<String> storeNames, [String mode]) {
|
| if (mode != null) {
|
| - return _blink.BlinkIDBDatabase.instance.transaction_Callback_2_(this, storeNames, mode);
|
| + return _blink.BlinkIDBDatabase.instance.transaction_Callback_2_(unwrap_jso(this), unwrap_jso(storeNames), mode);
|
| }
|
| - return _blink.BlinkIDBDatabase.instance.transaction_Callback_1_(this, storeNames);
|
| + return _blink.BlinkIDBDatabase.instance.transaction_Callback_1_(unwrap_jso(this), unwrap_jso(storeNames));
|
| }
|
|
|
| /// Stream of `abort` events handled by this [Database].
|
| @@ -472,19 +511,33 @@ class IdbFactory extends NativeFieldWrapperClass2 {
|
| // To suppress missing implicit constructor warnings.
|
| factory IdbFactory._() { throw new UnsupportedError("Not supported"); }
|
|
|
| + static IdbFactory internalCreateIdbFactory() {
|
| + return new IdbFactory._internalWrap();
|
| + }
|
| +
|
| + JsObject blink_jsObject = null;
|
| +
|
| + factory IdbFactory._internalWrap() {
|
| + return new IdbFactory._internal();
|
| + }
|
| +
|
| + IdbFactory._internal() { }
|
| +
|
| + bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(this, other);
|
| +
|
| @DomName('IDBFactory.cmp')
|
| @DocsEditable()
|
| - int cmp(Object first, Object second) => _blink.BlinkIDBFactory.instance.cmp_Callback_2_(this, first, second);
|
| -
|
| + int cmp(Object first, Object second) => _blink.BlinkIDBFactory.instance.cmp_Callback_2_(unwrap_jso(this), first, second);
|
| +
|
| @DomName('IDBFactory.deleteDatabase')
|
| @DocsEditable()
|
| - OpenDBRequest _deleteDatabase(String name) => _blink.BlinkIDBFactory.instance.deleteDatabase_Callback_1_(this, name);
|
| -
|
| + OpenDBRequest _deleteDatabase(String name) => _blink.BlinkIDBFactory.instance.deleteDatabase_Callback_1_(unwrap_jso(this), name);
|
| +
|
| OpenDBRequest _open(String name, [int version]) {
|
| if (version != null) {
|
| - return _blink.BlinkIDBFactory.instance.open_Callback_2_(this, name, version);
|
| + return _blink.BlinkIDBFactory.instance.open_Callback_2_(unwrap_jso(this), name, version);
|
| }
|
| - return _blink.BlinkIDBFactory.instance.open_Callback_1_(this, name);
|
| + return _blink.BlinkIDBFactory.instance.open_Callback_1_(unwrap_jso(this), name);
|
| }
|
|
|
| @DomName('IDBFactory.webkitGetDatabaseNames')
|
| @@ -492,8 +545,8 @@ class IdbFactory extends NativeFieldWrapperClass2 {
|
| @SupportedBrowser(SupportedBrowser.CHROME)
|
| @SupportedBrowser(SupportedBrowser.SAFARI)
|
| @Experimental()
|
| - Request _webkitGetDatabaseNames() => _blink.BlinkIDBFactory.instance.webkitGetDatabaseNames_Callback_0_(this);
|
| -
|
| + Request _webkitGetDatabaseNames() => wrap_jso(_blink.BlinkIDBFactory.instance.webkitGetDatabaseNames_Callback_0_(unwrap_jso(this)));
|
| +
|
| }
|
|
|
|
|
| @@ -610,50 +663,64 @@ class Index extends NativeFieldWrapperClass2 {
|
| // To suppress missing implicit constructor warnings.
|
| factory Index._() { throw new UnsupportedError("Not supported"); }
|
|
|
| + static Index internalCreateIndex() {
|
| + return new Index._internalWrap();
|
| + }
|
| +
|
| + JsObject blink_jsObject = null;
|
| +
|
| + factory Index._internalWrap() {
|
| + return new Index._internal();
|
| + }
|
| +
|
| + Index._internal() { }
|
| +
|
| + bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(this, other);
|
| +
|
| @DomName('IDBIndex.keyPath')
|
| @DocsEditable()
|
| - Object get keyPath => _blink.BlinkIDBIndex.instance.keyPath_Getter_(this);
|
| -
|
| + Object get keyPath => _blink.BlinkIDBIndex.instance.keyPath_Getter_(unwrap_jso(this));
|
| +
|
| @DomName('IDBIndex.multiEntry')
|
| @DocsEditable()
|
| - bool get multiEntry => _blink.BlinkIDBIndex.instance.multiEntry_Getter_(this);
|
| -
|
| + bool get multiEntry => _blink.BlinkIDBIndex.instance.multiEntry_Getter_(unwrap_jso(this));
|
| +
|
| @DomName('IDBIndex.name')
|
| @DocsEditable()
|
| - String get name => _blink.BlinkIDBIndex.instance.name_Getter_(this);
|
| -
|
| + String get name => _blink.BlinkIDBIndex.instance.name_Getter_(unwrap_jso(this));
|
| +
|
| @DomName('IDBIndex.objectStore')
|
| @DocsEditable()
|
| - ObjectStore get objectStore => _blink.BlinkIDBIndex.instance.objectStore_Getter_(this);
|
| -
|
| + ObjectStore get objectStore => wrap_jso(_blink.BlinkIDBIndex.instance.objectStore_Getter_(unwrap_jso(this)));
|
| +
|
| @DomName('IDBIndex.unique')
|
| @DocsEditable()
|
| - bool get unique => _blink.BlinkIDBIndex.instance.unique_Getter_(this);
|
| -
|
| + bool get unique => _blink.BlinkIDBIndex.instance.unique_Getter_(unwrap_jso(this));
|
| +
|
| @DomName('IDBIndex.count')
|
| @DocsEditable()
|
| - Request _count(Object key) => _blink.BlinkIDBIndex.instance.count_Callback_1_(this, key);
|
| -
|
| + Request _count(Object key) => wrap_jso(_blink.BlinkIDBIndex.instance.count_Callback_1_(unwrap_jso(this), key));
|
| +
|
| @DomName('IDBIndex.get')
|
| @DocsEditable()
|
| - Request _get(Object key) => _blink.BlinkIDBIndex.instance.get_Callback_1_(this, key);
|
| -
|
| + Request _get(Object key) => wrap_jso(_blink.BlinkIDBIndex.instance.get_Callback_1_(unwrap_jso(this), key));
|
| +
|
| @DomName('IDBIndex.getKey')
|
| @DocsEditable()
|
| - Request _getKey(Object key) => _blink.BlinkIDBIndex.instance.getKey_Callback_1_(this, key);
|
| -
|
| + Request _getKey(Object key) => wrap_jso(_blink.BlinkIDBIndex.instance.getKey_Callback_1_(unwrap_jso(this), key));
|
| +
|
| Request _openCursor(Object range, [String direction]) {
|
| if (direction != null) {
|
| - return _blink.BlinkIDBIndex.instance.openCursor_Callback_2_(this, range, direction);
|
| + return wrap_jso(_blink.BlinkIDBIndex.instance.openCursor_Callback_2_(unwrap_jso(this), range, direction));
|
| }
|
| - return _blink.BlinkIDBIndex.instance.openCursor_Callback_1_(this, range);
|
| + return wrap_jso(_blink.BlinkIDBIndex.instance.openCursor_Callback_1_(unwrap_jso(this), range));
|
| }
|
|
|
| Request _openKeyCursor(Object range, [String direction]) {
|
| if (direction != null) {
|
| - return _blink.BlinkIDBIndex.instance.openKeyCursor_Callback_2_(this, range, direction);
|
| + return wrap_jso(_blink.BlinkIDBIndex.instance.openKeyCursor_Callback_2_(unwrap_jso(this), range, direction));
|
| }
|
| - return _blink.BlinkIDBIndex.instance.openKeyCursor_Callback_1_(this, range);
|
| + return wrap_jso(_blink.BlinkIDBIndex.instance.openKeyCursor_Callback_1_(unwrap_jso(this), range));
|
| }
|
|
|
| }
|
| @@ -686,22 +753,36 @@ class KeyRange extends NativeFieldWrapperClass2 {
|
| // To suppress missing implicit constructor warnings.
|
| factory KeyRange._() { throw new UnsupportedError("Not supported"); }
|
|
|
| + static KeyRange internalCreateKeyRange() {
|
| + return new KeyRange._internalWrap();
|
| + }
|
| +
|
| + JsObject blink_jsObject = null;
|
| +
|
| + factory KeyRange._internalWrap() {
|
| + return new KeyRange._internal();
|
| + }
|
| +
|
| + KeyRange._internal() { }
|
| +
|
| + bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(this, other);
|
| +
|
| @DomName('IDBKeyRange.lower')
|
| @DocsEditable()
|
| - Object get lower => _blink.BlinkIDBKeyRange.instance.lower_Getter_(this);
|
| -
|
| + Object get lower => _blink.BlinkIDBKeyRange.instance.lower_Getter_(unwrap_jso(this));
|
| +
|
| @DomName('IDBKeyRange.lowerOpen')
|
| @DocsEditable()
|
| - bool get lowerOpen => _blink.BlinkIDBKeyRange.instance.lowerOpen_Getter_(this);
|
| -
|
| + bool get lowerOpen => _blink.BlinkIDBKeyRange.instance.lowerOpen_Getter_(unwrap_jso(this));
|
| +
|
| @DomName('IDBKeyRange.upper')
|
| @DocsEditable()
|
| - Object get upper => _blink.BlinkIDBKeyRange.instance.upper_Getter_(this);
|
| -
|
| + Object get upper => _blink.BlinkIDBKeyRange.instance.upper_Getter_(unwrap_jso(this));
|
| +
|
| @DomName('IDBKeyRange.upperOpen')
|
| @DocsEditable()
|
| - bool get upperOpen => _blink.BlinkIDBKeyRange.instance.upperOpen_Getter_(this);
|
| -
|
| + bool get upperOpen => _blink.BlinkIDBKeyRange.instance.upperOpen_Getter_(unwrap_jso(this));
|
| +
|
| static KeyRange bound_(Object lower, Object upper, [bool lowerOpen, bool upperOpen]) {
|
| if (upperOpen != null) {
|
| return _blink.BlinkIDBKeyRange.instance.bound_Callback_4_(lower, upper, lowerOpen, upperOpen);
|
| @@ -723,7 +804,7 @@ class KeyRange extends NativeFieldWrapperClass2 {
|
| @DocsEditable()
|
| @Experimental() // non-standard
|
| static KeyRange only_(Object value) => _blink.BlinkIDBKeyRange.instance.only_Callback_1_(value);
|
| -
|
| +
|
| static KeyRange upperBound_(Object bound, [bool open]) {
|
| if (open != null) {
|
| return _blink.BlinkIDBKeyRange.instance.upperBound_Callback_2_(bound, open);
|
| @@ -870,92 +951,106 @@ class ObjectStore extends NativeFieldWrapperClass2 {
|
| // To suppress missing implicit constructor warnings.
|
| factory ObjectStore._() { throw new UnsupportedError("Not supported"); }
|
|
|
| + static ObjectStore internalCreateObjectStore() {
|
| + return new ObjectStore._internalWrap();
|
| + }
|
| +
|
| + JsObject blink_jsObject = null;
|
| +
|
| + factory ObjectStore._internalWrap() {
|
| + return new ObjectStore._internal();
|
| + }
|
| +
|
| + ObjectStore._internal() { }
|
| +
|
| + bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(this, other);
|
| +
|
| @DomName('IDBObjectStore.autoIncrement')
|
| @DocsEditable()
|
| - bool get autoIncrement => _blink.BlinkIDBObjectStore.instance.autoIncrement_Getter_(this);
|
| -
|
| + bool get autoIncrement => _blink.BlinkIDBObjectStore.instance.autoIncrement_Getter_(unwrap_jso(this));
|
| +
|
| @DomName('IDBObjectStore.indexNames')
|
| @DocsEditable()
|
| - List<String> get indexNames => _blink.BlinkIDBObjectStore.instance.indexNames_Getter_(this);
|
| -
|
| + List<String> get indexNames => _blink.BlinkIDBObjectStore.instance.indexNames_Getter_(unwrap_jso(this));
|
| +
|
| @DomName('IDBObjectStore.keyPath')
|
| @DocsEditable()
|
| - Object get keyPath => _blink.BlinkIDBObjectStore.instance.keyPath_Getter_(this);
|
| -
|
| + Object get keyPath => _blink.BlinkIDBObjectStore.instance.keyPath_Getter_(unwrap_jso(this));
|
| +
|
| @DomName('IDBObjectStore.name')
|
| @DocsEditable()
|
| - String get name => _blink.BlinkIDBObjectStore.instance.name_Getter_(this);
|
| -
|
| + String get name => _blink.BlinkIDBObjectStore.instance.name_Getter_(unwrap_jso(this));
|
| +
|
| @DomName('IDBObjectStore.transaction')
|
| @DocsEditable()
|
| - Transaction get transaction => _blink.BlinkIDBObjectStore.instance.transaction_Getter_(this);
|
| -
|
| + Transaction get transaction => wrap_jso(_blink.BlinkIDBObjectStore.instance.transaction_Getter_(unwrap_jso(this)));
|
| +
|
| Request _add(Object value, [Object key]) {
|
| if (key != null) {
|
| - return _blink.BlinkIDBObjectStore.instance.add_Callback_2_(this, value, key);
|
| + return wrap_jso(_blink.BlinkIDBObjectStore.instance.add_Callback_2_(unwrap_jso(this), value, key));
|
| }
|
| - return _blink.BlinkIDBObjectStore.instance.add_Callback_1_(this, value);
|
| + return wrap_jso(_blink.BlinkIDBObjectStore.instance.add_Callback_1_(unwrap_jso(this), value));
|
| }
|
|
|
| @DomName('IDBObjectStore.clear')
|
| @DocsEditable()
|
| - Request _clear() => _blink.BlinkIDBObjectStore.instance.clear_Callback_0_(this);
|
| -
|
| + Request _clear() => wrap_jso(_blink.BlinkIDBObjectStore.instance.clear_Callback_0_(unwrap_jso(this)));
|
| +
|
| @DomName('IDBObjectStore.count')
|
| @DocsEditable()
|
| - Request _count(Object key) => _blink.BlinkIDBObjectStore.instance.count_Callback_1_(this, key);
|
| -
|
| + 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 _blink.BlinkIDBObjectStore.instance.createIndex_Callback_2_(this, name, keyPath);
|
| + return _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 _blink.BlinkIDBObjectStore.instance.createIndex_Callback_3_(this, name, keyPath, options);
|
| + return _blink.BlinkIDBObjectStore.instance.createIndex_Callback_3_(unwrap_jso(this), name, unwrap_jso(keyPath), options != null ? new js.JsObject.jsify(options) : options);
|
| }
|
| if ((keyPath is List<String> || keyPath == null) && (name is String || name == null) && options == null) {
|
| - return _blink.BlinkIDBObjectStore.instance.createIndex_Callback_2_(this, name, keyPath);
|
| + return _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 _blink.BlinkIDBObjectStore.instance.createIndex_Callback_3_(this, name, keyPath, options);
|
| + return _blink.BlinkIDBObjectStore.instance.createIndex_Callback_3_(unwrap_jso(this), name, unwrap_jso(keyPath), options != null ? new js.JsObject.jsify(options) : options);
|
| }
|
| throw new ArgumentError("Incorrect number or type of arguments");
|
| }
|
|
|
| @DomName('IDBObjectStore.delete')
|
| @DocsEditable()
|
| - Request _delete(Object key) => _blink.BlinkIDBObjectStore.instance.delete_Callback_1_(this, key);
|
| -
|
| + Request _delete(Object key) => wrap_jso(_blink.BlinkIDBObjectStore.instance.delete_Callback_1_(unwrap_jso(this), key));
|
| +
|
| @DomName('IDBObjectStore.deleteIndex')
|
| @DocsEditable()
|
| - void deleteIndex(String name) => _blink.BlinkIDBObjectStore.instance.deleteIndex_Callback_1_(this, name);
|
| -
|
| + void deleteIndex(String name) => _blink.BlinkIDBObjectStore.instance.deleteIndex_Callback_1_(unwrap_jso(this), name);
|
| +
|
| @DomName('IDBObjectStore.get')
|
| @DocsEditable()
|
| - Request _get(Object key) => _blink.BlinkIDBObjectStore.instance.get_Callback_1_(this, key);
|
| -
|
| + Request _get(Object key) => wrap_jso(_blink.BlinkIDBObjectStore.instance.get_Callback_1_(unwrap_jso(this), key));
|
| +
|
| @DomName('IDBObjectStore.index')
|
| @DocsEditable()
|
| - Index index(String name) => _blink.BlinkIDBObjectStore.instance.index_Callback_1_(this, name);
|
| -
|
| + Index index(String name) => _blink.BlinkIDBObjectStore.instance.index_Callback_1_(unwrap_jso(this), name);
|
| +
|
| Request _openCursor(Object range, [String direction]) {
|
| if (direction != null) {
|
| - return _blink.BlinkIDBObjectStore.instance.openCursor_Callback_2_(this, range, direction);
|
| + return wrap_jso(_blink.BlinkIDBObjectStore.instance.openCursor_Callback_2_(unwrap_jso(this), range, direction));
|
| }
|
| - return _blink.BlinkIDBObjectStore.instance.openCursor_Callback_1_(this, range);
|
| + return wrap_jso(_blink.BlinkIDBObjectStore.instance.openCursor_Callback_1_(unwrap_jso(this), range));
|
| }
|
|
|
| Request openKeyCursor(Object range, [String direction]) {
|
| if (direction != null) {
|
| - return _blink.BlinkIDBObjectStore.instance.openKeyCursor_Callback_2_(this, range, direction);
|
| + return wrap_jso(_blink.BlinkIDBObjectStore.instance.openKeyCursor_Callback_2_(unwrap_jso(this), range, direction));
|
| }
|
| - return _blink.BlinkIDBObjectStore.instance.openKeyCursor_Callback_1_(this, range);
|
| + return wrap_jso(_blink.BlinkIDBObjectStore.instance.openKeyCursor_Callback_1_(unwrap_jso(this), range));
|
| }
|
|
|
| Request _put(Object value, [Object key]) {
|
| if (key != null) {
|
| - return _blink.BlinkIDBObjectStore.instance.put_Callback_2_(this, value, key);
|
| + return wrap_jso(_blink.BlinkIDBObjectStore.instance.put_Callback_2_(unwrap_jso(this), value, key));
|
| }
|
| - return _blink.BlinkIDBObjectStore.instance.put_Callback_1_(this, value);
|
| + return wrap_jso(_blink.BlinkIDBObjectStore.instance.put_Callback_1_(unwrap_jso(this), value));
|
| }
|
|
|
|
|
| @@ -1020,6 +1115,18 @@ class OpenDBRequest extends Request {
|
| @DocsEditable()
|
| static const EventStreamProvider<VersionChangeEvent> upgradeNeededEvent = const EventStreamProvider<VersionChangeEvent>('upgradeneeded');
|
|
|
| +
|
| + static OpenDBRequest internalCreateOpenDBRequest() {
|
| + return new OpenDBRequest._internalWrap();
|
| + }
|
| +
|
| + factory OpenDBRequest._internalWrap() {
|
| + return new OpenDBRequest._internal();
|
| + }
|
| +
|
| + OpenDBRequest._internal() : super._internal();
|
| +
|
| +
|
| /// Stream of `blocked` events handled by this [OpenDBRequest].
|
| @DomName('IDBOpenDBRequest.onblocked')
|
| @DocsEditable()
|
| @@ -1065,26 +1172,38 @@ class Request extends EventTarget {
|
| @DocsEditable()
|
| static const EventStreamProvider<Event> successEvent = const EventStreamProvider<Event>('success');
|
|
|
| +
|
| + static Request internalCreateRequest() {
|
| + return new Request._internalWrap();
|
| + }
|
| +
|
| + factory Request._internalWrap() {
|
| + return new Request._internal();
|
| + }
|
| +
|
| + Request._internal() : super._internal();
|
| +
|
| +
|
| @DomName('IDBRequest.error')
|
| @DocsEditable()
|
| - DomError get error => _blink.BlinkIDBRequest.instance.error_Getter_(this);
|
| -
|
| + DomError get error => wrap_jso(_blink.BlinkIDBRequest.instance.error_Getter_(unwrap_jso(this)));
|
| +
|
| @DomName('IDBRequest.readyState')
|
| @DocsEditable()
|
| - String get readyState => _blink.BlinkIDBRequest.instance.readyState_Getter_(this);
|
| -
|
| + String get readyState => _blink.BlinkIDBRequest.instance.readyState_Getter_(unwrap_jso(this));
|
| +
|
| @DomName('IDBRequest.result')
|
| @DocsEditable()
|
| - Object get result => _blink.BlinkIDBRequest.instance.result_Getter_(this);
|
| -
|
| + Object get result => _blink.BlinkIDBRequest.instance.result_Getter_(unwrap_jso(this));
|
| +
|
| @DomName('IDBRequest.source')
|
| @DocsEditable()
|
| - Object get source => _blink.BlinkIDBRequest.instance.source_Getter_(this);
|
| -
|
| + Object get source => _blink.BlinkIDBRequest.instance.source_Getter_(unwrap_jso(this));
|
| +
|
| @DomName('IDBRequest.transaction')
|
| @DocsEditable()
|
| - Transaction get transaction => _blink.BlinkIDBRequest.instance.transaction_Getter_(this);
|
| -
|
| + Transaction get transaction => wrap_jso(_blink.BlinkIDBRequest.instance.transaction_Getter_(unwrap_jso(this)));
|
| +
|
| /// Stream of `error` events handled by this [Request].
|
| @DomName('IDBRequest.onerror')
|
| @DocsEditable()
|
| @@ -1166,26 +1285,38 @@ class Transaction extends EventTarget {
|
| @DocsEditable()
|
| static const EventStreamProvider<Event> errorEvent = const EventStreamProvider<Event>('error');
|
|
|
| +
|
| + static Transaction internalCreateTransaction() {
|
| + return new Transaction._internalWrap();
|
| + }
|
| +
|
| + factory Transaction._internalWrap() {
|
| + return new Transaction._internal();
|
| + }
|
| +
|
| + Transaction._internal() : super._internal();
|
| +
|
| +
|
| @DomName('IDBTransaction.db')
|
| @DocsEditable()
|
| - Database get db => _blink.BlinkIDBTransaction.instance.db_Getter_(this);
|
| -
|
| + Database get db => wrap_jso(_blink.BlinkIDBTransaction.instance.db_Getter_(unwrap_jso(this)));
|
| +
|
| @DomName('IDBTransaction.error')
|
| @DocsEditable()
|
| - DomError get error => _blink.BlinkIDBTransaction.instance.error_Getter_(this);
|
| -
|
| + DomError get error => wrap_jso(_blink.BlinkIDBTransaction.instance.error_Getter_(unwrap_jso(this)));
|
| +
|
| @DomName('IDBTransaction.mode')
|
| @DocsEditable()
|
| - String get mode => _blink.BlinkIDBTransaction.instance.mode_Getter_(this);
|
| -
|
| + String get mode => _blink.BlinkIDBTransaction.instance.mode_Getter_(unwrap_jso(this));
|
| +
|
| @DomName('IDBTransaction.abort')
|
| @DocsEditable()
|
| - void abort() => _blink.BlinkIDBTransaction.instance.abort_Callback_0_(this);
|
| -
|
| + void abort() => _blink.BlinkIDBTransaction.instance.abort_Callback_0_(unwrap_jso(this));
|
| +
|
| @DomName('IDBTransaction.objectStore')
|
| @DocsEditable()
|
| - ObjectStore objectStore(String name) => _blink.BlinkIDBTransaction.instance.objectStore_Callback_1_(this, name);
|
| -
|
| + ObjectStore objectStore(String name) => _blink.BlinkIDBTransaction.instance.objectStore_Callback_1_(unwrap_jso(this), name);
|
| +
|
| /// Stream of `abort` events handled by this [Transaction].
|
| @DomName('IDBTransaction.onabort')
|
| @DocsEditable()
|
| @@ -1216,22 +1347,34 @@ class VersionChangeEvent extends Event {
|
| // To suppress missing implicit constructor warnings.
|
| factory VersionChangeEvent._() { throw new UnsupportedError("Not supported"); }
|
|
|
| +
|
| + static VersionChangeEvent internalCreateVersionChangeEvent() {
|
| + return new VersionChangeEvent._internalWrap();
|
| + }
|
| +
|
| + factory VersionChangeEvent._internalWrap() {
|
| + return new VersionChangeEvent._internal();
|
| + }
|
| +
|
| + VersionChangeEvent._internal() : super._internal();
|
| +
|
| +
|
| @DomName('IDBVersionChangeEvent.dataLoss')
|
| @DocsEditable()
|
| @Experimental() // untriaged
|
| - String get dataLoss => _blink.BlinkIDBVersionChangeEvent.instance.dataLoss_Getter_(this);
|
| -
|
| + String get dataLoss => _blink.BlinkIDBVersionChangeEvent.instance.dataLoss_Getter_(unwrap_jso(this));
|
| +
|
| @DomName('IDBVersionChangeEvent.dataLossMessage')
|
| @DocsEditable()
|
| @Experimental() // untriaged
|
| - String get dataLossMessage => _blink.BlinkIDBVersionChangeEvent.instance.dataLossMessage_Getter_(this);
|
| -
|
| + String get dataLossMessage => _blink.BlinkIDBVersionChangeEvent.instance.dataLossMessage_Getter_(unwrap_jso(this));
|
| +
|
| @DomName('IDBVersionChangeEvent.newVersion')
|
| @DocsEditable()
|
| - int get newVersion => _blink.BlinkIDBVersionChangeEvent.instance.newVersion_Getter_(this);
|
| -
|
| + int get newVersion => _blink.BlinkIDBVersionChangeEvent.instance.newVersion_Getter_(unwrap_jso(this));
|
| +
|
| @DomName('IDBVersionChangeEvent.oldVersion')
|
| @DocsEditable()
|
| - int get oldVersion => _blink.BlinkIDBVersionChangeEvent.instance.oldVersion_Getter_(this);
|
| -
|
| + int get oldVersion => _blink.BlinkIDBVersionChangeEvent.instance.oldVersion_Getter_(unwrap_jso(this));
|
| +
|
| }
|
|
|