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