| OLD | NEW |
| 1 library dart.dom.indexed_db; | 1 library dart.dom.indexed_db; |
| 2 | 2 |
| 3 import 'dart:async'; | 3 import 'dart:async'; |
| 4 import 'dart:html'; | 4 import 'dart:html'; |
| 5 import 'dart:html_common'; | 5 import 'dart:html_common'; |
| 6 import 'dart:nativewrappers'; | 6 import 'dart:nativewrappers'; |
| 7 import 'dart:blink' as blink; |
| 7 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 8 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 8 // for details. All rights reserved. Use of this source code is governed by a | 9 // for details. All rights reserved. Use of this source code is governed by a |
| 9 // BSD-style license that can be found in the LICENSE file. | 10 // BSD-style license that can be found in the LICENSE file. |
| 10 | 11 |
| 11 // DO NOT EDIT | 12 // DO NOT EDIT |
| 12 // Auto-generated dart:indexed_db library. | 13 // Auto-generated dart:indexed_db library. |
| 13 | 14 |
| 14 | 15 |
| 15 | 16 |
| 16 | 17 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 } catch (e, stacktrace) { | 58 } catch (e, stacktrace) { |
| 58 return new Future.error(e, stacktrace); | 59 return new Future.error(e, stacktrace); |
| 59 } | 60 } |
| 60 } | 61 } |
| 61 | 62 |
| 62 // To suppress missing implicit constructor warnings. | 63 // To suppress missing implicit constructor warnings. |
| 63 factory Cursor._() { throw new UnsupportedError("Not supported"); } | 64 factory Cursor._() { throw new UnsupportedError("Not supported"); } |
| 64 | 65 |
| 65 @DomName('IDBCursor.direction') | 66 @DomName('IDBCursor.direction') |
| 66 @DocsEditable() | 67 @DocsEditable() |
| 67 String get direction native "IDBCursor_direction_Getter"; | 68 String get direction => blink.Native_IDBCursor_direction_Getter(this); |
| 68 | 69 |
| 69 @DomName('IDBCursor.key') | 70 @DomName('IDBCursor.key') |
| 70 @DocsEditable() | 71 @DocsEditable() |
| 71 Object get key native "IDBCursor_key_Getter"; | 72 Object get key => blink.Native_IDBCursor_key_Getter(this); |
| 72 | 73 |
| 73 @DomName('IDBCursor.primaryKey') | 74 @DomName('IDBCursor.primaryKey') |
| 74 @DocsEditable() | 75 @DocsEditable() |
| 75 Object get primaryKey native "IDBCursor_primaryKey_Getter"; | 76 Object get primaryKey => blink.Native_IDBCursor_primaryKey_Getter(this); |
| 76 | 77 |
| 77 @DomName('IDBCursor.source') | 78 @DomName('IDBCursor.source') |
| 78 @DocsEditable() | 79 @DocsEditable() |
| 79 Object get source native "IDBCursor_source_Getter"; | 80 Object get source => blink.Native_IDBCursor_source_Getter(this); |
| 80 | 81 |
| 81 @DomName('IDBCursor.advance') | 82 @DomName('IDBCursor.advance') |
| 82 @DocsEditable() | 83 @DocsEditable() |
| 83 void advance(int count) native "IDBCursor_advance_Callback"; | 84 void advance(int count) => blink.Native_IDBCursor_advance_Callback(this, count
); |
| 84 | 85 |
| 85 @DomName('IDBCursor.continuePrimaryKey') | 86 @DomName('IDBCursor.continuePrimaryKey') |
| 86 @DocsEditable() | 87 @DocsEditable() |
| 87 @Experimental() // untriaged | 88 @Experimental() // untriaged |
| 88 void continuePrimaryKey(Object key, Object primaryKey) native "IDBCursor_conti
nuePrimaryKey_Callback"; | 89 void continuePrimaryKey(Object key, Object primaryKey) => blink.Native_IDBCurs
or_continuePrimaryKey_Callback(this, key, primaryKey); |
| 89 | 90 |
| 90 @DomName('IDBCursor.delete') | 91 @DomName('IDBCursor.delete') |
| 91 @DocsEditable() | 92 @DocsEditable() |
| 92 Request _delete() native "IDBCursor_delete_Callback"; | 93 Request _delete() => blink.Native_IDBCursor_delete_Callback(this); |
| 93 | 94 |
| 94 @DomName('IDBCursor.next') | 95 @DomName('IDBCursor.next') |
| 95 @DocsEditable() | 96 @DocsEditable() |
| 96 @Experimental() // non-standard | 97 @Experimental() // non-standard |
| 97 void next([Object key]) native "IDBCursor_next_Callback"; | 98 void next([Object key]) => blink.Native_IDBCursor_next_Callback(this, key); |
| 98 | 99 |
| 99 @DomName('IDBCursor.update') | 100 @DomName('IDBCursor.update') |
| 100 @DocsEditable() | 101 @DocsEditable() |
| 101 Request _update(Object value) native "IDBCursor_update_Callback"; | 102 Request _update(Object value) => blink.Native_IDBCursor_update_Callback(this,
value); |
| 102 | 103 |
| 103 } | 104 } |
| 104 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 105 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 105 // for details. All rights reserved. Use of this source code is governed by a | 106 // for details. All rights reserved. Use of this source code is governed by a |
| 106 // BSD-style license that can be found in the LICENSE file. | 107 // BSD-style license that can be found in the LICENSE file. |
| 107 | 108 |
| 108 // WARNING: Do not edit - generated code. | 109 // WARNING: Do not edit - generated code. |
| 109 | 110 |
| 110 | 111 |
| 111 @DocsEditable() | 112 @DocsEditable() |
| 112 @DomName('IDBCursorWithValue') | 113 @DomName('IDBCursorWithValue') |
| 113 @Unstable() | 114 @Unstable() |
| 114 class CursorWithValue extends Cursor { | 115 class CursorWithValue extends Cursor { |
| 115 // To suppress missing implicit constructor warnings. | 116 // To suppress missing implicit constructor warnings. |
| 116 factory CursorWithValue._() { throw new UnsupportedError("Not supported"); } | 117 factory CursorWithValue._() { throw new UnsupportedError("Not supported"); } |
| 117 | 118 |
| 118 @DomName('IDBCursorWithValue.value') | 119 @DomName('IDBCursorWithValue.value') |
| 119 @DocsEditable() | 120 @DocsEditable() |
| 120 Object get value native "IDBCursorWithValue_value_Getter"; | 121 Object get value => blink.Native_IDBCursorWithValue_value_Getter(this); |
| 121 | 122 |
| 122 } | 123 } |
| 123 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 124 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 124 // for details. All rights reserved. Use of this source code is governed by a | 125 // for details. All rights reserved. Use of this source code is governed by a |
| 125 // BSD-style license that can be found in the LICENSE file. | 126 // BSD-style license that can be found in the LICENSE file. |
| 126 | 127 |
| 127 | 128 |
| 128 @DocsEditable() | 129 @DocsEditable() |
| 129 /** | 130 /** |
| 130 * An indexed database object for storing client-side data | 131 * An indexed database object for storing client-side data |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 * handlers that are not necessarily instances of [Database]. | 194 * handlers that are not necessarily instances of [Database]. |
| 194 * | 195 * |
| 195 * See [EventStreamProvider] for usage information. | 196 * See [EventStreamProvider] for usage information. |
| 196 */ | 197 */ |
| 197 @DomName('IDBDatabase.versionchangeEvent') | 198 @DomName('IDBDatabase.versionchangeEvent') |
| 198 @DocsEditable() | 199 @DocsEditable() |
| 199 static const EventStreamProvider<VersionChangeEvent> versionChangeEvent = cons
t EventStreamProvider<VersionChangeEvent>('versionchange'); | 200 static const EventStreamProvider<VersionChangeEvent> versionChangeEvent = cons
t EventStreamProvider<VersionChangeEvent>('versionchange'); |
| 200 | 201 |
| 201 @DomName('IDBDatabase.name') | 202 @DomName('IDBDatabase.name') |
| 202 @DocsEditable() | 203 @DocsEditable() |
| 203 String get name native "IDBDatabase_name_Getter"; | 204 String get name => blink.Native_IDBDatabase_name_Getter(this); |
| 204 | 205 |
| 205 @DomName('IDBDatabase.objectStoreNames') | 206 @DomName('IDBDatabase.objectStoreNames') |
| 206 @DocsEditable() | 207 @DocsEditable() |
| 207 List<String> get objectStoreNames native "IDBDatabase_objectStoreNames_Getter"
; | 208 List<String> get objectStoreNames => blink.Native_IDBDatabase_objectStoreNames
_Getter(this); |
| 208 | 209 |
| 209 @DomName('IDBDatabase.version') | 210 @DomName('IDBDatabase.version') |
| 210 @DocsEditable() | 211 @DocsEditable() |
| 211 Object get version native "IDBDatabase_version_Getter"; | 212 Object get version => blink.Native_IDBDatabase_version_Getter(this); |
| 212 | 213 |
| 213 @DomName('IDBDatabase.close') | 214 @DomName('IDBDatabase.close') |
| 214 @DocsEditable() | 215 @DocsEditable() |
| 215 void close() native "IDBDatabase_close_Callback"; | 216 void close() => blink.Native_IDBDatabase_close_Callback(this); |
| 216 | 217 |
| 217 @DomName('IDBDatabase.createObjectStore') | 218 @DomName('IDBDatabase.createObjectStore') |
| 218 @DocsEditable() | 219 @DocsEditable() |
| 219 ObjectStore _createObjectStore(String name, [Map options]) native "IDBDatabase
_createObjectStore_Callback"; | 220 ObjectStore _createObjectStore(String name, [Map options]) => blink.Native_IDB
Database_createObjectStore_Callback(this, name, options); |
| 220 | 221 |
| 221 @DomName('IDBDatabase.deleteObjectStore') | 222 @DomName('IDBDatabase.deleteObjectStore') |
| 222 @DocsEditable() | 223 @DocsEditable() |
| 223 void deleteObjectStore(String name) native "IDBDatabase_deleteObjectStore_Call
back"; | 224 void deleteObjectStore(String name) => blink.Native_IDBDatabase_deleteObjectSt
ore_Callback(this, name); |
| 224 | 225 |
| 225 Transaction transaction(storeName_OR_storeNames, String mode) { | 226 Transaction transaction(storeName_OR_storeNames, String mode) { |
| 226 if ((mode is String || mode == null) && (storeName_OR_storeNames is List<Str
ing> || storeName_OR_storeNames == null)) { | 227 if ((mode is String || mode == null) && (storeName_OR_storeNames is List<Str
ing> || storeName_OR_storeNames == null)) { |
| 227 return _transaction_1(storeName_OR_storeNames, mode); | 228 return _transaction_1(storeName_OR_storeNames, mode); |
| 228 } | 229 } |
| 229 if ((mode is String || mode == null) && (storeName_OR_storeNames is List<Str
ing> || storeName_OR_storeNames == null)) { | 230 if ((mode is String || mode == null) && (storeName_OR_storeNames is List<Str
ing> || storeName_OR_storeNames == null)) { |
| 230 return _transaction_2(storeName_OR_storeNames, mode); | 231 return _transaction_2(storeName_OR_storeNames, mode); |
| 231 } | 232 } |
| 232 if ((mode is String || mode == null) && (storeName_OR_storeNames is String |
| storeName_OR_storeNames == null)) { | 233 if ((mode is String || mode == null) && (storeName_OR_storeNames is String |
| storeName_OR_storeNames == null)) { |
| 233 return _transaction_3(storeName_OR_storeNames, mode); | 234 return _transaction_3(storeName_OR_storeNames, mode); |
| 234 } | 235 } |
| 235 throw new ArgumentError("Incorrect number or type of arguments"); | 236 throw new ArgumentError("Incorrect number or type of arguments"); |
| 236 } | 237 } |
| 237 | 238 |
| 238 Transaction _transaction_1(storeName_OR_storeNames, mode) native "IDBDatabase_
_transaction_1_Callback"; | 239 Transaction _transaction_1(storeName_OR_storeNames, mode) => blink.Native_IDBD
atabase__transaction_1_Callback(this, storeName_OR_storeNames, mode); |
| 239 | 240 |
| 240 Transaction _transaction_2(storeName_OR_storeNames, mode) native "IDBDatabase_
_transaction_2_Callback"; | 241 Transaction _transaction_2(storeName_OR_storeNames, mode) => blink.Native_IDBD
atabase__transaction_2_Callback(this, storeName_OR_storeNames, mode); |
| 241 | 242 |
| 242 Transaction _transaction_3(storeName_OR_storeNames, mode) native "IDBDatabase_
_transaction_3_Callback"; | 243 Transaction _transaction_3(storeName_OR_storeNames, mode) => blink.Native_IDBD
atabase__transaction_3_Callback(this, storeName_OR_storeNames, mode); |
| 243 | 244 |
| 244 @DomName('IDBDatabase.transactionList') | 245 @DomName('IDBDatabase.transactionList') |
| 245 @DocsEditable() | 246 @DocsEditable() |
| 246 Transaction transactionList(List<String> storeNames, String mode) native "IDBD
atabase_transactionList_Callback"; | 247 Transaction transactionList(List<String> storeNames, String mode) => blink.Nat
ive_IDBDatabase_transactionList_Callback(this, storeNames, mode); |
| 247 | 248 |
| 248 @DomName('IDBDatabase.transactionStore') | 249 @DomName('IDBDatabase.transactionStore') |
| 249 @DocsEditable() | 250 @DocsEditable() |
| 250 Transaction transactionStore(String storeName, String mode) native "IDBDatabas
e_transactionStore_Callback"; | 251 Transaction transactionStore(String storeName, String mode) => blink.Native_ID
BDatabase_transactionStore_Callback(this, storeName, mode); |
| 251 | 252 |
| 252 @DomName('IDBDatabase.transactionStores') | 253 @DomName('IDBDatabase.transactionStores') |
| 253 @DocsEditable() | 254 @DocsEditable() |
| 254 Transaction transactionStores(List<String> storeNames, String mode) native "ID
BDatabase_transactionStores_Callback"; | 255 Transaction transactionStores(List<String> storeNames, String mode) => blink.N
ative_IDBDatabase_transactionStores_Callback(this, storeNames, mode); |
| 255 | 256 |
| 256 @DomName('IDBDatabase.addEventListener') | 257 @DomName('IDBDatabase.addEventListener') |
| 257 @DocsEditable() | 258 @DocsEditable() |
| 258 void addEventListener(String type, EventListener listener, [bool useCapture])
native "IDBDatabase_addEventListener_Callback"; | 259 void addEventListener(String type, EventListener listener, [bool useCapture])
=> blink.Native_IDBDatabase_addEventListener_Callback(this, type, listener, useC
apture); |
| 259 | 260 |
| 260 @DomName('IDBDatabase.dispatchEvent') | 261 @DomName('IDBDatabase.dispatchEvent') |
| 261 @DocsEditable() | 262 @DocsEditable() |
| 262 bool dispatchEvent(Event event) native "IDBDatabase_dispatchEvent_Callback"; | 263 bool dispatchEvent(Event event) => blink.Native_IDBDatabase_dispatchEvent_Call
back(this, event); |
| 263 | 264 |
| 264 @DomName('IDBDatabase.removeEventListener') | 265 @DomName('IDBDatabase.removeEventListener') |
| 265 @DocsEditable() | 266 @DocsEditable() |
| 266 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native "IDBDatabase_removeEventListener_Callback"; | 267 void removeEventListener(String type, EventListener listener, [bool useCapture
]) => blink.Native_IDBDatabase_removeEventListener_Callback(this, type, listener
, useCapture); |
| 267 | 268 |
| 268 /// Stream of `abort` events handled by this [Database]. | 269 /// Stream of `abort` events handled by this [Database]. |
| 269 @DomName('IDBDatabase.onabort') | 270 @DomName('IDBDatabase.onabort') |
| 270 @DocsEditable() | 271 @DocsEditable() |
| 271 Stream<Event> get onAbort => abortEvent.forTarget(this); | 272 Stream<Event> get onAbort => abortEvent.forTarget(this); |
| 272 | 273 |
| 273 /// Stream of `close` events handled by this [Database]. | 274 /// Stream of `close` events handled by this [Database]. |
| 274 @DomName('IDBDatabase.onclose') | 275 @DomName('IDBDatabase.onclose') |
| 275 @DocsEditable() | 276 @DocsEditable() |
| 276 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=22540 | 277 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=22540 |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 */ | 373 */ |
| 373 bool get supportsDatabaseNames { | 374 bool get supportsDatabaseNames { |
| 374 return true; | 375 return true; |
| 375 } | 376 } |
| 376 | 377 |
| 377 // To suppress missing implicit constructor warnings. | 378 // To suppress missing implicit constructor warnings. |
| 378 factory IdbFactory._() { throw new UnsupportedError("Not supported"); } | 379 factory IdbFactory._() { throw new UnsupportedError("Not supported"); } |
| 379 | 380 |
| 380 @DomName('IDBFactory.cmp') | 381 @DomName('IDBFactory.cmp') |
| 381 @DocsEditable() | 382 @DocsEditable() |
| 382 int cmp(Object first, Object second) native "IDBFactory_cmp_Callback"; | 383 int cmp(Object first, Object second) => blink.Native_IDBFactory_cmp_Callback(t
his, first, second); |
| 383 | 384 |
| 384 @DomName('IDBFactory.deleteDatabase') | 385 @DomName('IDBFactory.deleteDatabase') |
| 385 @DocsEditable() | 386 @DocsEditable() |
| 386 OpenDBRequest _deleteDatabase(String name) native "IDBFactory_deleteDatabase_C
allback"; | 387 OpenDBRequest _deleteDatabase(String name) => blink.Native_IDBFactory_deleteDa
tabase_Callback(this, name); |
| 387 | 388 |
| 388 OpenDBRequest _open(String name, [int version]) { | 389 OpenDBRequest _open(String name, [int version]) { |
| 389 if (version != null) { | 390 if (version != null) { |
| 390 return _open_1(name, version); | 391 return _open_1(name, version); |
| 391 } | 392 } |
| 392 return _open_2(name); | 393 return _open_2(name); |
| 393 } | 394 } |
| 394 | 395 |
| 395 OpenDBRequest _open_1(name, version) native "IDBFactory__open_1_Callback"; | 396 OpenDBRequest _open_1(name, version) => blink.Native_IDBFactory__open_1_Callba
ck(this, name, version); |
| 396 | 397 |
| 397 OpenDBRequest _open_2(name) native "IDBFactory__open_2_Callback"; | 398 OpenDBRequest _open_2(name) => blink.Native_IDBFactory__open_2_Callback(this,
name); |
| 398 | 399 |
| 399 @DomName('IDBFactory.webkitGetDatabaseNames') | 400 @DomName('IDBFactory.webkitGetDatabaseNames') |
| 400 @DocsEditable() | 401 @DocsEditable() |
| 401 @SupportedBrowser(SupportedBrowser.CHROME) | 402 @SupportedBrowser(SupportedBrowser.CHROME) |
| 402 @SupportedBrowser(SupportedBrowser.SAFARI) | 403 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 403 @Experimental() | 404 @Experimental() |
| 404 Request _webkitGetDatabaseNames() native "IDBFactory_webkitGetDatabaseNames_Ca
llback"; | 405 Request _webkitGetDatabaseNames() => blink.Native_IDBFactory_webkitGetDatabase
Names_Callback(this); |
| 405 | 406 |
| 406 } | 407 } |
| 407 | 408 |
| 408 | 409 |
| 409 /** | 410 /** |
| 410 * Ties a request to a completer, so the completer is completed when it succeeds | 411 * Ties a request to a completer, so the completer is completed when it succeeds |
| 411 * and errors out when the request errors. | 412 * and errors out when the request errors. |
| 412 */ | 413 */ |
| 413 Future _completeRequest(Request request) { | 414 Future _completeRequest(Request request) { |
| 414 var completer = new Completer.sync(); | 415 var completer = new Completer.sync(); |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 request = _openKeyCursor(key_OR_range, direction); | 513 request = _openKeyCursor(key_OR_range, direction); |
| 513 } | 514 } |
| 514 return ObjectStore._cursorStreamFromResult(request, autoAdvance); | 515 return ObjectStore._cursorStreamFromResult(request, autoAdvance); |
| 515 } | 516 } |
| 516 | 517 |
| 517 // To suppress missing implicit constructor warnings. | 518 // To suppress missing implicit constructor warnings. |
| 518 factory Index._() { throw new UnsupportedError("Not supported"); } | 519 factory Index._() { throw new UnsupportedError("Not supported"); } |
| 519 | 520 |
| 520 @DomName('IDBIndex.keyPath') | 521 @DomName('IDBIndex.keyPath') |
| 521 @DocsEditable() | 522 @DocsEditable() |
| 522 Object get keyPath native "IDBIndex_keyPath_Getter"; | 523 Object get keyPath => blink.Native_IDBIndex_keyPath_Getter(this); |
| 523 | 524 |
| 524 @DomName('IDBIndex.multiEntry') | 525 @DomName('IDBIndex.multiEntry') |
| 525 @DocsEditable() | 526 @DocsEditable() |
| 526 bool get multiEntry native "IDBIndex_multiEntry_Getter"; | 527 bool get multiEntry => blink.Native_IDBIndex_multiEntry_Getter(this); |
| 527 | 528 |
| 528 @DomName('IDBIndex.name') | 529 @DomName('IDBIndex.name') |
| 529 @DocsEditable() | 530 @DocsEditable() |
| 530 String get name native "IDBIndex_name_Getter"; | 531 String get name => blink.Native_IDBIndex_name_Getter(this); |
| 531 | 532 |
| 532 @DomName('IDBIndex.objectStore') | 533 @DomName('IDBIndex.objectStore') |
| 533 @DocsEditable() | 534 @DocsEditable() |
| 534 ObjectStore get objectStore native "IDBIndex_objectStore_Getter"; | 535 ObjectStore get objectStore => blink.Native_IDBIndex_objectStore_Getter(this); |
| 535 | 536 |
| 536 @DomName('IDBIndex.unique') | 537 @DomName('IDBIndex.unique') |
| 537 @DocsEditable() | 538 @DocsEditable() |
| 538 bool get unique native "IDBIndex_unique_Getter"; | 539 bool get unique => blink.Native_IDBIndex_unique_Getter(this); |
| 539 | 540 |
| 540 @DomName('IDBIndex.count') | 541 @DomName('IDBIndex.count') |
| 541 @DocsEditable() | 542 @DocsEditable() |
| 542 Request _count(Object key) native "IDBIndex_count_Callback"; | 543 Request _count(Object key) => blink.Native_IDBIndex_count_Callback(this, key); |
| 543 | 544 |
| 544 @DomName('IDBIndex.get') | 545 @DomName('IDBIndex.get') |
| 545 @DocsEditable() | 546 @DocsEditable() |
| 546 Request _get(Object key) native "IDBIndex_get_Callback"; | 547 Request _get(Object key) => blink.Native_IDBIndex_get_Callback(this, key); |
| 547 | 548 |
| 548 @DomName('IDBIndex.getKey') | 549 @DomName('IDBIndex.getKey') |
| 549 @DocsEditable() | 550 @DocsEditable() |
| 550 Request _getKey(Object key) native "IDBIndex_getKey_Callback"; | 551 Request _getKey(Object key) => blink.Native_IDBIndex_getKey_Callback(this, key
); |
| 551 | 552 |
| 552 @DomName('IDBIndex.openCursor') | 553 @DomName('IDBIndex.openCursor') |
| 553 @DocsEditable() | 554 @DocsEditable() |
| 554 Request _openCursor(Object key, [String direction]) native "IDBIndex_openCurso
r_Callback"; | 555 Request _openCursor(Object key, [String direction]) => blink.Native_IDBIndex_o
penCursor_Callback(this, key, direction); |
| 555 | 556 |
| 556 @DomName('IDBIndex.openKeyCursor') | 557 @DomName('IDBIndex.openKeyCursor') |
| 557 @DocsEditable() | 558 @DocsEditable() |
| 558 Request _openKeyCursor(Object key, [String direction]) native "IDBIndex_openKe
yCursor_Callback"; | 559 Request _openKeyCursor(Object key, [String direction]) => blink.Native_IDBInde
x_openKeyCursor_Callback(this, key, direction); |
| 559 | 560 |
| 560 } | 561 } |
| 561 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 562 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 562 // for details. All rights reserved. Use of this source code is governed by a | 563 // for details. All rights reserved. Use of this source code is governed by a |
| 563 // BSD-style license that can be found in the LICENSE file. | 564 // BSD-style license that can be found in the LICENSE file. |
| 564 | 565 |
| 565 | 566 |
| 566 @DomName('IDBKeyRange') | 567 @DomName('IDBKeyRange') |
| 567 @Unstable() | 568 @Unstable() |
| 568 class KeyRange extends NativeFieldWrapperClass2 { | 569 class KeyRange extends NativeFieldWrapperClass2 { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 582 factory KeyRange.bound(/*Key*/ lower, /*Key*/ upper, | 583 factory KeyRange.bound(/*Key*/ lower, /*Key*/ upper, |
| 583 [bool lowerOpen = false, bool upperOpen = false]) => | 584 [bool lowerOpen = false, bool upperOpen = false]) => |
| 584 _KeyRangeFactoryProvider.createKeyRange_bound( | 585 _KeyRangeFactoryProvider.createKeyRange_bound( |
| 585 lower, upper, lowerOpen, upperOpen); | 586 lower, upper, lowerOpen, upperOpen); |
| 586 | 587 |
| 587 // To suppress missing implicit constructor warnings. | 588 // To suppress missing implicit constructor warnings. |
| 588 factory KeyRange._() { throw new UnsupportedError("Not supported"); } | 589 factory KeyRange._() { throw new UnsupportedError("Not supported"); } |
| 589 | 590 |
| 590 @DomName('IDBKeyRange.lower') | 591 @DomName('IDBKeyRange.lower') |
| 591 @DocsEditable() | 592 @DocsEditable() |
| 592 Object get lower native "IDBKeyRange_lower_Getter"; | 593 Object get lower => blink.Native_IDBKeyRange_lower_Getter(this); |
| 593 | 594 |
| 594 @DomName('IDBKeyRange.lowerOpen') | 595 @DomName('IDBKeyRange.lowerOpen') |
| 595 @DocsEditable() | 596 @DocsEditable() |
| 596 bool get lowerOpen native "IDBKeyRange_lowerOpen_Getter"; | 597 bool get lowerOpen => blink.Native_IDBKeyRange_lowerOpen_Getter(this); |
| 597 | 598 |
| 598 @DomName('IDBKeyRange.upper') | 599 @DomName('IDBKeyRange.upper') |
| 599 @DocsEditable() | 600 @DocsEditable() |
| 600 Object get upper native "IDBKeyRange_upper_Getter"; | 601 Object get upper => blink.Native_IDBKeyRange_upper_Getter(this); |
| 601 | 602 |
| 602 @DomName('IDBKeyRange.upperOpen') | 603 @DomName('IDBKeyRange.upperOpen') |
| 603 @DocsEditable() | 604 @DocsEditable() |
| 604 bool get upperOpen native "IDBKeyRange_upperOpen_Getter"; | 605 bool get upperOpen => blink.Native_IDBKeyRange_upperOpen_Getter(this); |
| 605 | 606 |
| 606 @DomName('IDBKeyRange.bound_') | 607 @DomName('IDBKeyRange.bound_') |
| 607 @DocsEditable() | 608 @DocsEditable() |
| 608 @Experimental() // non-standard | 609 @Experimental() // non-standard |
| 609 static KeyRange bound_(Object lower, Object upper, [bool lowerOpen, bool upper
Open]) native "IDBKeyRange_bound__Callback"; | 610 static KeyRange bound_(Object lower, Object upper, [bool lowerOpen, bool upper
Open]) => blink.Native_IDBKeyRange_bound__Callback(lower, upper, lowerOpen, uppe
rOpen); |
| 610 | 611 |
| 611 @DomName('IDBKeyRange.lowerBound_') | 612 @DomName('IDBKeyRange.lowerBound_') |
| 612 @DocsEditable() | 613 @DocsEditable() |
| 613 @Experimental() // non-standard | 614 @Experimental() // non-standard |
| 614 static KeyRange lowerBound_(Object bound, [bool open]) native "IDBKeyRange_low
erBound__Callback"; | 615 static KeyRange lowerBound_(Object bound, [bool open]) => blink.Native_IDBKeyR
ange_lowerBound__Callback(bound, open); |
| 615 | 616 |
| 616 @DomName('IDBKeyRange.only_') | 617 @DomName('IDBKeyRange.only_') |
| 617 @DocsEditable() | 618 @DocsEditable() |
| 618 @Experimental() // non-standard | 619 @Experimental() // non-standard |
| 619 static KeyRange only_(Object value) native "IDBKeyRange_only__Callback"; | 620 static KeyRange only_(Object value) => blink.Native_IDBKeyRange_only__Callback
(value); |
| 620 | 621 |
| 621 @DomName('IDBKeyRange.upperBound_') | 622 @DomName('IDBKeyRange.upperBound_') |
| 622 @DocsEditable() | 623 @DocsEditable() |
| 623 @Experimental() // non-standard | 624 @Experimental() // non-standard |
| 624 static KeyRange upperBound_(Object bound, [bool open]) native "IDBKeyRange_upp
erBound__Callback"; | 625 static KeyRange upperBound_(Object bound, [bool open]) => blink.Native_IDBKeyR
ange_upperBound__Callback(bound, open); |
| 625 | 626 |
| 626 } | 627 } |
| 627 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 628 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 628 // for details. All rights reserved. Use of this source code is governed by a | 629 // for details. All rights reserved. Use of this source code is governed by a |
| 629 // BSD-style license that can be found in the LICENSE file. | 630 // BSD-style license that can be found in the LICENSE file. |
| 630 | 631 |
| 631 | 632 |
| 632 @DomName('IDBObjectStore') | 633 @DomName('IDBObjectStore') |
| 633 @Unstable() | 634 @Unstable() |
| 634 class ObjectStore extends NativeFieldWrapperClass2 { | 635 class ObjectStore extends NativeFieldWrapperClass2 { |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 757 } | 758 } |
| 758 | 759 |
| 759 return _createIndex(name, keyPath, options); | 760 return _createIndex(name, keyPath, options); |
| 760 } | 761 } |
| 761 | 762 |
| 762 // To suppress missing implicit constructor warnings. | 763 // To suppress missing implicit constructor warnings. |
| 763 factory ObjectStore._() { throw new UnsupportedError("Not supported"); } | 764 factory ObjectStore._() { throw new UnsupportedError("Not supported"); } |
| 764 | 765 |
| 765 @DomName('IDBObjectStore.autoIncrement') | 766 @DomName('IDBObjectStore.autoIncrement') |
| 766 @DocsEditable() | 767 @DocsEditable() |
| 767 bool get autoIncrement native "IDBObjectStore_autoIncrement_Getter"; | 768 bool get autoIncrement => blink.Native_IDBObjectStore_autoIncrement_Getter(thi
s); |
| 768 | 769 |
| 769 @DomName('IDBObjectStore.indexNames') | 770 @DomName('IDBObjectStore.indexNames') |
| 770 @DocsEditable() | 771 @DocsEditable() |
| 771 List<String> get indexNames native "IDBObjectStore_indexNames_Getter"; | 772 List<String> get indexNames => blink.Native_IDBObjectStore_indexNames_Getter(t
his); |
| 772 | 773 |
| 773 @DomName('IDBObjectStore.keyPath') | 774 @DomName('IDBObjectStore.keyPath') |
| 774 @DocsEditable() | 775 @DocsEditable() |
| 775 Object get keyPath native "IDBObjectStore_keyPath_Getter"; | 776 Object get keyPath => blink.Native_IDBObjectStore_keyPath_Getter(this); |
| 776 | 777 |
| 777 @DomName('IDBObjectStore.name') | 778 @DomName('IDBObjectStore.name') |
| 778 @DocsEditable() | 779 @DocsEditable() |
| 779 String get name native "IDBObjectStore_name_Getter"; | 780 String get name => blink.Native_IDBObjectStore_name_Getter(this); |
| 780 | 781 |
| 781 @DomName('IDBObjectStore.transaction') | 782 @DomName('IDBObjectStore.transaction') |
| 782 @DocsEditable() | 783 @DocsEditable() |
| 783 Transaction get transaction native "IDBObjectStore_transaction_Getter"; | 784 Transaction get transaction => blink.Native_IDBObjectStore_transaction_Getter(
this); |
| 784 | 785 |
| 785 @DomName('IDBObjectStore.add') | 786 @DomName('IDBObjectStore.add') |
| 786 @DocsEditable() | 787 @DocsEditable() |
| 787 Request _add(Object value, [Object key]) native "IDBObjectStore_add_Callback"; | 788 Request _add(Object value, [Object key]) => blink.Native_IDBObjectStore_add_Ca
llback(this, value, key); |
| 788 | 789 |
| 789 @DomName('IDBObjectStore.clear') | 790 @DomName('IDBObjectStore.clear') |
| 790 @DocsEditable() | 791 @DocsEditable() |
| 791 Request _clear() native "IDBObjectStore_clear_Callback"; | 792 Request _clear() => blink.Native_IDBObjectStore_clear_Callback(this); |
| 792 | 793 |
| 793 @DomName('IDBObjectStore.count') | 794 @DomName('IDBObjectStore.count') |
| 794 @DocsEditable() | 795 @DocsEditable() |
| 795 Request _count(Object key) native "IDBObjectStore_count_Callback"; | 796 Request _count(Object key) => blink.Native_IDBObjectStore_count_Callback(this,
key); |
| 796 | 797 |
| 797 Index _createIndex(String name, keyPath, [Map options]) { | 798 Index _createIndex(String name, keyPath, [Map options]) { |
| 798 if ((options is Map || options == null) && (keyPath is List<String> || keyPa
th == null) && (name is String || name == null)) { | 799 if ((options is Map || options == null) && (keyPath is List<String> || keyPa
th == null) && (name is String || name == null)) { |
| 799 return _createIndex_1(name, keyPath, options); | 800 return _createIndex_1(name, keyPath, options); |
| 800 } | 801 } |
| 801 if ((options is Map || options == null) && (keyPath is String || keyPath ==
null) && (name is String || name == null)) { | 802 if ((options is Map || options == null) && (keyPath is String || keyPath ==
null) && (name is String || name == null)) { |
| 802 return _createIndex_2(name, keyPath, options); | 803 return _createIndex_2(name, keyPath, options); |
| 803 } | 804 } |
| 804 throw new ArgumentError("Incorrect number or type of arguments"); | 805 throw new ArgumentError("Incorrect number or type of arguments"); |
| 805 } | 806 } |
| 806 | 807 |
| 807 Index _createIndex_1(name, keyPath, options) native "IDBObjectStore__createInd
ex_1_Callback"; | 808 Index _createIndex_1(name, keyPath, options) => blink.Native_IDBObjectStore__c
reateIndex_1_Callback(this, name, keyPath, options); |
| 808 | 809 |
| 809 Index _createIndex_2(name, keyPath, options) native "IDBObjectStore__createInd
ex_2_Callback"; | 810 Index _createIndex_2(name, keyPath, options) => blink.Native_IDBObjectStore__c
reateIndex_2_Callback(this, name, keyPath, options); |
| 810 | 811 |
| 811 @DomName('IDBObjectStore.delete') | 812 @DomName('IDBObjectStore.delete') |
| 812 @DocsEditable() | 813 @DocsEditable() |
| 813 Request _delete(Object key) native "IDBObjectStore_delete_Callback"; | 814 Request _delete(Object key) => blink.Native_IDBObjectStore_delete_Callback(thi
s, key); |
| 814 | 815 |
| 815 @DomName('IDBObjectStore.deleteIndex') | 816 @DomName('IDBObjectStore.deleteIndex') |
| 816 @DocsEditable() | 817 @DocsEditable() |
| 817 void deleteIndex(String name) native "IDBObjectStore_deleteIndex_Callback"; | 818 void deleteIndex(String name) => blink.Native_IDBObjectStore_deleteIndex_Callb
ack(this, name); |
| 818 | 819 |
| 819 @DomName('IDBObjectStore.get') | 820 @DomName('IDBObjectStore.get') |
| 820 @DocsEditable() | 821 @DocsEditable() |
| 821 Request _get(Object key) native "IDBObjectStore_get_Callback"; | 822 Request _get(Object key) => blink.Native_IDBObjectStore_get_Callback(this, key
); |
| 822 | 823 |
| 823 @DomName('IDBObjectStore.index') | 824 @DomName('IDBObjectStore.index') |
| 824 @DocsEditable() | 825 @DocsEditable() |
| 825 Index index(String name) native "IDBObjectStore_index_Callback"; | 826 Index index(String name) => blink.Native_IDBObjectStore_index_Callback(this, n
ame); |
| 826 | 827 |
| 827 @DomName('IDBObjectStore.openCursor') | 828 @DomName('IDBObjectStore.openCursor') |
| 828 @DocsEditable() | 829 @DocsEditable() |
| 829 Request _openCursor(Object key, [String direction]) native "IDBObjectStore_ope
nCursor_Callback"; | 830 Request _openCursor(Object key, [String direction]) => blink.Native_IDBObjectS
tore_openCursor_Callback(this, key, direction); |
| 830 | 831 |
| 831 @DomName('IDBObjectStore.openKeyCursor') | 832 @DomName('IDBObjectStore.openKeyCursor') |
| 832 @DocsEditable() | 833 @DocsEditable() |
| 833 @Experimental() // untriaged | 834 @Experimental() // untriaged |
| 834 Request openKeyCursor(Object range, String direction) native "IDBObjectStore_o
penKeyCursor_Callback"; | 835 Request openKeyCursor(Object range, String direction) => blink.Native_IDBObjec
tStore_openKeyCursor_Callback(this, range, direction); |
| 835 | 836 |
| 836 @DomName('IDBObjectStore.put') | 837 @DomName('IDBObjectStore.put') |
| 837 @DocsEditable() | 838 @DocsEditable() |
| 838 Request _put(Object value, [Object key]) native "IDBObjectStore_put_Callback"; | 839 Request _put(Object value, [Object key]) => blink.Native_IDBObjectStore_put_Ca
llback(this, value, key); |
| 839 | 840 |
| 840 | 841 |
| 841 /** | 842 /** |
| 842 * Helper for iterating over cursors in a request. | 843 * Helper for iterating over cursors in a request. |
| 843 */ | 844 */ |
| 844 static Stream<Cursor> _cursorStreamFromResult(Request request, | 845 static Stream<Cursor> _cursorStreamFromResult(Request request, |
| 845 bool autoAdvance) { | 846 bool autoAdvance) { |
| 846 // TODO: need to guarantee that the controller provides the values | 847 // TODO: need to guarantee that the controller provides the values |
| 847 // immediately as waiting until the next tick will cause the transaction to | 848 // immediately as waiting until the next tick will cause the transaction to |
| 848 // close. | 849 // close. |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 939 * handlers that are not necessarily instances of [Request]. | 940 * handlers that are not necessarily instances of [Request]. |
| 940 * | 941 * |
| 941 * See [EventStreamProvider] for usage information. | 942 * See [EventStreamProvider] for usage information. |
| 942 */ | 943 */ |
| 943 @DomName('IDBRequest.successEvent') | 944 @DomName('IDBRequest.successEvent') |
| 944 @DocsEditable() | 945 @DocsEditable() |
| 945 static const EventStreamProvider<Event> successEvent = const EventStreamProvid
er<Event>('success'); | 946 static const EventStreamProvider<Event> successEvent = const EventStreamProvid
er<Event>('success'); |
| 946 | 947 |
| 947 @DomName('IDBRequest.error') | 948 @DomName('IDBRequest.error') |
| 948 @DocsEditable() | 949 @DocsEditable() |
| 949 DomError get error native "IDBRequest_error_Getter"; | 950 DomError get error => blink.Native_IDBRequest_error_Getter(this); |
| 950 | 951 |
| 951 @DomName('IDBRequest.readyState') | 952 @DomName('IDBRequest.readyState') |
| 952 @DocsEditable() | 953 @DocsEditable() |
| 953 String get readyState native "IDBRequest_readyState_Getter"; | 954 String get readyState => blink.Native_IDBRequest_readyState_Getter(this); |
| 954 | 955 |
| 955 @DomName('IDBRequest.result') | 956 @DomName('IDBRequest.result') |
| 956 @DocsEditable() | 957 @DocsEditable() |
| 957 Object get result native "IDBRequest_result_Getter"; | 958 Object get result => blink.Native_IDBRequest_result_Getter(this); |
| 958 | 959 |
| 959 @DomName('IDBRequest.source') | 960 @DomName('IDBRequest.source') |
| 960 @DocsEditable() | 961 @DocsEditable() |
| 961 Object get source native "IDBRequest_source_Getter"; | 962 Object get source => blink.Native_IDBRequest_source_Getter(this); |
| 962 | 963 |
| 963 @DomName('IDBRequest.transaction') | 964 @DomName('IDBRequest.transaction') |
| 964 @DocsEditable() | 965 @DocsEditable() |
| 965 Transaction get transaction native "IDBRequest_transaction_Getter"; | 966 Transaction get transaction => blink.Native_IDBRequest_transaction_Getter(this
); |
| 966 | 967 |
| 967 @DomName('IDBRequest.addEventListener') | 968 @DomName('IDBRequest.addEventListener') |
| 968 @DocsEditable() | 969 @DocsEditable() |
| 969 void addEventListener(String type, EventListener listener, [bool useCapture])
native "IDBRequest_addEventListener_Callback"; | 970 void addEventListener(String type, EventListener listener, [bool useCapture])
=> blink.Native_IDBRequest_addEventListener_Callback(this, type, listener, useCa
pture); |
| 970 | 971 |
| 971 @DomName('IDBRequest.dispatchEvent') | 972 @DomName('IDBRequest.dispatchEvent') |
| 972 @DocsEditable() | 973 @DocsEditable() |
| 973 bool dispatchEvent(Event event) native "IDBRequest_dispatchEvent_Callback"; | 974 bool dispatchEvent(Event event) => blink.Native_IDBRequest_dispatchEvent_Callb
ack(this, event); |
| 974 | 975 |
| 975 @DomName('IDBRequest.removeEventListener') | 976 @DomName('IDBRequest.removeEventListener') |
| 976 @DocsEditable() | 977 @DocsEditable() |
| 977 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native "IDBRequest_removeEventListener_Callback"; | 978 void removeEventListener(String type, EventListener listener, [bool useCapture
]) => blink.Native_IDBRequest_removeEventListener_Callback(this, type, listener,
useCapture); |
| 978 | 979 |
| 979 /// Stream of `error` events handled by this [Request]. | 980 /// Stream of `error` events handled by this [Request]. |
| 980 @DomName('IDBRequest.onerror') | 981 @DomName('IDBRequest.onerror') |
| 981 @DocsEditable() | 982 @DocsEditable() |
| 982 Stream<Event> get onError => errorEvent.forTarget(this); | 983 Stream<Event> get onError => errorEvent.forTarget(this); |
| 983 | 984 |
| 984 /// Stream of `success` events handled by this [Request]. | 985 /// Stream of `success` events handled by this [Request]. |
| 985 @DomName('IDBRequest.onsuccess') | 986 @DomName('IDBRequest.onsuccess') |
| 986 @DocsEditable() | 987 @DocsEditable() |
| 987 Stream<Event> get onSuccess => successEvent.forTarget(this); | 988 Stream<Event> get onSuccess => successEvent.forTarget(this); |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1052 * handlers that are not necessarily instances of [Transaction]. | 1053 * handlers that are not necessarily instances of [Transaction]. |
| 1053 * | 1054 * |
| 1054 * See [EventStreamProvider] for usage information. | 1055 * See [EventStreamProvider] for usage information. |
| 1055 */ | 1056 */ |
| 1056 @DomName('IDBTransaction.errorEvent') | 1057 @DomName('IDBTransaction.errorEvent') |
| 1057 @DocsEditable() | 1058 @DocsEditable() |
| 1058 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider
<Event>('error'); | 1059 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider
<Event>('error'); |
| 1059 | 1060 |
| 1060 @DomName('IDBTransaction.db') | 1061 @DomName('IDBTransaction.db') |
| 1061 @DocsEditable() | 1062 @DocsEditable() |
| 1062 Database get db native "IDBTransaction_db_Getter"; | 1063 Database get db => blink.Native_IDBTransaction_db_Getter(this); |
| 1063 | 1064 |
| 1064 @DomName('IDBTransaction.error') | 1065 @DomName('IDBTransaction.error') |
| 1065 @DocsEditable() | 1066 @DocsEditable() |
| 1066 DomError get error native "IDBTransaction_error_Getter"; | 1067 DomError get error => blink.Native_IDBTransaction_error_Getter(this); |
| 1067 | 1068 |
| 1068 @DomName('IDBTransaction.mode') | 1069 @DomName('IDBTransaction.mode') |
| 1069 @DocsEditable() | 1070 @DocsEditable() |
| 1070 String get mode native "IDBTransaction_mode_Getter"; | 1071 String get mode => blink.Native_IDBTransaction_mode_Getter(this); |
| 1071 | 1072 |
| 1072 @DomName('IDBTransaction.abort') | 1073 @DomName('IDBTransaction.abort') |
| 1073 @DocsEditable() | 1074 @DocsEditable() |
| 1074 void abort() native "IDBTransaction_abort_Callback"; | 1075 void abort() => blink.Native_IDBTransaction_abort_Callback(this); |
| 1075 | 1076 |
| 1076 @DomName('IDBTransaction.objectStore') | 1077 @DomName('IDBTransaction.objectStore') |
| 1077 @DocsEditable() | 1078 @DocsEditable() |
| 1078 ObjectStore objectStore(String name) native "IDBTransaction_objectStore_Callba
ck"; | 1079 ObjectStore objectStore(String name) => blink.Native_IDBTransaction_objectStor
e_Callback(this, name); |
| 1079 | 1080 |
| 1080 @DomName('IDBTransaction.addEventListener') | 1081 @DomName('IDBTransaction.addEventListener') |
| 1081 @DocsEditable() | 1082 @DocsEditable() |
| 1082 void addEventListener(String type, EventListener listener, [bool useCapture])
native "IDBTransaction_addEventListener_Callback"; | 1083 void addEventListener(String type, EventListener listener, [bool useCapture])
=> blink.Native_IDBTransaction_addEventListener_Callback(this, type, listener, u
seCapture); |
| 1083 | 1084 |
| 1084 @DomName('IDBTransaction.dispatchEvent') | 1085 @DomName('IDBTransaction.dispatchEvent') |
| 1085 @DocsEditable() | 1086 @DocsEditable() |
| 1086 bool dispatchEvent(Event event) native "IDBTransaction_dispatchEvent_Callback"
; | 1087 bool dispatchEvent(Event event) => blink.Native_IDBTransaction_dispatchEvent_C
allback(this, event); |
| 1087 | 1088 |
| 1088 @DomName('IDBTransaction.removeEventListener') | 1089 @DomName('IDBTransaction.removeEventListener') |
| 1089 @DocsEditable() | 1090 @DocsEditable() |
| 1090 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native "IDBTransaction_removeEventListener_Callback"; | 1091 void removeEventListener(String type, EventListener listener, [bool useCapture
]) => blink.Native_IDBTransaction_removeEventListener_Callback(this, type, liste
ner, useCapture); |
| 1091 | 1092 |
| 1092 /// Stream of `abort` events handled by this [Transaction]. | 1093 /// Stream of `abort` events handled by this [Transaction]. |
| 1093 @DomName('IDBTransaction.onabort') | 1094 @DomName('IDBTransaction.onabort') |
| 1094 @DocsEditable() | 1095 @DocsEditable() |
| 1095 Stream<Event> get onAbort => abortEvent.forTarget(this); | 1096 Stream<Event> get onAbort => abortEvent.forTarget(this); |
| 1096 | 1097 |
| 1097 /// Stream of `complete` events handled by this [Transaction]. | 1098 /// Stream of `complete` events handled by this [Transaction]. |
| 1098 @DomName('IDBTransaction.oncomplete') | 1099 @DomName('IDBTransaction.oncomplete') |
| 1099 @DocsEditable() | 1100 @DocsEditable() |
| 1100 Stream<Event> get onComplete => completeEvent.forTarget(this); | 1101 Stream<Event> get onComplete => completeEvent.forTarget(this); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1115 @DocsEditable() | 1116 @DocsEditable() |
| 1116 @DomName('IDBVersionChangeEvent') | 1117 @DomName('IDBVersionChangeEvent') |
| 1117 @Unstable() | 1118 @Unstable() |
| 1118 class VersionChangeEvent extends Event { | 1119 class VersionChangeEvent extends Event { |
| 1119 // To suppress missing implicit constructor warnings. | 1120 // To suppress missing implicit constructor warnings. |
| 1120 factory VersionChangeEvent._() { throw new UnsupportedError("Not supported");
} | 1121 factory VersionChangeEvent._() { throw new UnsupportedError("Not supported");
} |
| 1121 | 1122 |
| 1122 @DomName('IDBVersionChangeEvent.dataLoss') | 1123 @DomName('IDBVersionChangeEvent.dataLoss') |
| 1123 @DocsEditable() | 1124 @DocsEditable() |
| 1124 @Experimental() // untriaged | 1125 @Experimental() // untriaged |
| 1125 String get dataLoss native "IDBVersionChangeEvent_dataLoss_Getter"; | 1126 String get dataLoss => blink.Native_IDBVersionChangeEvent_dataLoss_Getter(this
); |
| 1126 | 1127 |
| 1127 @DomName('IDBVersionChangeEvent.dataLossMessage') | 1128 @DomName('IDBVersionChangeEvent.dataLossMessage') |
| 1128 @DocsEditable() | 1129 @DocsEditable() |
| 1129 @Experimental() // untriaged | 1130 @Experimental() // untriaged |
| 1130 String get dataLossMessage native "IDBVersionChangeEvent_dataLossMessage_Gette
r"; | 1131 String get dataLossMessage => blink.Native_IDBVersionChangeEvent_dataLossMessa
ge_Getter(this); |
| 1131 | 1132 |
| 1132 @DomName('IDBVersionChangeEvent.newVersion') | 1133 @DomName('IDBVersionChangeEvent.newVersion') |
| 1133 @DocsEditable() | 1134 @DocsEditable() |
| 1134 Object get newVersion native "IDBVersionChangeEvent_newVersion_Getter"; | 1135 Object get newVersion => blink.Native_IDBVersionChangeEvent_newVersion_Getter(
this); |
| 1135 | 1136 |
| 1136 @DomName('IDBVersionChangeEvent.oldVersion') | 1137 @DomName('IDBVersionChangeEvent.oldVersion') |
| 1137 @DocsEditable() | 1138 @DocsEditable() |
| 1138 Object get oldVersion native "IDBVersionChangeEvent_oldVersion_Getter"; | 1139 Object get oldVersion => blink.Native_IDBVersionChangeEvent_oldVersion_Getter(
this); |
| 1139 | 1140 |
| 1140 } | 1141 } |
| OLD | NEW |