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 6987096028fbbc5b88c5abe0e2b7d374d9eeb192..eb045b09294b4171ce9f37b617cb83d893c53c8c 100644 |
--- a/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart |
+++ b/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart |
@@ -62,7 +62,7 @@ |
* and where both the keys and the values are strings. |
* |
* * [dart:web_sql]—a database that can be queried with SQL. |
- * |
+ * |
* For a tutorial about using the indexed_db library with Dart, |
* check out |
* [Use IndexedDB](http://www.dartlang.org/docs/tutorials/indexeddb/). |
@@ -77,7 +77,6 @@ import 'dart:html'; |
import 'dart:html_common'; |
import 'dart:nativewrappers'; |
import 'dart:_blink' as _blink; |
-import 'dart:js' as js; |
// 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 |
// BSD-style license that can be found in the LICENSE file. |
@@ -123,21 +122,6 @@ final indexed_dbBlinkMap = { |
}; |
-// FIXME: Can we make this private? |
-final indexed_dbBlinkFunctionMap = { |
- 'IDBCursor': () => Cursor.internalCreateCursor, |
- 'IDBCursorWithValue': () => CursorWithValue.internalCreateCursorWithValue, |
- 'IDBDatabase': () => Database.internalCreateDatabase, |
- 'IDBFactory': () => IdbFactory.internalCreateIdbFactory, |
- 'IDBIndex': () => Index.internalCreateIndex, |
- 'IDBKeyRange': () => KeyRange.internalCreateKeyRange, |
- 'IDBObjectStore': () => ObjectStore.internalCreateObjectStore, |
- 'IDBOpenDBRequest': () => OpenDBRequest.internalCreateOpenDBRequest, |
- 'IDBRequest': () => Request.internalCreateRequest, |
- 'IDBTransaction': () => Transaction.internalCreateTransaction, |
- 'IDBVersionChangeEvent': () => VersionChangeEvent.internalCreateVersionChangeEvent, |
- |
-}; |
// 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. |
@@ -167,36 +151,21 @@ class Cursor extends NativeFieldWrapperClass2 { |
// To suppress missing implicit constructor warnings. |
factory Cursor._() { throw new UnsupportedError("Not supported"); } |
- static Cursor internalCreateCursor() { |
- return new Cursor._internalWrap(); |
- } |
- |
- js.JsObject blink_jsObject; |
- |
- factory Cursor._internalWrap() { |
- return new Cursor.internal_(); |
- } |
- |
- Cursor.internal_() { } |
- |
- bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(this, other); |
- int get hashCode => unwrap_jso(this).hashCode; |
- |
@DomName('IDBCursor.direction') |
@DocsEditable() |
String get direction => _blink.BlinkIDBCursor.instance.direction_Getter_(unwrap_jso(this)); |
@DomName('IDBCursor.key') |
@DocsEditable() |
- Object get key => wrap_jso(_blink.BlinkIDBCursor.instance.key_Getter_(unwrap_jso(this))); |
+ Object get key => _blink.BlinkIDBCursor.instance.key_Getter_(unwrap_jso(this)); |
@DomName('IDBCursor.primaryKey') |
@DocsEditable() |
- Object get primaryKey => wrap_jso(_blink.BlinkIDBCursor.instance.primaryKey_Getter_(unwrap_jso(this))); |
+ Object get primaryKey => _blink.BlinkIDBCursor.instance.primaryKey_Getter_(unwrap_jso(this)); |
@DomName('IDBCursor.source') |
@DocsEditable() |
- Object get source => wrap_jso(_blink.BlinkIDBCursor.instance.source_Getter_(unwrap_jso(this))); |
+ Object get source => _blink.BlinkIDBCursor.instance.source_Getter_(unwrap_jso(this)); |
@DomName('IDBCursor.advance') |
@DocsEditable() |
@@ -239,21 +208,9 @@ 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 => wrap_jso(_blink.BlinkIDBCursorWithValue.instance.value_Getter_(unwrap_jso(this))); |
+ Object get value => _blink.BlinkIDBCursorWithValue.instance.value_Getter_(unwrap_jso(this)); |
} |
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
@@ -334,18 +291,6 @@ 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_(unwrap_jso(this)); |
@@ -356,7 +301,7 @@ class Database extends EventTarget { |
@DomName('IDBDatabase.version') |
@DocsEditable() |
- Object get version => wrap_jso(_blink.BlinkIDBDatabase.instance.version_Getter_(unwrap_jso(this))); |
+ Object get version => _blink.BlinkIDBDatabase.instance.version_Getter_(unwrap_jso(this)); |
@DomName('IDBDatabase.close') |
@DocsEditable() |
@@ -364,9 +309,9 @@ class Database extends EventTarget { |
ObjectStore _createObjectStore(String name, [Map options]) { |
if (options != null) { |
- return wrap_jso(_blink.BlinkIDBDatabase.instance.createObjectStore_Callback_2_(unwrap_jso(this), name, options != null ? new js.JsObject.jsify(options) : options)); |
+ return _blink.BlinkIDBDatabase.instance.createObjectStore_Callback_2_(unwrap_jso(this), name, options); |
} |
- return wrap_jso(_blink.BlinkIDBDatabase.instance.createObjectStore_Callback_1_(unwrap_jso(this), name)); |
+ return _blink.BlinkIDBDatabase.instance.createObjectStore_Callback_1_(unwrap_jso(this), name); |
} |
@DomName('IDBDatabase.deleteObjectStore') |
@@ -375,45 +320,45 @@ class Database extends EventTarget { |
Transaction transaction(storeName_OR_storeNames, [String mode]) { |
if ((storeName_OR_storeNames is String || storeName_OR_storeNames == null) && mode == null) { |
- return wrap_jso(_blink.BlinkIDBDatabase.instance.transaction_Callback_1_(unwrap_jso(this), unwrap_jso(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 wrap_jso(_blink.BlinkIDBDatabase.instance.transaction_Callback_2_(unwrap_jso(this), unwrap_jso(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 wrap_jso(_blink.BlinkIDBDatabase.instance.transaction_Callback_1_(unwrap_jso(this), unwrap_jso(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 wrap_jso(_blink.BlinkIDBDatabase.instance.transaction_Callback_2_(unwrap_jso(this), unwrap_jso(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 wrap_jso(_blink.BlinkIDBDatabase.instance.transaction_Callback_1_(unwrap_jso(this), unwrap_jso(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 wrap_jso(_blink.BlinkIDBDatabase.instance.transaction_Callback_2_(unwrap_jso(this), unwrap_jso(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 wrap_jso(_blink.BlinkIDBDatabase.instance.transaction_Callback_2_(unwrap_jso(this), storeNames, mode)); |
+ return _blink.BlinkIDBDatabase.instance.transaction_Callback_2_(unwrap_jso(this), storeNames, mode); |
} |
- return wrap_jso(_blink.BlinkIDBDatabase.instance.transaction_Callback_1_(unwrap_jso(this), storeNames)); |
+ return _blink.BlinkIDBDatabase.instance.transaction_Callback_1_(unwrap_jso(this), storeNames); |
} |
Transaction transactionStore(String storeName, [String mode]) { |
if (mode != null) { |
- return wrap_jso(_blink.BlinkIDBDatabase.instance.transaction_Callback_2_(unwrap_jso(this), storeName, mode)); |
+ return _blink.BlinkIDBDatabase.instance.transaction_Callback_2_(unwrap_jso(this), storeName, mode); |
} |
- return wrap_jso(_blink.BlinkIDBDatabase.instance.transaction_Callback_1_(unwrap_jso(this), storeName)); |
+ return _blink.BlinkIDBDatabase.instance.transaction_Callback_1_(unwrap_jso(this), storeName); |
} |
Transaction transactionStores(List<String> storeNames, [String mode]) { |
if (mode != null) { |
- return wrap_jso(_blink.BlinkIDBDatabase.instance.transaction_Callback_2_(unwrap_jso(this), unwrap_jso(storeNames), mode)); |
+ return _blink.BlinkIDBDatabase.instance.transaction_Callback_2_(unwrap_jso(this), unwrap_jso(storeNames), mode); |
} |
- return wrap_jso(_blink.BlinkIDBDatabase.instance.transaction_Callback_1_(unwrap_jso(this), unwrap_jso(storeNames))); |
+ return _blink.BlinkIDBDatabase.instance.transaction_Callback_1_(unwrap_jso(this), unwrap_jso(storeNames)); |
} |
/// Stream of `abort` events handled by this [Database]. |
@@ -528,34 +473,19 @@ class IdbFactory extends NativeFieldWrapperClass2 { |
// To suppress missing implicit constructor warnings. |
factory IdbFactory._() { throw new UnsupportedError("Not supported"); } |
- static IdbFactory internalCreateIdbFactory() { |
- return new IdbFactory._internalWrap(); |
- } |
- |
- js.JsObject blink_jsObject; |
- |
- factory IdbFactory._internalWrap() { |
- return new IdbFactory.internal_(); |
- } |
- |
- IdbFactory.internal_() { } |
- |
- bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(this, other); |
- int get hashCode => unwrap_jso(this).hashCode; |
- |
@DomName('IDBFactory.cmp') |
@DocsEditable() |
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) => wrap_jso(_blink.BlinkIDBFactory.instance.deleteDatabase_Callback_1_(unwrap_jso(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 wrap_jso(_blink.BlinkIDBFactory.instance.open_Callback_2_(unwrap_jso(this), name, version)); |
+ return _blink.BlinkIDBFactory.instance.open_Callback_2_(unwrap_jso(this), name, version); |
} |
- return wrap_jso(_blink.BlinkIDBFactory.instance.open_Callback_1_(unwrap_jso(this), name)); |
+ return _blink.BlinkIDBFactory.instance.open_Callback_1_(unwrap_jso(this), name); |
} |
@DomName('IDBFactory.webkitGetDatabaseNames') |
@@ -681,24 +611,9 @@ class Index extends NativeFieldWrapperClass2 { |
// To suppress missing implicit constructor warnings. |
factory Index._() { throw new UnsupportedError("Not supported"); } |
- static Index internalCreateIndex() { |
- return new Index._internalWrap(); |
- } |
- |
- js.JsObject blink_jsObject; |
- |
- factory Index._internalWrap() { |
- return new Index.internal_(); |
- } |
- |
- Index.internal_() { } |
- |
- bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(this, other); |
- int get hashCode => unwrap_jso(this).hashCode; |
- |
@DomName('IDBIndex.keyPath') |
@DocsEditable() |
- Object get keyPath => wrap_jso(_blink.BlinkIDBIndex.instance.keyPath_Getter_(unwrap_jso(this))); |
+ Object get keyPath => _blink.BlinkIDBIndex.instance.keyPath_Getter_(unwrap_jso(this)); |
@DomName('IDBIndex.multiEntry') |
@DocsEditable() |
@@ -772,24 +687,9 @@ class KeyRange extends NativeFieldWrapperClass2 { |
// To suppress missing implicit constructor warnings. |
factory KeyRange._() { throw new UnsupportedError("Not supported"); } |
- static KeyRange internalCreateKeyRange() { |
- return new KeyRange._internalWrap(); |
- } |
- |
- js.JsObject blink_jsObject; |
- |
- factory KeyRange._internalWrap() { |
- return new KeyRange.internal_(); |
- } |
- |
- KeyRange.internal_() { } |
- |
- bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(this, other); |
- int get hashCode => unwrap_jso(this).hashCode; |
- |
@DomName('IDBKeyRange.lower') |
@DocsEditable() |
- Object get lower => wrap_jso(_blink.BlinkIDBKeyRange.instance.lower_Getter_(unwrap_jso(this))); |
+ Object get lower => _blink.BlinkIDBKeyRange.instance.lower_Getter_(unwrap_jso(this)); |
@DomName('IDBKeyRange.lowerOpen') |
@DocsEditable() |
@@ -797,7 +697,7 @@ class KeyRange extends NativeFieldWrapperClass2 { |
@DomName('IDBKeyRange.upper') |
@DocsEditable() |
- Object get upper => wrap_jso(_blink.BlinkIDBKeyRange.instance.upper_Getter_(unwrap_jso(this))); |
+ Object get upper => _blink.BlinkIDBKeyRange.instance.upper_Getter_(unwrap_jso(this)); |
@DomName('IDBKeyRange.upperOpen') |
@DocsEditable() |
@@ -805,31 +705,31 @@ class KeyRange extends NativeFieldWrapperClass2 { |
static KeyRange bound_(Object lower, Object upper, [bool lowerOpen, bool upperOpen]) { |
if (upperOpen != null) { |
- return wrap_jso(_blink.BlinkIDBKeyRange.instance.bound_Callback_4_(lower, upper, lowerOpen, upperOpen)); |
+ return _blink.BlinkIDBKeyRange.instance.bound_Callback_4_(lower, upper, lowerOpen, upperOpen); |
} |
if (lowerOpen != null) { |
- return wrap_jso(_blink.BlinkIDBKeyRange.instance.bound_Callback_3_(lower, upper, lowerOpen)); |
+ return _blink.BlinkIDBKeyRange.instance.bound_Callback_3_(lower, upper, lowerOpen); |
} |
- return wrap_jso(_blink.BlinkIDBKeyRange.instance.bound_Callback_2_(lower, upper)); |
+ return _blink.BlinkIDBKeyRange.instance.bound_Callback_2_(lower, upper); |
} |
static KeyRange lowerBound_(Object bound, [bool open]) { |
if (open != null) { |
- return wrap_jso(_blink.BlinkIDBKeyRange.instance.lowerBound_Callback_2_(bound, open)); |
+ return _blink.BlinkIDBKeyRange.instance.lowerBound_Callback_2_(bound, open); |
} |
- return wrap_jso(_blink.BlinkIDBKeyRange.instance.lowerBound_Callback_1_(bound)); |
+ return _blink.BlinkIDBKeyRange.instance.lowerBound_Callback_1_(bound); |
} |
@DomName('IDBKeyRange.only_') |
@DocsEditable() |
@Experimental() // non-standard |
- static KeyRange only_(Object value) => wrap_jso(_blink.BlinkIDBKeyRange.instance.only_Callback_1_(value)); |
+ static KeyRange only_(Object value) => _blink.BlinkIDBKeyRange.instance.only_Callback_1_(value); |
static KeyRange upperBound_(Object bound, [bool open]) { |
if (open != null) { |
- return wrap_jso(_blink.BlinkIDBKeyRange.instance.upperBound_Callback_2_(bound, open)); |
+ return _blink.BlinkIDBKeyRange.instance.upperBound_Callback_2_(bound, open); |
} |
- return wrap_jso(_blink.BlinkIDBKeyRange.instance.upperBound_Callback_1_(bound)); |
+ return _blink.BlinkIDBKeyRange.instance.upperBound_Callback_1_(bound); |
} |
} |
@@ -971,21 +871,6 @@ class ObjectStore extends NativeFieldWrapperClass2 { |
// To suppress missing implicit constructor warnings. |
factory ObjectStore._() { throw new UnsupportedError("Not supported"); } |
- static ObjectStore internalCreateObjectStore() { |
- return new ObjectStore._internalWrap(); |
- } |
- |
- js.JsObject blink_jsObject; |
- |
- factory ObjectStore._internalWrap() { |
- return new ObjectStore.internal_(); |
- } |
- |
- ObjectStore.internal_() { } |
- |
- bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(this, other); |
- int get hashCode => unwrap_jso(this).hashCode; |
- |
@DomName('IDBObjectStore.autoIncrement') |
@DocsEditable() |
bool get autoIncrement => _blink.BlinkIDBObjectStore.instance.autoIncrement_Getter_(unwrap_jso(this)); |
@@ -996,7 +881,7 @@ class ObjectStore extends NativeFieldWrapperClass2 { |
@DomName('IDBObjectStore.keyPath') |
@DocsEditable() |
- Object get keyPath => wrap_jso(_blink.BlinkIDBObjectStore.instance.keyPath_Getter_(unwrap_jso(this))); |
+ Object get keyPath => _blink.BlinkIDBObjectStore.instance.keyPath_Getter_(unwrap_jso(this)); |
@DomName('IDBObjectStore.name') |
@DocsEditable() |
@@ -1023,16 +908,16 @@ class ObjectStore extends NativeFieldWrapperClass2 { |
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))); |
+ 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 wrap_jso(_blink.BlinkIDBObjectStore.instance.createIndex_Callback_3_(unwrap_jso(this), name, unwrap_jso(keyPath), options != null ? new js.JsObject.jsify(options) : options)); |
+ return _blink.BlinkIDBObjectStore.instance.createIndex_Callback_3_(unwrap_jso(this), name, unwrap_jso(keyPath), 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 _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), options != null ? new js.JsObject.jsify(options) : options)); |
+ return _blink.BlinkIDBObjectStore.instance.createIndex_Callback_3_(unwrap_jso(this), name, unwrap_jso(keyPath), options); |
} |
throw new ArgumentError("Incorrect number or type of arguments"); |
} |
@@ -1051,7 +936,7 @@ class ObjectStore extends NativeFieldWrapperClass2 { |
@DomName('IDBObjectStore.index') |
@DocsEditable() |
- Index index(String name) => wrap_jso(_blink.BlinkIDBObjectStore.instance.index_Callback_1_(unwrap_jso(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) { |
@@ -1136,18 +1021,6 @@ 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() |
@@ -1193,18 +1066,6 @@ 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 => wrap_jso(_blink.BlinkIDBRequest.instance.error_Getter_(unwrap_jso(this))); |
@@ -1215,11 +1076,11 @@ class Request extends EventTarget { |
@DomName('IDBRequest.result') |
@DocsEditable() |
- Object get result => wrap_jso(_blink.BlinkIDBRequest.instance.result_Getter_(unwrap_jso(this))); |
+ Object get result => _blink.BlinkIDBRequest.instance.result_Getter_(unwrap_jso(this)); |
@DomName('IDBRequest.source') |
@DocsEditable() |
- Object get source => wrap_jso(_blink.BlinkIDBRequest.instance.source_Getter_(unwrap_jso(this))); |
+ Object get source => _blink.BlinkIDBRequest.instance.source_Getter_(unwrap_jso(this)); |
@DomName('IDBRequest.transaction') |
@DocsEditable() |
@@ -1306,18 +1167,6 @@ 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 => wrap_jso(_blink.BlinkIDBTransaction.instance.db_Getter_(unwrap_jso(this))); |
@@ -1336,7 +1185,7 @@ class Transaction extends EventTarget { |
@DomName('IDBTransaction.objectStore') |
@DocsEditable() |
- ObjectStore objectStore(String name) => wrap_jso(_blink.BlinkIDBTransaction.instance.objectStore_Callback_1_(unwrap_jso(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') |
@@ -1368,18 +1217,6 @@ 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 |