| OLD | NEW |
| 1 /** | 1 /** |
| 2 * A client-side key-value store with support for indexes. | 2 * A client-side key-value store with support for indexes. |
| 3 * | 3 * |
| 4 * Many browsers support IndexedDB—a web standard for | 4 * Many browsers support IndexedDB—a web standard for |
| 5 * an indexed database. | 5 * an indexed database. |
| 6 * By storing data on the client in an IndexedDB, | 6 * By storing data on the client in an IndexedDB, |
| 7 * a web app gets some advantages, such as faster performance and persistence. | 7 * a web app gets some advantages, such as faster performance and persistence. |
| 8 * To find out which browsers support IndexedDB, | 8 * To find out which browsers support IndexedDB, |
| 9 * refer to [Can I Use?](http://caniuse.com/#feat=indexeddb) | 9 * refer to [Can I Use?](http://caniuse.com/#feat=indexeddb) |
| 10 * | 10 * |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 return new Cursor._internalWrap(); | 174 return new Cursor._internalWrap(); |
| 175 } | 175 } |
| 176 | 176 |
| 177 factory Cursor._internalWrap() { | 177 factory Cursor._internalWrap() { |
| 178 return new Cursor.internal_(); | 178 return new Cursor.internal_(); |
| 179 } | 179 } |
| 180 | 180 |
| 181 @Deprecated("Internal Use Only") | 181 @Deprecated("Internal Use Only") |
| 182 Cursor.internal_() { } | 182 Cursor.internal_() { } |
| 183 | 183 |
| 184 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(
this, other); | |
| 185 int get hashCode => unwrap_jso(this).hashCode; | |
| 186 | |
| 187 @DomName('IDBCursor.direction') | 184 @DomName('IDBCursor.direction') |
| 188 @DocsEditable() | 185 @DocsEditable() |
| 189 String get direction => _blink.BlinkIDBCursor.instance.direction_Getter_(unwra
p_jso(this)); | 186 String get direction => _blink.BlinkIDBCursor.instance.direction_Getter_(this)
; |
| 190 | 187 |
| 191 @DomName('IDBCursor.key') | 188 @DomName('IDBCursor.key') |
| 192 @DocsEditable() | 189 @DocsEditable() |
| 193 Object get key => wrap_jso(_blink.BlinkIDBCursor.instance.key_Getter_(unwrap_j
so(this))); | 190 Object get key => (_blink.BlinkIDBCursor.instance.key_Getter_(this)); |
| 194 | 191 |
| 195 @DomName('IDBCursor.primaryKey') | 192 @DomName('IDBCursor.primaryKey') |
| 196 @DocsEditable() | 193 @DocsEditable() |
| 197 Object get primaryKey => wrap_jso(_blink.BlinkIDBCursor.instance.primaryKey_Ge
tter_(unwrap_jso(this))); | 194 Object get primaryKey => (_blink.BlinkIDBCursor.instance.primaryKey_Getter_(th
is)); |
| 198 | 195 |
| 199 @DomName('IDBCursor.source') | 196 @DomName('IDBCursor.source') |
| 200 @DocsEditable() | 197 @DocsEditable() |
| 201 Object get source => wrap_jso(_blink.BlinkIDBCursor.instance.source_Getter_(un
wrap_jso(this))); | 198 Object get source => (_blink.BlinkIDBCursor.instance.source_Getter_(this)); |
| 202 | 199 |
| 203 @DomName('IDBCursor.advance') | 200 @DomName('IDBCursor.advance') |
| 204 @DocsEditable() | 201 @DocsEditable() |
| 205 void advance(int count) => _blink.BlinkIDBCursor.instance.advance_Callback_1_(
unwrap_jso(this), count); | 202 void advance(int count) => _blink.BlinkIDBCursor.instance.advance_Callback_1_(
this, count); |
| 206 | 203 |
| 207 @DomName('IDBCursor.continuePrimaryKey') | 204 @DomName('IDBCursor.continuePrimaryKey') |
| 208 @DocsEditable() | 205 @DocsEditable() |
| 209 @Experimental() // untriaged | 206 @Experimental() // untriaged |
| 210 void continuePrimaryKey(Object key, Object primaryKey) => _blink.BlinkIDBCurso
r.instance.continuePrimaryKey_Callback_2_(unwrap_jso(this), key, primaryKey); | 207 void continuePrimaryKey(Object key, Object primaryKey) => _blink.BlinkIDBCurso
r.instance.continuePrimaryKey_Callback_2_(this, key, primaryKey); |
| 211 | 208 |
| 212 @DomName('IDBCursor.delete') | 209 @DomName('IDBCursor.delete') |
| 213 @DocsEditable() | 210 @DocsEditable() |
| 214 Request _delete() => wrap_jso(_blink.BlinkIDBCursor.instance.delete_Callback_0
_(unwrap_jso(this))); | 211 Request _delete() => _blink.BlinkIDBCursor.instance.delete_Callback_0_(this); |
| 215 | 212 |
| 216 void next([Object key]) { | 213 void next([Object key]) { |
| 217 if (key != null) { | 214 if (key != null) { |
| 218 _blink.BlinkIDBCursor.instance.continue_Callback_1_(unwrap_jso(this), key)
; | 215 _blink.BlinkIDBCursor.instance.continue_Callback_1_(this, key); |
| 219 return; | 216 return; |
| 220 } | 217 } |
| 221 _blink.BlinkIDBCursor.instance.continue_Callback_0_(unwrap_jso(this)); | 218 _blink.BlinkIDBCursor.instance.continue_Callback_0_(this); |
| 222 return; | 219 return; |
| 223 } | 220 } |
| 224 | 221 |
| 225 @DomName('IDBCursor.update') | 222 @DomName('IDBCursor.update') |
| 226 @DocsEditable() | 223 @DocsEditable() |
| 227 Request _update(Object value) => wrap_jso(_blink.BlinkIDBCursor.instance.updat
e_Callback_1_(unwrap_jso(this), convertDartToNative_SerializedScriptValue(value)
)); | 224 Request _update(Object value) => _blink.BlinkIDBCursor.instance.update_Callbac
k_1_(this, convertDartToNative_SerializedScriptValue(value)); |
| 228 | 225 |
| 229 } | 226 } |
| 230 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 227 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 231 // for details. All rights reserved. Use of this source code is governed by a | 228 // for details. All rights reserved. Use of this source code is governed by a |
| 232 // BSD-style license that can be found in the LICENSE file. | 229 // BSD-style license that can be found in the LICENSE file. |
| 233 | 230 |
| 234 // WARNING: Do not edit - generated code. | 231 // WARNING: Do not edit - generated code. |
| 235 | 232 |
| 236 | 233 |
| 237 @DocsEditable() | 234 @DocsEditable() |
| (...skipping 10 matching lines...) Expand all Loading... |
| 248 } | 245 } |
| 249 | 246 |
| 250 external factory CursorWithValue._internalWrap(); | 247 external factory CursorWithValue._internalWrap(); |
| 251 | 248 |
| 252 @Deprecated("Internal Use Only") | 249 @Deprecated("Internal Use Only") |
| 253 CursorWithValue.internal_() : super.internal_(); | 250 CursorWithValue.internal_() : super.internal_(); |
| 254 | 251 |
| 255 | 252 |
| 256 @DomName('IDBCursorWithValue.value') | 253 @DomName('IDBCursorWithValue.value') |
| 257 @DocsEditable() | 254 @DocsEditable() |
| 258 Object get value => wrap_jso(_blink.BlinkIDBCursorWithValue.instance.value_Get
ter_(unwrap_jso(this))); | 255 Object get value => (_blink.BlinkIDBCursorWithValue.instance.value_Getter_(thi
s)); |
| 259 | 256 |
| 260 } | 257 } |
| 261 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 258 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 262 // for details. All rights reserved. Use of this source code is governed by a | 259 // for details. All rights reserved. Use of this source code is governed by a |
| 263 // BSD-style license that can be found in the LICENSE file. | 260 // BSD-style license that can be found in the LICENSE file. |
| 264 | 261 |
| 265 | 262 |
| 266 @DocsEditable() | 263 @DocsEditable() |
| 267 /** | 264 /** |
| 268 * An indexed database object for storing client-side data | 265 * An indexed database object for storing client-side data |
| (...skipping 22 matching lines...) Expand all Loading... |
| 291 } | 288 } |
| 292 | 289 |
| 293 Transaction transaction(storeName_OR_storeNames, String mode) { | 290 Transaction transaction(storeName_OR_storeNames, String mode) { |
| 294 if (mode != 'readonly' && mode != 'readwrite') { | 291 if (mode != 'readonly' && mode != 'readwrite') { |
| 295 throw new ArgumentError("Invalid transaction mode $mode"); | 292 throw new ArgumentError("Invalid transaction mode $mode"); |
| 296 } | 293 } |
| 297 var names; | 294 var names; |
| 298 if (storeName_OR_storeNames == null) { | 295 if (storeName_OR_storeNames == null) { |
| 299 throw new ArgumentError("stores may not be null in transaction"); | 296 throw new ArgumentError("stores may not be null in transaction"); |
| 300 } else if (storeName_OR_storeNames is String || storeName_OR_storeNames is D
omStringList) { | 297 } else if (storeName_OR_storeNames is String || storeName_OR_storeNames is D
omStringList) { |
| 301 names = unwrap_jso(storeName_OR_storeNames); | 298 names = storeName_OR_storeNames; |
| 302 } else if (storeName_OR_storeNames is List<String>) { | 299 } else if (storeName_OR_storeNames is List<String>) { |
| 303 names = convertDartToNative_List(storeName_OR_storeNames); | 300 names = convertDartToNative_List(storeName_OR_storeNames); |
| 304 } else { | 301 } else { |
| 305 throw new ArgumentError("Invalid store(s) $store_Name_OR_storeNames"); | 302 throw new ArgumentError("Invalid store(s) $store_Name_OR_storeNames"); |
| 306 } | 303 } |
| 307 | 304 |
| 308 return wrap_jso(_blink.BlinkIDBDatabase.instance.transaction_Callback_2_(unw
rap_jso(this), names, mode)); | 305 return _blink.BlinkIDBDatabase.instance.transaction_Callback_2_(this, names,
mode); |
| 309 } | 306 } |
| 310 | 307 |
| 311 Transaction transactionList(List<String> storeNames, String mode) => transacti
on(storeNames, mode); | 308 Transaction transactionList(List<String> storeNames, String mode) => transacti
on(storeNames, mode); |
| 312 Transaction transactionStores(List<String> storeNames, String mode) => transac
tion(storeNames, mode); | 309 Transaction transactionStores(List<String> storeNames, String mode) => transac
tion(storeNames, mode); |
| 313 Transaction transactionStore(String storeName, String mode) => transaction(sto
reName, mode); | 310 Transaction transactionStore(String storeName, String mode) => transaction(sto
reName, mode); |
| 314 | 311 |
| 315 // To suppress missing implicit constructor warnings. | 312 // To suppress missing implicit constructor warnings. |
| 316 factory Database._() { throw new UnsupportedError("Not supported"); } | 313 factory Database._() { throw new UnsupportedError("Not supported"); } |
| 317 | 314 |
| 318 /** | 315 /** |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 } | 361 } |
| 365 | 362 |
| 366 external factory Database._internalWrap(); | 363 external factory Database._internalWrap(); |
| 367 | 364 |
| 368 @Deprecated("Internal Use Only") | 365 @Deprecated("Internal Use Only") |
| 369 Database.internal_() : super.internal_(); | 366 Database.internal_() : super.internal_(); |
| 370 | 367 |
| 371 | 368 |
| 372 @DomName('IDBDatabase.name') | 369 @DomName('IDBDatabase.name') |
| 373 @DocsEditable() | 370 @DocsEditable() |
| 374 String get name => _blink.BlinkIDBDatabase.instance.name_Getter_(unwrap_jso(th
is)); | 371 String get name => _blink.BlinkIDBDatabase.instance.name_Getter_(this); |
| 375 | 372 |
| 376 @DomName('IDBDatabase.objectStoreNames') | 373 @DomName('IDBDatabase.objectStoreNames') |
| 377 @DocsEditable() | 374 @DocsEditable() |
| 378 List<String> get objectStoreNames => wrap_jso(_blink.BlinkIDBDatabase.instance
.objectStoreNames_Getter_(unwrap_jso(this))); | 375 List<String> get objectStoreNames => _blink.BlinkIDBDatabase.instance.objectSt
oreNames_Getter_(this); |
| 379 | 376 |
| 380 @DomName('IDBDatabase.version') | 377 @DomName('IDBDatabase.version') |
| 381 @DocsEditable() | 378 @DocsEditable() |
| 382 Object get version => wrap_jso(_blink.BlinkIDBDatabase.instance.version_Getter
_(unwrap_jso(this))); | 379 Object get version => (_blink.BlinkIDBDatabase.instance.version_Getter_(this))
; |
| 383 | 380 |
| 384 @DomName('IDBDatabase.close') | 381 @DomName('IDBDatabase.close') |
| 385 @DocsEditable() | 382 @DocsEditable() |
| 386 void close() => _blink.BlinkIDBDatabase.instance.close_Callback_0_(unwrap_jso(
this)); | 383 void close() => _blink.BlinkIDBDatabase.instance.close_Callback_0_(this); |
| 387 | 384 |
| 388 ObjectStore _createObjectStore(String name, [Map options]) { | 385 ObjectStore _createObjectStore(String name, [Map options]) { |
| 389 if (options != null) { | 386 if (options != null) { |
| 390 return wrap_jso(_blink.BlinkIDBDatabase.instance.createObjectStore_Callbac
k_2_(unwrap_jso(this), name, convertDartToNative_Dictionary(options))); | 387 return _blink.BlinkIDBDatabase.instance.createObjectStore_Callback_2_(this
, name, convertDartToNative_Dictionary(options)); |
| 391 } | 388 } |
| 392 return wrap_jso(_blink.BlinkIDBDatabase.instance.createObjectStore_Callback_
1_(unwrap_jso(this), name)); | 389 return _blink.BlinkIDBDatabase.instance.createObjectStore_Callback_1_(this,
name); |
| 393 } | 390 } |
| 394 | 391 |
| 395 @DomName('IDBDatabase.deleteObjectStore') | 392 @DomName('IDBDatabase.deleteObjectStore') |
| 396 @DocsEditable() | 393 @DocsEditable() |
| 397 void deleteObjectStore(String name) => _blink.BlinkIDBDatabase.instance.delete
ObjectStore_Callback_1_(unwrap_jso(this), name); | 394 void deleteObjectStore(String name) => _blink.BlinkIDBDatabase.instance.delete
ObjectStore_Callback_1_(this, name); |
| 398 | 395 |
| 399 /// Stream of `abort` events handled by this [Database]. | 396 /// Stream of `abort` events handled by this [Database]. |
| 400 @DomName('IDBDatabase.onabort') | 397 @DomName('IDBDatabase.onabort') |
| 401 @DocsEditable() | 398 @DocsEditable() |
| 402 Stream<Event> get onAbort => abortEvent.forTarget(this); | 399 Stream<Event> get onAbort => abortEvent.forTarget(this); |
| 403 | 400 |
| 404 /// Stream of `close` events handled by this [Database]. | 401 /// Stream of `close` events handled by this [Database]. |
| 405 @DomName('IDBDatabase.onclose') | 402 @DomName('IDBDatabase.onclose') |
| 406 @DocsEditable() | 403 @DocsEditable() |
| 407 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=22540 | 404 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=22540 |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 513 return new IdbFactory._internalWrap(); | 510 return new IdbFactory._internalWrap(); |
| 514 } | 511 } |
| 515 | 512 |
| 516 factory IdbFactory._internalWrap() { | 513 factory IdbFactory._internalWrap() { |
| 517 return new IdbFactory.internal_(); | 514 return new IdbFactory.internal_(); |
| 518 } | 515 } |
| 519 | 516 |
| 520 @Deprecated("Internal Use Only") | 517 @Deprecated("Internal Use Only") |
| 521 IdbFactory.internal_() { } | 518 IdbFactory.internal_() { } |
| 522 | 519 |
| 523 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(
this, other); | |
| 524 int get hashCode => unwrap_jso(this).hashCode; | |
| 525 | |
| 526 @DomName('IDBFactory.cmp') | 520 @DomName('IDBFactory.cmp') |
| 527 @DocsEditable() | 521 @DocsEditable() |
| 528 int cmp(Object first, Object second) => _blink.BlinkIDBFactory.instance.cmp_Ca
llback_2_(unwrap_jso(this), first, second); | 522 int cmp(Object first, Object second) => _blink.BlinkIDBFactory.instance.cmp_Ca
llback_2_(this, first, second); |
| 529 | 523 |
| 530 @DomName('IDBFactory.deleteDatabase') | 524 @DomName('IDBFactory.deleteDatabase') |
| 531 @DocsEditable() | 525 @DocsEditable() |
| 532 OpenDBRequest _deleteDatabase(String name) => wrap_jso(_blink.BlinkIDBFactory.
instance.deleteDatabase_Callback_1_(unwrap_jso(this), name)); | 526 OpenDBRequest _deleteDatabase(String name) => _blink.BlinkIDBFactory.instance.
deleteDatabase_Callback_1_(this, name); |
| 533 | 527 |
| 534 OpenDBRequest _open(String name, [int version]) { | 528 OpenDBRequest _open(String name, [int version]) { |
| 535 if (version != null) { | 529 if (version != null) { |
| 536 return wrap_jso(_blink.BlinkIDBFactory.instance.open_Callback_2_(unwrap_js
o(this), name, version)); | 530 return _blink.BlinkIDBFactory.instance.open_Callback_2_(this, name, versio
n); |
| 537 } | 531 } |
| 538 return wrap_jso(_blink.BlinkIDBFactory.instance.open_Callback_1_(unwrap_jso(
this), name)); | 532 return _blink.BlinkIDBFactory.instance.open_Callback_1_(this, name); |
| 539 } | 533 } |
| 540 | 534 |
| 541 @DomName('IDBFactory.webkitGetDatabaseNames') | 535 @DomName('IDBFactory.webkitGetDatabaseNames') |
| 542 @DocsEditable() | 536 @DocsEditable() |
| 543 @SupportedBrowser(SupportedBrowser.CHROME) | 537 @SupportedBrowser(SupportedBrowser.CHROME) |
| 544 @SupportedBrowser(SupportedBrowser.SAFARI) | 538 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 545 @Experimental() | 539 @Experimental() |
| 546 Request _webkitGetDatabaseNames() => wrap_jso(_blink.BlinkIDBFactory.instance.
webkitGetDatabaseNames_Callback_0_(unwrap_jso(this))); | 540 Request _webkitGetDatabaseNames() => _blink.BlinkIDBFactory.instance.webkitGet
DatabaseNames_Callback_0_(this); |
| 547 | 541 |
| 548 } | 542 } |
| 549 | 543 |
| 550 | 544 |
| 551 /** | 545 /** |
| 552 * Ties a request to a completer, so the completer is completed when it succeeds | 546 * Ties a request to a completer, so the completer is completed when it succeeds |
| 553 * and errors out when the request errors. | 547 * and errors out when the request errors. |
| 554 */ | 548 */ |
| 555 Future _completeRequest(Request request) { | 549 Future _completeRequest(Request request) { |
| 556 var completer = new Completer.sync(); | 550 var completer = new Completer.sync(); |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 666 return new Index._internalWrap(); | 660 return new Index._internalWrap(); |
| 667 } | 661 } |
| 668 | 662 |
| 669 factory Index._internalWrap() { | 663 factory Index._internalWrap() { |
| 670 return new Index.internal_(); | 664 return new Index.internal_(); |
| 671 } | 665 } |
| 672 | 666 |
| 673 @Deprecated("Internal Use Only") | 667 @Deprecated("Internal Use Only") |
| 674 Index.internal_() { } | 668 Index.internal_() { } |
| 675 | 669 |
| 676 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(
this, other); | |
| 677 int get hashCode => unwrap_jso(this).hashCode; | |
| 678 | |
| 679 @DomName('IDBIndex.keyPath') | 670 @DomName('IDBIndex.keyPath') |
| 680 @DocsEditable() | 671 @DocsEditable() |
| 681 Object get keyPath => wrap_jso(_blink.BlinkIDBIndex.instance.keyPath_Getter_(u
nwrap_jso(this))); | 672 Object get keyPath => (_blink.BlinkIDBIndex.instance.keyPath_Getter_(this)); |
| 682 | 673 |
| 683 @DomName('IDBIndex.multiEntry') | 674 @DomName('IDBIndex.multiEntry') |
| 684 @DocsEditable() | 675 @DocsEditable() |
| 685 bool get multiEntry => _blink.BlinkIDBIndex.instance.multiEntry_Getter_(unwrap
_jso(this)); | 676 bool get multiEntry => _blink.BlinkIDBIndex.instance.multiEntry_Getter_(this); |
| 686 | 677 |
| 687 @DomName('IDBIndex.name') | 678 @DomName('IDBIndex.name') |
| 688 @DocsEditable() | 679 @DocsEditable() |
| 689 String get name => _blink.BlinkIDBIndex.instance.name_Getter_(unwrap_jso(this)
); | 680 String get name => _blink.BlinkIDBIndex.instance.name_Getter_(this); |
| 690 | 681 |
| 691 @DomName('IDBIndex.objectStore') | 682 @DomName('IDBIndex.objectStore') |
| 692 @DocsEditable() | 683 @DocsEditable() |
| 693 ObjectStore get objectStore => wrap_jso(_blink.BlinkIDBIndex.instance.objectSt
ore_Getter_(unwrap_jso(this))); | 684 ObjectStore get objectStore => _blink.BlinkIDBIndex.instance.objectStore_Gette
r_(this); |
| 694 | 685 |
| 695 @DomName('IDBIndex.unique') | 686 @DomName('IDBIndex.unique') |
| 696 @DocsEditable() | 687 @DocsEditable() |
| 697 bool get unique => _blink.BlinkIDBIndex.instance.unique_Getter_(unwrap_jso(thi
s)); | 688 bool get unique => _blink.BlinkIDBIndex.instance.unique_Getter_(this); |
| 698 | 689 |
| 699 @DomName('IDBIndex.count') | 690 @DomName('IDBIndex.count') |
| 700 @DocsEditable() | 691 @DocsEditable() |
| 701 Request _count(Object key) => wrap_jso(_blink.BlinkIDBIndex.instance.count_Cal
lback_1_(unwrap_jso(this), key)); | 692 Request _count(Object key) => _blink.BlinkIDBIndex.instance.count_Callback_1_(
this, key); |
| 702 | 693 |
| 703 @DomName('IDBIndex.get') | 694 @DomName('IDBIndex.get') |
| 704 @DocsEditable() | 695 @DocsEditable() |
| 705 Request _get(Object key) => wrap_jso(_blink.BlinkIDBIndex.instance.get_Callbac
k_1_(unwrap_jso(this), key)); | 696 Request _get(Object key) => _blink.BlinkIDBIndex.instance.get_Callback_1_(this
, key); |
| 706 | 697 |
| 707 Request getAll(Object range, [int maxCount]) { | 698 Request getAll(Object range, [int maxCount]) { |
| 708 if (maxCount != null) { | 699 if (maxCount != null) { |
| 709 return wrap_jso(_blink.BlinkIDBIndex.instance.getAll_Callback_2_(unwrap_js
o(this), range, maxCount)); | 700 return _blink.BlinkIDBIndex.instance.getAll_Callback_2_(this, range, maxCo
unt); |
| 710 } | 701 } |
| 711 return wrap_jso(_blink.BlinkIDBIndex.instance.getAll_Callback_1_(unwrap_jso(
this), range)); | 702 return _blink.BlinkIDBIndex.instance.getAll_Callback_1_(this, range); |
| 712 } | 703 } |
| 713 | 704 |
| 714 Request getAllKeys(Object range, [int maxCount]) { | 705 Request getAllKeys(Object range, [int maxCount]) { |
| 715 if (maxCount != null) { | 706 if (maxCount != null) { |
| 716 return wrap_jso(_blink.BlinkIDBIndex.instance.getAllKeys_Callback_2_(unwra
p_jso(this), range, maxCount)); | 707 return _blink.BlinkIDBIndex.instance.getAllKeys_Callback_2_(this, range, m
axCount); |
| 717 } | 708 } |
| 718 return wrap_jso(_blink.BlinkIDBIndex.instance.getAllKeys_Callback_1_(unwrap_
jso(this), range)); | 709 return _blink.BlinkIDBIndex.instance.getAllKeys_Callback_1_(this, range); |
| 719 } | 710 } |
| 720 | 711 |
| 721 @DomName('IDBIndex.getKey') | 712 @DomName('IDBIndex.getKey') |
| 722 @DocsEditable() | 713 @DocsEditable() |
| 723 Request _getKey(Object key) => wrap_jso(_blink.BlinkIDBIndex.instance.getKey_C
allback_1_(unwrap_jso(this), key)); | 714 Request _getKey(Object key) => _blink.BlinkIDBIndex.instance.getKey_Callback_1
_(this, key); |
| 724 | 715 |
| 725 Request _openCursor(Object range, [String direction]) { | 716 Request _openCursor(Object range, [String direction]) { |
| 726 if (direction != null) { | 717 if (direction != null) { |
| 727 return wrap_jso(_blink.BlinkIDBIndex.instance.openCursor_Callback_2_(unwra
p_jso(this), range, direction)); | 718 return _blink.BlinkIDBIndex.instance.openCursor_Callback_2_(this, range, d
irection); |
| 728 } | 719 } |
| 729 return wrap_jso(_blink.BlinkIDBIndex.instance.openCursor_Callback_1_(unwrap_
jso(this), range)); | 720 return _blink.BlinkIDBIndex.instance.openCursor_Callback_1_(this, range); |
| 730 } | 721 } |
| 731 | 722 |
| 732 Request _openKeyCursor(Object range, [String direction]) { | 723 Request _openKeyCursor(Object range, [String direction]) { |
| 733 if (direction != null) { | 724 if (direction != null) { |
| 734 return wrap_jso(_blink.BlinkIDBIndex.instance.openKeyCursor_Callback_2_(un
wrap_jso(this), range, direction)); | 725 return _blink.BlinkIDBIndex.instance.openKeyCursor_Callback_2_(this, range
, direction); |
| 735 } | 726 } |
| 736 return wrap_jso(_blink.BlinkIDBIndex.instance.openKeyCursor_Callback_1_(unwr
ap_jso(this), range)); | 727 return _blink.BlinkIDBIndex.instance.openKeyCursor_Callback_1_(this, range); |
| 737 } | 728 } |
| 738 | 729 |
| 739 } | 730 } |
| 740 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 731 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 741 // for details. All rights reserved. Use of this source code is governed by a | 732 // for details. All rights reserved. Use of this source code is governed by a |
| 742 // BSD-style license that can be found in the LICENSE file. | 733 // BSD-style license that can be found in the LICENSE file. |
| 743 | 734 |
| 744 | 735 |
| 745 @DomName('IDBKeyRange') | 736 @DomName('IDBKeyRange') |
| 746 @Unstable() | 737 @Unstable() |
| (...skipping 24 matching lines...) Expand all Loading... |
| 771 return new KeyRange._internalWrap(); | 762 return new KeyRange._internalWrap(); |
| 772 } | 763 } |
| 773 | 764 |
| 774 factory KeyRange._internalWrap() { | 765 factory KeyRange._internalWrap() { |
| 775 return new KeyRange.internal_(); | 766 return new KeyRange.internal_(); |
| 776 } | 767 } |
| 777 | 768 |
| 778 @Deprecated("Internal Use Only") | 769 @Deprecated("Internal Use Only") |
| 779 KeyRange.internal_() { } | 770 KeyRange.internal_() { } |
| 780 | 771 |
| 781 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(
this, other); | |
| 782 int get hashCode => unwrap_jso(this).hashCode; | |
| 783 | |
| 784 @DomName('IDBKeyRange.lower') | 772 @DomName('IDBKeyRange.lower') |
| 785 @DocsEditable() | 773 @DocsEditable() |
| 786 Object get lower => wrap_jso(_blink.BlinkIDBKeyRange.instance.lower_Getter_(un
wrap_jso(this))); | 774 Object get lower => (_blink.BlinkIDBKeyRange.instance.lower_Getter_(this)); |
| 787 | 775 |
| 788 @DomName('IDBKeyRange.lowerOpen') | 776 @DomName('IDBKeyRange.lowerOpen') |
| 789 @DocsEditable() | 777 @DocsEditable() |
| 790 bool get lowerOpen => _blink.BlinkIDBKeyRange.instance.lowerOpen_Getter_(unwra
p_jso(this)); | 778 bool get lowerOpen => _blink.BlinkIDBKeyRange.instance.lowerOpen_Getter_(this)
; |
| 791 | 779 |
| 792 @DomName('IDBKeyRange.upper') | 780 @DomName('IDBKeyRange.upper') |
| 793 @DocsEditable() | 781 @DocsEditable() |
| 794 Object get upper => wrap_jso(_blink.BlinkIDBKeyRange.instance.upper_Getter_(un
wrap_jso(this))); | 782 Object get upper => (_blink.BlinkIDBKeyRange.instance.upper_Getter_(this)); |
| 795 | 783 |
| 796 @DomName('IDBKeyRange.upperOpen') | 784 @DomName('IDBKeyRange.upperOpen') |
| 797 @DocsEditable() | 785 @DocsEditable() |
| 798 bool get upperOpen => _blink.BlinkIDBKeyRange.instance.upperOpen_Getter_(unwra
p_jso(this)); | 786 bool get upperOpen => _blink.BlinkIDBKeyRange.instance.upperOpen_Getter_(this)
; |
| 799 | 787 |
| 800 static KeyRange bound_(Object lower, Object upper, [bool lowerOpen, bool upper
Open]) { | 788 static KeyRange bound_(Object lower, Object upper, [bool lowerOpen, bool upper
Open]) { |
| 801 if (upperOpen != null) { | 789 if (upperOpen != null) { |
| 802 return wrap_jso(_blink.BlinkIDBKeyRange.instance.bound_Callback_4_(lower,
upper, lowerOpen, upperOpen)); | 790 return _blink.BlinkIDBKeyRange.instance.bound_Callback_4_(lower, upper, lo
werOpen, upperOpen); |
| 803 } | 791 } |
| 804 if (lowerOpen != null) { | 792 if (lowerOpen != null) { |
| 805 return wrap_jso(_blink.BlinkIDBKeyRange.instance.bound_Callback_3_(lower,
upper, lowerOpen)); | 793 return _blink.BlinkIDBKeyRange.instance.bound_Callback_3_(lower, upper, lo
werOpen); |
| 806 } | 794 } |
| 807 return wrap_jso(_blink.BlinkIDBKeyRange.instance.bound_Callback_2_(lower, up
per)); | 795 return _blink.BlinkIDBKeyRange.instance.bound_Callback_2_(lower, upper); |
| 808 } | 796 } |
| 809 | 797 |
| 810 static KeyRange lowerBound_(Object bound, [bool open]) { | 798 static KeyRange lowerBound_(Object bound, [bool open]) { |
| 811 if (open != null) { | 799 if (open != null) { |
| 812 return wrap_jso(_blink.BlinkIDBKeyRange.instance.lowerBound_Callback_2_(bo
und, open)); | 800 return _blink.BlinkIDBKeyRange.instance.lowerBound_Callback_2_(bound, open
); |
| 813 } | 801 } |
| 814 return wrap_jso(_blink.BlinkIDBKeyRange.instance.lowerBound_Callback_1_(boun
d)); | 802 return _blink.BlinkIDBKeyRange.instance.lowerBound_Callback_1_(bound); |
| 815 } | 803 } |
| 816 | 804 |
| 817 @DomName('IDBKeyRange.only_') | 805 @DomName('IDBKeyRange.only_') |
| 818 @DocsEditable() | 806 @DocsEditable() |
| 819 @Experimental() // non-standard | 807 @Experimental() // non-standard |
| 820 static KeyRange only_(Object value) => wrap_jso(_blink.BlinkIDBKeyRange.instan
ce.only_Callback_1_(value)); | 808 static KeyRange only_(Object value) => _blink.BlinkIDBKeyRange.instance.only_C
allback_1_(value); |
| 821 | 809 |
| 822 static KeyRange upperBound_(Object bound, [bool open]) { | 810 static KeyRange upperBound_(Object bound, [bool open]) { |
| 823 if (open != null) { | 811 if (open != null) { |
| 824 return wrap_jso(_blink.BlinkIDBKeyRange.instance.upperBound_Callback_2_(bo
und, open)); | 812 return _blink.BlinkIDBKeyRange.instance.upperBound_Callback_2_(bound, open
); |
| 825 } | 813 } |
| 826 return wrap_jso(_blink.BlinkIDBKeyRange.instance.upperBound_Callback_1_(boun
d)); | 814 return _blink.BlinkIDBKeyRange.instance.upperBound_Callback_1_(bound); |
| 827 } | 815 } |
| 828 | 816 |
| 829 } | 817 } |
| 830 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 818 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 831 // for details. All rights reserved. Use of this source code is governed by a | 819 // for details. All rights reserved. Use of this source code is governed by a |
| 832 // BSD-style license that can be found in the LICENSE file. | 820 // BSD-style license that can be found in the LICENSE file. |
| 833 | 821 |
| 834 | 822 |
| 835 @DomName('IDBObjectStore') | 823 @DomName('IDBObjectStore') |
| 836 @Unstable() | 824 @Unstable() |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 970 return new ObjectStore._internalWrap(); | 958 return new ObjectStore._internalWrap(); |
| 971 } | 959 } |
| 972 | 960 |
| 973 factory ObjectStore._internalWrap() { | 961 factory ObjectStore._internalWrap() { |
| 974 return new ObjectStore.internal_(); | 962 return new ObjectStore.internal_(); |
| 975 } | 963 } |
| 976 | 964 |
| 977 @Deprecated("Internal Use Only") | 965 @Deprecated("Internal Use Only") |
| 978 ObjectStore.internal_() { } | 966 ObjectStore.internal_() { } |
| 979 | 967 |
| 980 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(
this, other); | |
| 981 int get hashCode => unwrap_jso(this).hashCode; | |
| 982 | |
| 983 @DomName('IDBObjectStore.autoIncrement') | 968 @DomName('IDBObjectStore.autoIncrement') |
| 984 @DocsEditable() | 969 @DocsEditable() |
| 985 bool get autoIncrement => _blink.BlinkIDBObjectStore.instance.autoIncrement_Ge
tter_(unwrap_jso(this)); | 970 bool get autoIncrement => _blink.BlinkIDBObjectStore.instance.autoIncrement_Ge
tter_(this); |
| 986 | 971 |
| 987 @DomName('IDBObjectStore.indexNames') | 972 @DomName('IDBObjectStore.indexNames') |
| 988 @DocsEditable() | 973 @DocsEditable() |
| 989 List<String> get indexNames => wrap_jso(_blink.BlinkIDBObjectStore.instance.in
dexNames_Getter_(unwrap_jso(this))); | 974 List<String> get indexNames => _blink.BlinkIDBObjectStore.instance.indexNames_
Getter_(this); |
| 990 | 975 |
| 991 @DomName('IDBObjectStore.keyPath') | 976 @DomName('IDBObjectStore.keyPath') |
| 992 @DocsEditable() | 977 @DocsEditable() |
| 993 Object get keyPath => wrap_jso(_blink.BlinkIDBObjectStore.instance.keyPath_Get
ter_(unwrap_jso(this))); | 978 Object get keyPath => (_blink.BlinkIDBObjectStore.instance.keyPath_Getter_(thi
s)); |
| 994 | 979 |
| 995 @DomName('IDBObjectStore.name') | 980 @DomName('IDBObjectStore.name') |
| 996 @DocsEditable() | 981 @DocsEditable() |
| 997 String get name => _blink.BlinkIDBObjectStore.instance.name_Getter_(unwrap_jso
(this)); | 982 String get name => _blink.BlinkIDBObjectStore.instance.name_Getter_(this); |
| 998 | 983 |
| 999 @DomName('IDBObjectStore.transaction') | 984 @DomName('IDBObjectStore.transaction') |
| 1000 @DocsEditable() | 985 @DocsEditable() |
| 1001 Transaction get transaction => wrap_jso(_blink.BlinkIDBObjectStore.instance.tr
ansaction_Getter_(unwrap_jso(this))); | 986 Transaction get transaction => _blink.BlinkIDBObjectStore.instance.transaction
_Getter_(this); |
| 1002 | 987 |
| 1003 Request _add(Object value, [Object key]) { | 988 Request _add(Object value, [Object key]) { |
| 1004 if (key != null) { | 989 if (key != null) { |
| 1005 return wrap_jso(_blink.BlinkIDBObjectStore.instance.add_Callback_2_(unwrap
_jso(this), convertDartToNative_SerializedScriptValue(value), convertDartToNativ
e_SerializedScriptValue(key))); | 990 return _blink.BlinkIDBObjectStore.instance.add_Callback_2_(this, convertDa
rtToNative_SerializedScriptValue(value), convertDartToNative_SerializedScriptVal
ue(key)); |
| 1006 } | 991 } |
| 1007 return wrap_jso(_blink.BlinkIDBObjectStore.instance.add_Callback_1_(unwrap_j
so(this), convertDartToNative_SerializedScriptValue(value))); | 992 return _blink.BlinkIDBObjectStore.instance.add_Callback_1_(this, convertDart
ToNative_SerializedScriptValue(value)); |
| 1008 } | 993 } |
| 1009 | 994 |
| 1010 @DomName('IDBObjectStore.clear') | 995 @DomName('IDBObjectStore.clear') |
| 1011 @DocsEditable() | 996 @DocsEditable() |
| 1012 Request _clear() => wrap_jso(_blink.BlinkIDBObjectStore.instance.clear_Callbac
k_0_(unwrap_jso(this))); | 997 Request _clear() => _blink.BlinkIDBObjectStore.instance.clear_Callback_0_(this
); |
| 1013 | 998 |
| 1014 @DomName('IDBObjectStore.count') | 999 @DomName('IDBObjectStore.count') |
| 1015 @DocsEditable() | 1000 @DocsEditable() |
| 1016 Request _count(Object key) => wrap_jso(_blink.BlinkIDBObjectStore.instance.cou
nt_Callback_1_(unwrap_jso(this), key)); | 1001 Request _count(Object key) => _blink.BlinkIDBObjectStore.instance.count_Callba
ck_1_(this, key); |
| 1017 | 1002 |
| 1018 Index _createIndex(String name, Object keyPath, [Map options]) { | 1003 Index _createIndex(String name, Object keyPath, [Map options]) { |
| 1019 if (options != null) { | 1004 if (options != null) { |
| 1020 return wrap_jso(_blink.BlinkIDBObjectStore.instance.createIndex_Callback_3
_(unwrap_jso(this), name, keyPath, convertDartToNative_Dictionary(options))); | 1005 return _blink.BlinkIDBObjectStore.instance.createIndex_Callback_3_(this, n
ame, keyPath, convertDartToNative_Dictionary(options)); |
| 1021 } | 1006 } |
| 1022 return wrap_jso(_blink.BlinkIDBObjectStore.instance.createIndex_Callback_2_(
unwrap_jso(this), name, keyPath)); | 1007 return _blink.BlinkIDBObjectStore.instance.createIndex_Callback_2_(this, nam
e, keyPath); |
| 1023 } | 1008 } |
| 1024 | 1009 |
| 1025 @DomName('IDBObjectStore.delete') | 1010 @DomName('IDBObjectStore.delete') |
| 1026 @DocsEditable() | 1011 @DocsEditable() |
| 1027 Request _delete(Object key) => wrap_jso(_blink.BlinkIDBObjectStore.instance.de
lete_Callback_1_(unwrap_jso(this), key)); | 1012 Request _delete(Object key) => _blink.BlinkIDBObjectStore.instance.delete_Call
back_1_(this, key); |
| 1028 | 1013 |
| 1029 @DomName('IDBObjectStore.deleteIndex') | 1014 @DomName('IDBObjectStore.deleteIndex') |
| 1030 @DocsEditable() | 1015 @DocsEditable() |
| 1031 void deleteIndex(String name) => _blink.BlinkIDBObjectStore.instance.deleteInd
ex_Callback_1_(unwrap_jso(this), name); | 1016 void deleteIndex(String name) => _blink.BlinkIDBObjectStore.instance.deleteInd
ex_Callback_1_(this, name); |
| 1032 | 1017 |
| 1033 @DomName('IDBObjectStore.get') | 1018 @DomName('IDBObjectStore.get') |
| 1034 @DocsEditable() | 1019 @DocsEditable() |
| 1035 Request _get(Object key) => wrap_jso(_blink.BlinkIDBObjectStore.instance.get_C
allback_1_(unwrap_jso(this), key)); | 1020 Request _get(Object key) => _blink.BlinkIDBObjectStore.instance.get_Callback_1
_(this, key); |
| 1036 | 1021 |
| 1037 Request getAll(Object range, [int maxCount]) { | 1022 Request getAll(Object range, [int maxCount]) { |
| 1038 if (maxCount != null) { | 1023 if (maxCount != null) { |
| 1039 return wrap_jso(_blink.BlinkIDBObjectStore.instance.getAll_Callback_2_(unw
rap_jso(this), range, maxCount)); | 1024 return _blink.BlinkIDBObjectStore.instance.getAll_Callback_2_(this, range,
maxCount); |
| 1040 } | 1025 } |
| 1041 return wrap_jso(_blink.BlinkIDBObjectStore.instance.getAll_Callback_1_(unwra
p_jso(this), range)); | 1026 return _blink.BlinkIDBObjectStore.instance.getAll_Callback_1_(this, range); |
| 1042 } | 1027 } |
| 1043 | 1028 |
| 1044 Request getAllKeys(Object range, [int maxCount]) { | 1029 Request getAllKeys(Object range, [int maxCount]) { |
| 1045 if (maxCount != null) { | 1030 if (maxCount != null) { |
| 1046 return wrap_jso(_blink.BlinkIDBObjectStore.instance.getAllKeys_Callback_2_
(unwrap_jso(this), range, maxCount)); | 1031 return _blink.BlinkIDBObjectStore.instance.getAllKeys_Callback_2_(this, ra
nge, maxCount); |
| 1047 } | 1032 } |
| 1048 return wrap_jso(_blink.BlinkIDBObjectStore.instance.getAllKeys_Callback_1_(u
nwrap_jso(this), range)); | 1033 return _blink.BlinkIDBObjectStore.instance.getAllKeys_Callback_1_(this, rang
e); |
| 1049 } | 1034 } |
| 1050 | 1035 |
| 1051 @DomName('IDBObjectStore.index') | 1036 @DomName('IDBObjectStore.index') |
| 1052 @DocsEditable() | 1037 @DocsEditable() |
| 1053 Index index(String name) => wrap_jso(_blink.BlinkIDBObjectStore.instance.index
_Callback_1_(unwrap_jso(this), name)); | 1038 Index index(String name) => _blink.BlinkIDBObjectStore.instance.index_Callback
_1_(this, name); |
| 1054 | 1039 |
| 1055 Request _openCursor(Object range, [String direction]) { | 1040 Request _openCursor(Object range, [String direction]) { |
| 1056 if (direction != null) { | 1041 if (direction != null) { |
| 1057 return wrap_jso(_blink.BlinkIDBObjectStore.instance.openCursor_Callback_2_
(unwrap_jso(this), range, direction)); | 1042 return _blink.BlinkIDBObjectStore.instance.openCursor_Callback_2_(this, ra
nge, direction); |
| 1058 } | 1043 } |
| 1059 return wrap_jso(_blink.BlinkIDBObjectStore.instance.openCursor_Callback_1_(u
nwrap_jso(this), range)); | 1044 return _blink.BlinkIDBObjectStore.instance.openCursor_Callback_1_(this, rang
e); |
| 1060 } | 1045 } |
| 1061 | 1046 |
| 1062 Request openKeyCursor(Object range, [String direction]) { | 1047 Request openKeyCursor(Object range, [String direction]) { |
| 1063 if (direction != null) { | 1048 if (direction != null) { |
| 1064 return wrap_jso(_blink.BlinkIDBObjectStore.instance.openKeyCursor_Callback
_2_(unwrap_jso(this), range, direction)); | 1049 return _blink.BlinkIDBObjectStore.instance.openKeyCursor_Callback_2_(this,
range, direction); |
| 1065 } | 1050 } |
| 1066 return wrap_jso(_blink.BlinkIDBObjectStore.instance.openKeyCursor_Callback_1
_(unwrap_jso(this), range)); | 1051 return _blink.BlinkIDBObjectStore.instance.openKeyCursor_Callback_1_(this, r
ange); |
| 1067 } | 1052 } |
| 1068 | 1053 |
| 1069 Request _put(Object value, [Object key]) { | 1054 Request _put(Object value, [Object key]) { |
| 1070 if (key != null) { | 1055 if (key != null) { |
| 1071 return wrap_jso(_blink.BlinkIDBObjectStore.instance.put_Callback_2_(unwrap
_jso(this), convertDartToNative_SerializedScriptValue(value), convertDartToNativ
e_SerializedScriptValue(key))); | 1056 return _blink.BlinkIDBObjectStore.instance.put_Callback_2_(this, convertDa
rtToNative_SerializedScriptValue(value), convertDartToNative_SerializedScriptVal
ue(key)); |
| 1072 } | 1057 } |
| 1073 return wrap_jso(_blink.BlinkIDBObjectStore.instance.put_Callback_1_(unwrap_j
so(this), convertDartToNative_SerializedScriptValue(value))); | 1058 return _blink.BlinkIDBObjectStore.instance.put_Callback_1_(this, convertDart
ToNative_SerializedScriptValue(value)); |
| 1074 } | 1059 } |
| 1075 | 1060 |
| 1076 | 1061 |
| 1077 /** | 1062 /** |
| 1078 * Helper for iterating over cursors in a request. | 1063 * Helper for iterating over cursors in a request. |
| 1079 */ | 1064 */ |
| 1080 static Stream<Cursor> _cursorStreamFromResult(Request request, | 1065 static Stream<Cursor> _cursorStreamFromResult(Request request, |
| 1081 bool autoAdvance) { | 1066 bool autoAdvance) { |
| 1082 // TODO: need to guarantee that the controller provides the values | 1067 // TODO: need to guarantee that the controller provides the values |
| 1083 // immediately as waiting until the next tick will cause the transaction to | 1068 // immediately as waiting until the next tick will cause the transaction to |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1199 } | 1184 } |
| 1200 | 1185 |
| 1201 external factory Request._internalWrap(); | 1186 external factory Request._internalWrap(); |
| 1202 | 1187 |
| 1203 @Deprecated("Internal Use Only") | 1188 @Deprecated("Internal Use Only") |
| 1204 Request.internal_() : super.internal_(); | 1189 Request.internal_() : super.internal_(); |
| 1205 | 1190 |
| 1206 | 1191 |
| 1207 @DomName('IDBRequest.error') | 1192 @DomName('IDBRequest.error') |
| 1208 @DocsEditable() | 1193 @DocsEditable() |
| 1209 DomError get error => wrap_jso(_blink.BlinkIDBRequest.instance.error_Getter_(u
nwrap_jso(this))); | 1194 DomError get error => _blink.BlinkIDBRequest.instance.error_Getter_(this); |
| 1210 | 1195 |
| 1211 @DomName('IDBRequest.readyState') | 1196 @DomName('IDBRequest.readyState') |
| 1212 @DocsEditable() | 1197 @DocsEditable() |
| 1213 String get readyState => _blink.BlinkIDBRequest.instance.readyState_Getter_(un
wrap_jso(this)); | 1198 String get readyState => _blink.BlinkIDBRequest.instance.readyState_Getter_(th
is); |
| 1214 | 1199 |
| 1215 @DomName('IDBRequest.result') | 1200 @DomName('IDBRequest.result') |
| 1216 @DocsEditable() | 1201 @DocsEditable() |
| 1217 Object get result => wrap_jso(_blink.BlinkIDBRequest.instance.result_Getter_(u
nwrap_jso(this))); | 1202 Object get result => (_blink.BlinkIDBRequest.instance.result_Getter_(this)); |
| 1218 | 1203 |
| 1219 @DomName('IDBRequest.source') | 1204 @DomName('IDBRequest.source') |
| 1220 @DocsEditable() | 1205 @DocsEditable() |
| 1221 Object get source => wrap_jso(_blink.BlinkIDBRequest.instance.source_Getter_(u
nwrap_jso(this))); | 1206 Object get source => (_blink.BlinkIDBRequest.instance.source_Getter_(this)); |
| 1222 | 1207 |
| 1223 @DomName('IDBRequest.transaction') | 1208 @DomName('IDBRequest.transaction') |
| 1224 @DocsEditable() | 1209 @DocsEditable() |
| 1225 Transaction get transaction => wrap_jso(_blink.BlinkIDBRequest.instance.transa
ction_Getter_(unwrap_jso(this))); | 1210 Transaction get transaction => _blink.BlinkIDBRequest.instance.transaction_Get
ter_(this); |
| 1226 | 1211 |
| 1227 /// Stream of `error` events handled by this [Request]. | 1212 /// Stream of `error` events handled by this [Request]. |
| 1228 @DomName('IDBRequest.onerror') | 1213 @DomName('IDBRequest.onerror') |
| 1229 @DocsEditable() | 1214 @DocsEditable() |
| 1230 Stream<Event> get onError => errorEvent.forTarget(this); | 1215 Stream<Event> get onError => errorEvent.forTarget(this); |
| 1231 | 1216 |
| 1232 /// Stream of `success` events handled by this [Request]. | 1217 /// Stream of `success` events handled by this [Request]. |
| 1233 @DomName('IDBRequest.onsuccess') | 1218 @DomName('IDBRequest.onsuccess') |
| 1234 @DocsEditable() | 1219 @DocsEditable() |
| 1235 Stream<Event> get onSuccess => successEvent.forTarget(this); | 1220 Stream<Event> get onSuccess => successEvent.forTarget(this); |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1312 } | 1297 } |
| 1313 | 1298 |
| 1314 external factory Transaction._internalWrap(); | 1299 external factory Transaction._internalWrap(); |
| 1315 | 1300 |
| 1316 @Deprecated("Internal Use Only") | 1301 @Deprecated("Internal Use Only") |
| 1317 Transaction.internal_() : super.internal_(); | 1302 Transaction.internal_() : super.internal_(); |
| 1318 | 1303 |
| 1319 | 1304 |
| 1320 @DomName('IDBTransaction.db') | 1305 @DomName('IDBTransaction.db') |
| 1321 @DocsEditable() | 1306 @DocsEditable() |
| 1322 Database get db => wrap_jso(_blink.BlinkIDBTransaction.instance.db_Getter_(unw
rap_jso(this))); | 1307 Database get db => _blink.BlinkIDBTransaction.instance.db_Getter_(this); |
| 1323 | 1308 |
| 1324 @DomName('IDBTransaction.error') | 1309 @DomName('IDBTransaction.error') |
| 1325 @DocsEditable() | 1310 @DocsEditable() |
| 1326 DomError get error => wrap_jso(_blink.BlinkIDBTransaction.instance.error_Gette
r_(unwrap_jso(this))); | 1311 DomError get error => _blink.BlinkIDBTransaction.instance.error_Getter_(this); |
| 1327 | 1312 |
| 1328 @DomName('IDBTransaction.mode') | 1313 @DomName('IDBTransaction.mode') |
| 1329 @DocsEditable() | 1314 @DocsEditable() |
| 1330 String get mode => _blink.BlinkIDBTransaction.instance.mode_Getter_(unwrap_jso
(this)); | 1315 String get mode => _blink.BlinkIDBTransaction.instance.mode_Getter_(this); |
| 1331 | 1316 |
| 1332 @DomName('IDBTransaction.objectStoreNames') | 1317 @DomName('IDBTransaction.objectStoreNames') |
| 1333 @DocsEditable() | 1318 @DocsEditable() |
| 1334 @Experimental() // untriaged | 1319 @Experimental() // untriaged |
| 1335 List<String> get objectStoreNames => wrap_jso(_blink.BlinkIDBTransaction.insta
nce.objectStoreNames_Getter_(unwrap_jso(this))); | 1320 List<String> get objectStoreNames => _blink.BlinkIDBTransaction.instance.objec
tStoreNames_Getter_(this); |
| 1336 | 1321 |
| 1337 @DomName('IDBTransaction.abort') | 1322 @DomName('IDBTransaction.abort') |
| 1338 @DocsEditable() | 1323 @DocsEditable() |
| 1339 void abort() => _blink.BlinkIDBTransaction.instance.abort_Callback_0_(unwrap_j
so(this)); | 1324 void abort() => _blink.BlinkIDBTransaction.instance.abort_Callback_0_(this); |
| 1340 | 1325 |
| 1341 @DomName('IDBTransaction.objectStore') | 1326 @DomName('IDBTransaction.objectStore') |
| 1342 @DocsEditable() | 1327 @DocsEditable() |
| 1343 ObjectStore objectStore(String name) => wrap_jso(_blink.BlinkIDBTransaction.in
stance.objectStore_Callback_1_(unwrap_jso(this), name)); | 1328 ObjectStore objectStore(String name) => _blink.BlinkIDBTransaction.instance.ob
jectStore_Callback_1_(this, name); |
| 1344 | 1329 |
| 1345 /// Stream of `abort` events handled by this [Transaction]. | 1330 /// Stream of `abort` events handled by this [Transaction]. |
| 1346 @DomName('IDBTransaction.onabort') | 1331 @DomName('IDBTransaction.onabort') |
| 1347 @DocsEditable() | 1332 @DocsEditable() |
| 1348 Stream<Event> get onAbort => abortEvent.forTarget(this); | 1333 Stream<Event> get onAbort => abortEvent.forTarget(this); |
| 1349 | 1334 |
| 1350 /// Stream of `complete` events handled by this [Transaction]. | 1335 /// Stream of `complete` events handled by this [Transaction]. |
| 1351 @DomName('IDBTransaction.oncomplete') | 1336 @DomName('IDBTransaction.oncomplete') |
| 1352 @DocsEditable() | 1337 @DocsEditable() |
| 1353 Stream<Event> get onComplete => completeEvent.forTarget(this); | 1338 Stream<Event> get onComplete => completeEvent.forTarget(this); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 1370 @Unstable() | 1355 @Unstable() |
| 1371 class VersionChangeEvent extends Event { | 1356 class VersionChangeEvent extends Event { |
| 1372 // To suppress missing implicit constructor warnings. | 1357 // To suppress missing implicit constructor warnings. |
| 1373 factory VersionChangeEvent._() { throw new UnsupportedError("Not supported");
} | 1358 factory VersionChangeEvent._() { throw new UnsupportedError("Not supported");
} |
| 1374 | 1359 |
| 1375 @DomName('IDBVersionChangeEvent.IDBVersionChangeEvent') | 1360 @DomName('IDBVersionChangeEvent.IDBVersionChangeEvent') |
| 1376 @DocsEditable() | 1361 @DocsEditable() |
| 1377 factory VersionChangeEvent(String type, [Map eventInitDict]) { | 1362 factory VersionChangeEvent(String type, [Map eventInitDict]) { |
| 1378 if (eventInitDict != null) { | 1363 if (eventInitDict != null) { |
| 1379 var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict); | 1364 var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict); |
| 1380 return wrap_jso(_blink.BlinkIDBVersionChangeEvent.instance.constructorCall
back_2_(type, eventInitDict_1)); | 1365 return _blink.BlinkIDBVersionChangeEvent.instance.constructorCallback_2_(t
ype, eventInitDict_1); |
| 1381 } | 1366 } |
| 1382 return wrap_jso(_blink.BlinkIDBVersionChangeEvent.instance.constructorCallba
ck_1_(type)); | 1367 return _blink.BlinkIDBVersionChangeEvent.instance.constructorCallback_1_(typ
e); |
| 1383 } | 1368 } |
| 1384 | 1369 |
| 1385 | 1370 |
| 1386 @Deprecated("Internal Use Only") | 1371 @Deprecated("Internal Use Only") |
| 1387 static VersionChangeEvent internalCreateVersionChangeEvent() { | 1372 static VersionChangeEvent internalCreateVersionChangeEvent() { |
| 1388 return new VersionChangeEvent._internalWrap(); | 1373 return new VersionChangeEvent._internalWrap(); |
| 1389 } | 1374 } |
| 1390 | 1375 |
| 1391 external factory VersionChangeEvent._internalWrap(); | 1376 external factory VersionChangeEvent._internalWrap(); |
| 1392 | 1377 |
| 1393 @Deprecated("Internal Use Only") | 1378 @Deprecated("Internal Use Only") |
| 1394 VersionChangeEvent.internal_() : super.internal_(); | 1379 VersionChangeEvent.internal_() : super.internal_(); |
| 1395 | 1380 |
| 1396 | 1381 |
| 1397 @DomName('IDBVersionChangeEvent.dataLoss') | 1382 @DomName('IDBVersionChangeEvent.dataLoss') |
| 1398 @DocsEditable() | 1383 @DocsEditable() |
| 1399 @Experimental() // untriaged | 1384 @Experimental() // untriaged |
| 1400 String get dataLoss => _blink.BlinkIDBVersionChangeEvent.instance.dataLoss_Get
ter_(unwrap_jso(this)); | 1385 String get dataLoss => _blink.BlinkIDBVersionChangeEvent.instance.dataLoss_Get
ter_(this); |
| 1401 | 1386 |
| 1402 @DomName('IDBVersionChangeEvent.dataLossMessage') | 1387 @DomName('IDBVersionChangeEvent.dataLossMessage') |
| 1403 @DocsEditable() | 1388 @DocsEditable() |
| 1404 @Experimental() // untriaged | 1389 @Experimental() // untriaged |
| 1405 String get dataLossMessage => _blink.BlinkIDBVersionChangeEvent.instance.dataL
ossMessage_Getter_(unwrap_jso(this)); | 1390 String get dataLossMessage => _blink.BlinkIDBVersionChangeEvent.instance.dataL
ossMessage_Getter_(this); |
| 1406 | 1391 |
| 1407 @DomName('IDBVersionChangeEvent.newVersion') | 1392 @DomName('IDBVersionChangeEvent.newVersion') |
| 1408 @DocsEditable() | 1393 @DocsEditable() |
| 1409 int get newVersion => _blink.BlinkIDBVersionChangeEvent.instance.newVersion_Ge
tter_(unwrap_jso(this)); | 1394 int get newVersion => _blink.BlinkIDBVersionChangeEvent.instance.newVersion_Ge
tter_(this); |
| 1410 | 1395 |
| 1411 @DomName('IDBVersionChangeEvent.oldVersion') | 1396 @DomName('IDBVersionChangeEvent.oldVersion') |
| 1412 @DocsEditable() | 1397 @DocsEditable() |
| 1413 int get oldVersion => _blink.BlinkIDBVersionChangeEvent.instance.oldVersion_Ge
tter_(unwrap_jso(this)); | 1398 int get oldVersion => _blink.BlinkIDBVersionChangeEvent.instance.oldVersion_Ge
tter_(this); |
| 1414 | 1399 |
| 1415 } | 1400 } |
| OLD | NEW |