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. |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 } catch (e, stacktrace) { | 73 } catch (e, stacktrace) { |
74 return new Future.error(e, stacktrace); | 74 return new Future.error(e, stacktrace); |
75 } | 75 } |
76 } | 76 } |
77 | 77 |
78 // To suppress missing implicit constructor warnings. | 78 // To suppress missing implicit constructor warnings. |
79 factory Cursor._() { throw new UnsupportedError("Not supported"); } | 79 factory Cursor._() { throw new UnsupportedError("Not supported"); } |
80 | 80 |
81 @DomName('IDBCursor.direction') | 81 @DomName('IDBCursor.direction') |
82 @DocsEditable() | 82 @DocsEditable() |
83 String get direction => _blink.BlinkIDBCursor.direction_Getter(this); | 83 String get direction => _blink.BlinkIDBCursor.instance.direction_Getter_(this)
; |
84 | 84 |
85 @DomName('IDBCursor.key') | 85 @DomName('IDBCursor.key') |
86 @DocsEditable() | 86 @DocsEditable() |
87 Object get key => _blink.BlinkIDBCursor.key_Getter(this); | 87 Object get key => _blink.BlinkIDBCursor.instance.key_Getter_(this); |
88 | 88 |
89 @DomName('IDBCursor.primaryKey') | 89 @DomName('IDBCursor.primaryKey') |
90 @DocsEditable() | 90 @DocsEditable() |
91 Object get primaryKey => _blink.BlinkIDBCursor.primaryKey_Getter(this); | 91 Object get primaryKey => _blink.BlinkIDBCursor.instance.primaryKey_Getter_(thi
s); |
92 | 92 |
93 @DomName('IDBCursor.source') | 93 @DomName('IDBCursor.source') |
94 @DocsEditable() | 94 @DocsEditable() |
95 Object get source => _blink.BlinkIDBCursor.source_Getter(this); | 95 Object get source => _blink.BlinkIDBCursor.instance.source_Getter_(this); |
96 | 96 |
97 @DomName('IDBCursor.advance') | 97 @DomName('IDBCursor.advance') |
98 @DocsEditable() | 98 @DocsEditable() |
99 void advance(int count) => _blink.BlinkIDBCursor.advance_Callback_1(this, coun
t); | 99 void advance(int count) => _blink.BlinkIDBCursor.instance.advance_Callback_1_(
this, count); |
100 | 100 |
101 @DomName('IDBCursor.continuePrimaryKey') | 101 @DomName('IDBCursor.continuePrimaryKey') |
102 @DocsEditable() | 102 @DocsEditable() |
103 @Experimental() // untriaged | 103 @Experimental() // untriaged |
104 void continuePrimaryKey(Object key, Object primaryKey) => _blink.BlinkIDBCurso
r.continuePrimaryKey_Callback_2(this, key, primaryKey); | 104 void continuePrimaryKey(Object key, Object primaryKey) => _blink.BlinkIDBCurso
r.instance.continuePrimaryKey_Callback_2_(this, key, primaryKey); |
105 | 105 |
106 @DomName('IDBCursor.delete') | 106 @DomName('IDBCursor.delete') |
107 @DocsEditable() | 107 @DocsEditable() |
108 Request _delete() => _blink.BlinkIDBCursor.delete_Callback_0(this); | 108 Request _delete() => _blink.BlinkIDBCursor.instance.delete_Callback_0_(this); |
109 | 109 |
110 void next([Object key]) { | 110 void next([Object key]) { |
111 if (key != null) { | 111 if (key != null) { |
112 _blink.BlinkIDBCursor.continue_Callback_1(this, key); | 112 _blink.BlinkIDBCursor.instance.continue_Callback_1_(this, key); |
113 return; | 113 return; |
114 } | 114 } |
115 _blink.BlinkIDBCursor.continue_Callback_0(this); | 115 _blink.BlinkIDBCursor.instance.continue_Callback_0_(this); |
116 return; | 116 return; |
117 } | 117 } |
118 | 118 |
119 @DomName('IDBCursor.update') | 119 @DomName('IDBCursor.update') |
120 @DocsEditable() | 120 @DocsEditable() |
121 Request _update(Object value) => _blink.BlinkIDBCursor.update_Callback_1(this,
value); | 121 Request _update(Object value) => _blink.BlinkIDBCursor.instance.update_Callbac
k_1_(this, value); |
122 | 122 |
123 } | 123 } |
124 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 124 // Copyright (c) 2012, 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 // WARNING: Do not edit - generated code. | 128 // WARNING: Do not edit - generated code. |
129 | 129 |
130 | 130 |
131 @DocsEditable() | 131 @DocsEditable() |
132 @DomName('IDBCursorWithValue') | 132 @DomName('IDBCursorWithValue') |
133 @Unstable() | 133 @Unstable() |
134 class CursorWithValue extends Cursor { | 134 class CursorWithValue extends Cursor { |
135 // To suppress missing implicit constructor warnings. | 135 // To suppress missing implicit constructor warnings. |
136 factory CursorWithValue._() { throw new UnsupportedError("Not supported"); } | 136 factory CursorWithValue._() { throw new UnsupportedError("Not supported"); } |
137 | 137 |
138 @DomName('IDBCursorWithValue.value') | 138 @DomName('IDBCursorWithValue.value') |
139 @DocsEditable() | 139 @DocsEditable() |
140 Object get value => _blink.BlinkIDBCursorWithValue.value_Getter(this); | 140 Object get value => _blink.BlinkIDBCursorWithValue.instance.value_Getter_(this
); |
141 | 141 |
142 } | 142 } |
143 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 143 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
144 // for details. All rights reserved. Use of this source code is governed by a | 144 // for details. All rights reserved. Use of this source code is governed by a |
145 // BSD-style license that can be found in the LICENSE file. | 145 // BSD-style license that can be found in the LICENSE file. |
146 | 146 |
147 | 147 |
148 @DocsEditable() | 148 @DocsEditable() |
149 /** | 149 /** |
150 * An indexed database object for storing client-side data | 150 * An indexed database object for storing client-side data |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 * handlers that are not necessarily instances of [Database]. | 213 * handlers that are not necessarily instances of [Database]. |
214 * | 214 * |
215 * See [EventStreamProvider] for usage information. | 215 * See [EventStreamProvider] for usage information. |
216 */ | 216 */ |
217 @DomName('IDBDatabase.versionchangeEvent') | 217 @DomName('IDBDatabase.versionchangeEvent') |
218 @DocsEditable() | 218 @DocsEditable() |
219 static const EventStreamProvider<VersionChangeEvent> versionChangeEvent = cons
t EventStreamProvider<VersionChangeEvent>('versionchange'); | 219 static const EventStreamProvider<VersionChangeEvent> versionChangeEvent = cons
t EventStreamProvider<VersionChangeEvent>('versionchange'); |
220 | 220 |
221 @DomName('IDBDatabase.name') | 221 @DomName('IDBDatabase.name') |
222 @DocsEditable() | 222 @DocsEditable() |
223 String get name => _blink.BlinkIDBDatabase.name_Getter(this); | 223 String get name => _blink.BlinkIDBDatabase.instance.name_Getter_(this); |
224 | 224 |
225 @DomName('IDBDatabase.objectStoreNames') | 225 @DomName('IDBDatabase.objectStoreNames') |
226 @DocsEditable() | 226 @DocsEditable() |
227 List<String> get objectStoreNames => _blink.BlinkIDBDatabase.objectStoreNames_
Getter(this); | 227 List<String> get objectStoreNames => _blink.BlinkIDBDatabase.instance.objectSt
oreNames_Getter_(this); |
228 | 228 |
229 @DomName('IDBDatabase.version') | 229 @DomName('IDBDatabase.version') |
230 @DocsEditable() | 230 @DocsEditable() |
231 Object get version => _blink.BlinkIDBDatabase.version_Getter(this); | 231 Object get version => _blink.BlinkIDBDatabase.instance.version_Getter_(this); |
232 | 232 |
233 @DomName('IDBDatabase.close') | 233 @DomName('IDBDatabase.close') |
234 @DocsEditable() | 234 @DocsEditable() |
235 void close() => _blink.BlinkIDBDatabase.close_Callback_0(this); | 235 void close() => _blink.BlinkIDBDatabase.instance.close_Callback_0_(this); |
236 | 236 |
237 ObjectStore _createObjectStore(String name, [Map options]) { | 237 ObjectStore _createObjectStore(String name, [Map options]) { |
238 if (options != null) { | 238 if (options != null) { |
239 return _blink.BlinkIDBDatabase.createObjectStore_Callback_2(this, name, op
tions); | 239 return _blink.BlinkIDBDatabase.instance.createObjectStore_Callback_2_(this
, name, options); |
240 } | 240 } |
241 return _blink.BlinkIDBDatabase.createObjectStore_Callback_1(this, name); | 241 return _blink.BlinkIDBDatabase.instance.createObjectStore_Callback_1_(this,
name); |
242 } | 242 } |
243 | 243 |
244 @DomName('IDBDatabase.deleteObjectStore') | 244 @DomName('IDBDatabase.deleteObjectStore') |
245 @DocsEditable() | 245 @DocsEditable() |
246 void deleteObjectStore(String name) => _blink.BlinkIDBDatabase.deleteObjectSto
re_Callback_1(this, name); | 246 void deleteObjectStore(String name) => _blink.BlinkIDBDatabase.instance.delete
ObjectStore_Callback_1_(this, name); |
247 | 247 |
248 Transaction transaction(storeName_OR_storeNames, [String mode]) { | 248 Transaction transaction(storeName_OR_storeNames, [String mode]) { |
249 if ((storeName_OR_storeNames is String || storeName_OR_storeNames == null) &
& mode == null) { | 249 if ((storeName_OR_storeNames is String || storeName_OR_storeNames == null) &
& mode == null) { |
250 return _blink.BlinkIDBDatabase.transaction_Callback_1(this, storeName_OR_s
toreNames); | 250 return _blink.BlinkIDBDatabase.instance.transaction_Callback_1_(this, stor
eName_OR_storeNames); |
251 } | 251 } |
252 if ((mode is String || mode == null) && (storeName_OR_storeNames is String |
| storeName_OR_storeNames == null)) { | 252 if ((mode is String || mode == null) && (storeName_OR_storeNames is String |
| storeName_OR_storeNames == null)) { |
253 return _blink.BlinkIDBDatabase.transaction_Callback_2(this, storeName_OR_s
toreNames, mode); | 253 return _blink.BlinkIDBDatabase.instance.transaction_Callback_2_(this, stor
eName_OR_storeNames, mode); |
254 } | 254 } |
255 if ((storeName_OR_storeNames is List<String> || storeName_OR_storeNames == n
ull) && mode == null) { | 255 if ((storeName_OR_storeNames is List<String> || storeName_OR_storeNames == n
ull) && mode == null) { |
256 return _blink.BlinkIDBDatabase.transaction_Callback_1(this, storeName_OR_s
toreNames); | 256 return _blink.BlinkIDBDatabase.instance.transaction_Callback_1_(this, stor
eName_OR_storeNames); |
257 } | 257 } |
258 if ((mode is String || mode == null) && (storeName_OR_storeNames is List<Str
ing> || storeName_OR_storeNames == null)) { | 258 if ((mode is String || mode == null) && (storeName_OR_storeNames is List<Str
ing> || storeName_OR_storeNames == null)) { |
259 return _blink.BlinkIDBDatabase.transaction_Callback_2(this, storeName_OR_s
toreNames, mode); | 259 return _blink.BlinkIDBDatabase.instance.transaction_Callback_2_(this, stor
eName_OR_storeNames, mode); |
260 } | 260 } |
261 if ((storeName_OR_storeNames is DomStringList || storeName_OR_storeNames ==
null) && mode == null) { | 261 if ((storeName_OR_storeNames is DomStringList || storeName_OR_storeNames ==
null) && mode == null) { |
262 return _blink.BlinkIDBDatabase.transaction_Callback_1(this, storeName_OR_s
toreNames); | 262 return _blink.BlinkIDBDatabase.instance.transaction_Callback_1_(this, stor
eName_OR_storeNames); |
263 } | 263 } |
264 if ((mode is String || mode == null) && (storeName_OR_storeNames is DomStrin
gList || storeName_OR_storeNames == null)) { | 264 if ((mode is String || mode == null) && (storeName_OR_storeNames is DomStrin
gList || storeName_OR_storeNames == null)) { |
265 return _blink.BlinkIDBDatabase.transaction_Callback_2(this, storeName_OR_s
toreNames, mode); | 265 return _blink.BlinkIDBDatabase.instance.transaction_Callback_2_(this, stor
eName_OR_storeNames, mode); |
266 } | 266 } |
267 throw new ArgumentError("Incorrect number or type of arguments"); | 267 throw new ArgumentError("Incorrect number or type of arguments"); |
268 } | 268 } |
269 | 269 |
270 Transaction transactionList(List<String> storeNames, [String mode]) { | 270 Transaction transactionList(List<String> storeNames, [String mode]) { |
271 if (mode != null) { | 271 if (mode != null) { |
272 return _blink.BlinkIDBDatabase.transaction_Callback_2(this, storeNames, mo
de); | 272 return _blink.BlinkIDBDatabase.instance.transaction_Callback_2_(this, stor
eNames, mode); |
273 } | 273 } |
274 return _blink.BlinkIDBDatabase.transaction_Callback_1(this, storeNames); | 274 return _blink.BlinkIDBDatabase.instance.transaction_Callback_1_(this, storeN
ames); |
275 } | 275 } |
276 | 276 |
277 Transaction transactionStore(String storeName, [String mode]) { | 277 Transaction transactionStore(String storeName, [String mode]) { |
278 if (mode != null) { | 278 if (mode != null) { |
279 return _blink.BlinkIDBDatabase.transaction_Callback_2(this, storeName, mod
e); | 279 return _blink.BlinkIDBDatabase.instance.transaction_Callback_2_(this, stor
eName, mode); |
280 } | 280 } |
281 return _blink.BlinkIDBDatabase.transaction_Callback_1(this, storeName); | 281 return _blink.BlinkIDBDatabase.instance.transaction_Callback_1_(this, storeN
ame); |
282 } | 282 } |
283 | 283 |
284 Transaction transactionStores(List<String> storeNames, [String mode]) { | 284 Transaction transactionStores(List<String> storeNames, [String mode]) { |
285 if (mode != null) { | 285 if (mode != null) { |
286 return _blink.BlinkIDBDatabase.transaction_Callback_2(this, storeNames, mo
de); | 286 return _blink.BlinkIDBDatabase.instance.transaction_Callback_2_(this, stor
eNames, mode); |
287 } | 287 } |
288 return _blink.BlinkIDBDatabase.transaction_Callback_1(this, storeNames); | 288 return _blink.BlinkIDBDatabase.instance.transaction_Callback_1_(this, storeN
ames); |
289 } | 289 } |
290 | 290 |
291 /// Stream of `abort` events handled by this [Database]. | 291 /// Stream of `abort` events handled by this [Database]. |
292 @DomName('IDBDatabase.onabort') | 292 @DomName('IDBDatabase.onabort') |
293 @DocsEditable() | 293 @DocsEditable() |
294 Stream<Event> get onAbort => abortEvent.forTarget(this); | 294 Stream<Event> get onAbort => abortEvent.forTarget(this); |
295 | 295 |
296 /// Stream of `close` events handled by this [Database]. | 296 /// Stream of `close` events handled by this [Database]. |
297 @DomName('IDBDatabase.onclose') | 297 @DomName('IDBDatabase.onclose') |
298 @DocsEditable() | 298 @DocsEditable() |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 */ | 395 */ |
396 bool get supportsDatabaseNames { | 396 bool get supportsDatabaseNames { |
397 return true; | 397 return true; |
398 } | 398 } |
399 | 399 |
400 // To suppress missing implicit constructor warnings. | 400 // To suppress missing implicit constructor warnings. |
401 factory IdbFactory._() { throw new UnsupportedError("Not supported"); } | 401 factory IdbFactory._() { throw new UnsupportedError("Not supported"); } |
402 | 402 |
403 @DomName('IDBFactory.cmp') | 403 @DomName('IDBFactory.cmp') |
404 @DocsEditable() | 404 @DocsEditable() |
405 int cmp(Object first, Object second) => _blink.BlinkIDBFactory.cmp_Callback_2(
this, first, second); | 405 int cmp(Object first, Object second) => _blink.BlinkIDBFactory.instance.cmp_Ca
llback_2_(this, first, second); |
406 | 406 |
407 @DomName('IDBFactory.deleteDatabase') | 407 @DomName('IDBFactory.deleteDatabase') |
408 @DocsEditable() | 408 @DocsEditable() |
409 OpenDBRequest _deleteDatabase(String name) => _blink.BlinkIDBFactory.deleteDat
abase_Callback_1(this, name); | 409 OpenDBRequest _deleteDatabase(String name) => _blink.BlinkIDBFactory.instance.
deleteDatabase_Callback_1_(this, name); |
410 | 410 |
411 OpenDBRequest _open(String name, [int version]) { | 411 OpenDBRequest _open(String name, [int version]) { |
412 if (version != null) { | 412 if (version != null) { |
413 return _blink.BlinkIDBFactory.open_Callback_2(this, name, version); | 413 return _blink.BlinkIDBFactory.instance.open_Callback_2_(this, name, versio
n); |
414 } | 414 } |
415 return _blink.BlinkIDBFactory.open_Callback_1(this, name); | 415 return _blink.BlinkIDBFactory.instance.open_Callback_1_(this, name); |
416 } | 416 } |
417 | 417 |
418 @DomName('IDBFactory.webkitGetDatabaseNames') | 418 @DomName('IDBFactory.webkitGetDatabaseNames') |
419 @DocsEditable() | 419 @DocsEditable() |
420 @SupportedBrowser(SupportedBrowser.CHROME) | 420 @SupportedBrowser(SupportedBrowser.CHROME) |
421 @SupportedBrowser(SupportedBrowser.SAFARI) | 421 @SupportedBrowser(SupportedBrowser.SAFARI) |
422 @Experimental() | 422 @Experimental() |
423 Request _webkitGetDatabaseNames() => _blink.BlinkIDBFactory.webkitGetDatabaseN
ames_Callback_0(this); | 423 Request _webkitGetDatabaseNames() => _blink.BlinkIDBFactory.instance.webkitGet
DatabaseNames_Callback_0_(this); |
424 | 424 |
425 } | 425 } |
426 | 426 |
427 | 427 |
428 /** | 428 /** |
429 * Ties a request to a completer, so the completer is completed when it succeeds | 429 * Ties a request to a completer, so the completer is completed when it succeeds |
430 * and errors out when the request errors. | 430 * and errors out when the request errors. |
431 */ | 431 */ |
432 Future _completeRequest(Request request) { | 432 Future _completeRequest(Request request) { |
433 var completer = new Completer.sync(); | 433 var completer = new Completer.sync(); |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
533 request = _openKeyCursor(key_OR_range, direction); | 533 request = _openKeyCursor(key_OR_range, direction); |
534 } | 534 } |
535 return ObjectStore._cursorStreamFromResult(request, autoAdvance); | 535 return ObjectStore._cursorStreamFromResult(request, autoAdvance); |
536 } | 536 } |
537 | 537 |
538 // To suppress missing implicit constructor warnings. | 538 // To suppress missing implicit constructor warnings. |
539 factory Index._() { throw new UnsupportedError("Not supported"); } | 539 factory Index._() { throw new UnsupportedError("Not supported"); } |
540 | 540 |
541 @DomName('IDBIndex.keyPath') | 541 @DomName('IDBIndex.keyPath') |
542 @DocsEditable() | 542 @DocsEditable() |
543 Object get keyPath => _blink.BlinkIDBIndex.keyPath_Getter(this); | 543 Object get keyPath => _blink.BlinkIDBIndex.instance.keyPath_Getter_(this); |
544 | 544 |
545 @DomName('IDBIndex.multiEntry') | 545 @DomName('IDBIndex.multiEntry') |
546 @DocsEditable() | 546 @DocsEditable() |
547 bool get multiEntry => _blink.BlinkIDBIndex.multiEntry_Getter(this); | 547 bool get multiEntry => _blink.BlinkIDBIndex.instance.multiEntry_Getter_(this); |
548 | 548 |
549 @DomName('IDBIndex.name') | 549 @DomName('IDBIndex.name') |
550 @DocsEditable() | 550 @DocsEditable() |
551 String get name => _blink.BlinkIDBIndex.name_Getter(this); | 551 String get name => _blink.BlinkIDBIndex.instance.name_Getter_(this); |
552 | 552 |
553 @DomName('IDBIndex.objectStore') | 553 @DomName('IDBIndex.objectStore') |
554 @DocsEditable() | 554 @DocsEditable() |
555 ObjectStore get objectStore => _blink.BlinkIDBIndex.objectStore_Getter(this); | 555 ObjectStore get objectStore => _blink.BlinkIDBIndex.instance.objectStore_Gette
r_(this); |
556 | 556 |
557 @DomName('IDBIndex.unique') | 557 @DomName('IDBIndex.unique') |
558 @DocsEditable() | 558 @DocsEditable() |
559 bool get unique => _blink.BlinkIDBIndex.unique_Getter(this); | 559 bool get unique => _blink.BlinkIDBIndex.instance.unique_Getter_(this); |
560 | 560 |
561 @DomName('IDBIndex.count') | 561 @DomName('IDBIndex.count') |
562 @DocsEditable() | 562 @DocsEditable() |
563 Request _count(Object key) => _blink.BlinkIDBIndex.count_Callback_1(this, key)
; | 563 Request _count(Object key) => _blink.BlinkIDBIndex.instance.count_Callback_1_(
this, key); |
564 | 564 |
565 @DomName('IDBIndex.get') | 565 @DomName('IDBIndex.get') |
566 @DocsEditable() | 566 @DocsEditable() |
567 Request _get(Object key) => _blink.BlinkIDBIndex.get_Callback_1(this, key); | 567 Request _get(Object key) => _blink.BlinkIDBIndex.instance.get_Callback_1_(this
, key); |
568 | 568 |
569 @DomName('IDBIndex.getKey') | 569 @DomName('IDBIndex.getKey') |
570 @DocsEditable() | 570 @DocsEditable() |
571 Request _getKey(Object key) => _blink.BlinkIDBIndex.getKey_Callback_1(this, ke
y); | 571 Request _getKey(Object key) => _blink.BlinkIDBIndex.instance.getKey_Callback_1
_(this, key); |
572 | 572 |
573 Request _openCursor(Object range, [String direction]) { | 573 Request _openCursor(Object range, [String direction]) { |
574 if (direction != null) { | 574 if (direction != null) { |
575 return _blink.BlinkIDBIndex.openCursor_Callback_2(this, range, direction); | 575 return _blink.BlinkIDBIndex.instance.openCursor_Callback_2_(this, range, d
irection); |
576 } | 576 } |
577 return _blink.BlinkIDBIndex.openCursor_Callback_1(this, range); | 577 return _blink.BlinkIDBIndex.instance.openCursor_Callback_1_(this, range); |
578 } | 578 } |
579 | 579 |
580 Request _openKeyCursor(Object range, [String direction]) { | 580 Request _openKeyCursor(Object range, [String direction]) { |
581 if (direction != null) { | 581 if (direction != null) { |
582 return _blink.BlinkIDBIndex.openKeyCursor_Callback_2(this, range, directio
n); | 582 return _blink.BlinkIDBIndex.instance.openKeyCursor_Callback_2_(this, range
, direction); |
583 } | 583 } |
584 return _blink.BlinkIDBIndex.openKeyCursor_Callback_1(this, range); | 584 return _blink.BlinkIDBIndex.instance.openKeyCursor_Callback_1_(this, range); |
585 } | 585 } |
586 | 586 |
587 } | 587 } |
588 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 588 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
589 // for details. All rights reserved. Use of this source code is governed by a | 589 // for details. All rights reserved. Use of this source code is governed by a |
590 // BSD-style license that can be found in the LICENSE file. | 590 // BSD-style license that can be found in the LICENSE file. |
591 | 591 |
592 | 592 |
593 @DomName('IDBKeyRange') | 593 @DomName('IDBKeyRange') |
594 @Unstable() | 594 @Unstable() |
(...skipping 14 matching lines...) Expand all Loading... |
609 factory KeyRange.bound(/*Key*/ lower, /*Key*/ upper, | 609 factory KeyRange.bound(/*Key*/ lower, /*Key*/ upper, |
610 [bool lowerOpen = false, bool upperOpen = false]) => | 610 [bool lowerOpen = false, bool upperOpen = false]) => |
611 _KeyRangeFactoryProvider.createKeyRange_bound( | 611 _KeyRangeFactoryProvider.createKeyRange_bound( |
612 lower, upper, lowerOpen, upperOpen); | 612 lower, upper, lowerOpen, upperOpen); |
613 | 613 |
614 // To suppress missing implicit constructor warnings. | 614 // To suppress missing implicit constructor warnings. |
615 factory KeyRange._() { throw new UnsupportedError("Not supported"); } | 615 factory KeyRange._() { throw new UnsupportedError("Not supported"); } |
616 | 616 |
617 @DomName('IDBKeyRange.lower') | 617 @DomName('IDBKeyRange.lower') |
618 @DocsEditable() | 618 @DocsEditable() |
619 Object get lower => _blink.BlinkIDBKeyRange.lower_Getter(this); | 619 Object get lower => _blink.BlinkIDBKeyRange.instance.lower_Getter_(this); |
620 | 620 |
621 @DomName('IDBKeyRange.lowerOpen') | 621 @DomName('IDBKeyRange.lowerOpen') |
622 @DocsEditable() | 622 @DocsEditable() |
623 bool get lowerOpen => _blink.BlinkIDBKeyRange.lowerOpen_Getter(this); | 623 bool get lowerOpen => _blink.BlinkIDBKeyRange.instance.lowerOpen_Getter_(this)
; |
624 | 624 |
625 @DomName('IDBKeyRange.upper') | 625 @DomName('IDBKeyRange.upper') |
626 @DocsEditable() | 626 @DocsEditable() |
627 Object get upper => _blink.BlinkIDBKeyRange.upper_Getter(this); | 627 Object get upper => _blink.BlinkIDBKeyRange.instance.upper_Getter_(this); |
628 | 628 |
629 @DomName('IDBKeyRange.upperOpen') | 629 @DomName('IDBKeyRange.upperOpen') |
630 @DocsEditable() | 630 @DocsEditable() |
631 bool get upperOpen => _blink.BlinkIDBKeyRange.upperOpen_Getter(this); | 631 bool get upperOpen => _blink.BlinkIDBKeyRange.instance.upperOpen_Getter_(this)
; |
632 | 632 |
633 static KeyRange bound_(Object lower, Object upper, [bool lowerOpen, bool upper
Open]) { | 633 static KeyRange bound_(Object lower, Object upper, [bool lowerOpen, bool upper
Open]) { |
634 if (upperOpen != null) { | 634 if (upperOpen != null) { |
635 return _blink.BlinkIDBKeyRange.bound_Callback_4(lower, upper, lowerOpen, u
pperOpen); | 635 return _blink.BlinkIDBKeyRange.instance.bound_Callback_4_(lower, upper, lo
werOpen, upperOpen); |
636 } | 636 } |
637 if (lowerOpen != null) { | 637 if (lowerOpen != null) { |
638 return _blink.BlinkIDBKeyRange.bound_Callback_3(lower, upper, lowerOpen); | 638 return _blink.BlinkIDBKeyRange.instance.bound_Callback_3_(lower, upper, lo
werOpen); |
639 } | 639 } |
640 return _blink.BlinkIDBKeyRange.bound_Callback_2(lower, upper); | 640 return _blink.BlinkIDBKeyRange.instance.bound_Callback_2_(lower, upper); |
641 } | 641 } |
642 | 642 |
643 static KeyRange lowerBound_(Object bound, [bool open]) { | 643 static KeyRange lowerBound_(Object bound, [bool open]) { |
644 if (open != null) { | 644 if (open != null) { |
645 return _blink.BlinkIDBKeyRange.lowerBound_Callback_2(bound, open); | 645 return _blink.BlinkIDBKeyRange.instance.lowerBound_Callback_2_(bound, open
); |
646 } | 646 } |
647 return _blink.BlinkIDBKeyRange.lowerBound_Callback_1(bound); | 647 return _blink.BlinkIDBKeyRange.instance.lowerBound_Callback_1_(bound); |
648 } | 648 } |
649 | 649 |
650 @DomName('IDBKeyRange.only_') | 650 @DomName('IDBKeyRange.only_') |
651 @DocsEditable() | 651 @DocsEditable() |
652 @Experimental() // non-standard | 652 @Experimental() // non-standard |
653 static KeyRange only_(Object value) => _blink.BlinkIDBKeyRange.only_Callback_1
(value); | 653 static KeyRange only_(Object value) => _blink.BlinkIDBKeyRange.instance.only_C
allback_1_(value); |
654 | 654 |
655 static KeyRange upperBound_(Object bound, [bool open]) { | 655 static KeyRange upperBound_(Object bound, [bool open]) { |
656 if (open != null) { | 656 if (open != null) { |
657 return _blink.BlinkIDBKeyRange.upperBound_Callback_2(bound, open); | 657 return _blink.BlinkIDBKeyRange.instance.upperBound_Callback_2_(bound, open
); |
658 } | 658 } |
659 return _blink.BlinkIDBKeyRange.upperBound_Callback_1(bound); | 659 return _blink.BlinkIDBKeyRange.instance.upperBound_Callback_1_(bound); |
660 } | 660 } |
661 | 661 |
662 } | 662 } |
663 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 663 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
664 // for details. All rights reserved. Use of this source code is governed by a | 664 // for details. All rights reserved. Use of this source code is governed by a |
665 // BSD-style license that can be found in the LICENSE file. | 665 // BSD-style license that can be found in the LICENSE file. |
666 | 666 |
667 | 667 |
668 @DomName('IDBObjectStore') | 668 @DomName('IDBObjectStore') |
669 @Unstable() | 669 @Unstable() |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
793 } | 793 } |
794 | 794 |
795 return _createIndex(name, keyPath, options); | 795 return _createIndex(name, keyPath, options); |
796 } | 796 } |
797 | 797 |
798 // To suppress missing implicit constructor warnings. | 798 // To suppress missing implicit constructor warnings. |
799 factory ObjectStore._() { throw new UnsupportedError("Not supported"); } | 799 factory ObjectStore._() { throw new UnsupportedError("Not supported"); } |
800 | 800 |
801 @DomName('IDBObjectStore.autoIncrement') | 801 @DomName('IDBObjectStore.autoIncrement') |
802 @DocsEditable() | 802 @DocsEditable() |
803 bool get autoIncrement => _blink.BlinkIDBObjectStore.autoIncrement_Getter(this
); | 803 bool get autoIncrement => _blink.BlinkIDBObjectStore.instance.autoIncrement_Ge
tter_(this); |
804 | 804 |
805 @DomName('IDBObjectStore.indexNames') | 805 @DomName('IDBObjectStore.indexNames') |
806 @DocsEditable() | 806 @DocsEditable() |
807 List<String> get indexNames => _blink.BlinkIDBObjectStore.indexNames_Getter(th
is); | 807 List<String> get indexNames => _blink.BlinkIDBObjectStore.instance.indexNames_
Getter_(this); |
808 | 808 |
809 @DomName('IDBObjectStore.keyPath') | 809 @DomName('IDBObjectStore.keyPath') |
810 @DocsEditable() | 810 @DocsEditable() |
811 Object get keyPath => _blink.BlinkIDBObjectStore.keyPath_Getter(this); | 811 Object get keyPath => _blink.BlinkIDBObjectStore.instance.keyPath_Getter_(this
); |
812 | 812 |
813 @DomName('IDBObjectStore.name') | 813 @DomName('IDBObjectStore.name') |
814 @DocsEditable() | 814 @DocsEditable() |
815 String get name => _blink.BlinkIDBObjectStore.name_Getter(this); | 815 String get name => _blink.BlinkIDBObjectStore.instance.name_Getter_(this); |
816 | 816 |
817 @DomName('IDBObjectStore.transaction') | 817 @DomName('IDBObjectStore.transaction') |
818 @DocsEditable() | 818 @DocsEditable() |
819 Transaction get transaction => _blink.BlinkIDBObjectStore.transaction_Getter(t
his); | 819 Transaction get transaction => _blink.BlinkIDBObjectStore.instance.transaction
_Getter_(this); |
820 | 820 |
821 Request _add(Object value, [Object key]) { | 821 Request _add(Object value, [Object key]) { |
822 if (key != null) { | 822 if (key != null) { |
823 return _blink.BlinkIDBObjectStore.add_Callback_2(this, value, key); | 823 return _blink.BlinkIDBObjectStore.instance.add_Callback_2_(this, value, ke
y); |
824 } | 824 } |
825 return _blink.BlinkIDBObjectStore.add_Callback_1(this, value); | 825 return _blink.BlinkIDBObjectStore.instance.add_Callback_1_(this, value); |
826 } | 826 } |
827 | 827 |
828 @DomName('IDBObjectStore.clear') | 828 @DomName('IDBObjectStore.clear') |
829 @DocsEditable() | 829 @DocsEditable() |
830 Request _clear() => _blink.BlinkIDBObjectStore.clear_Callback_0(this); | 830 Request _clear() => _blink.BlinkIDBObjectStore.instance.clear_Callback_0_(this
); |
831 | 831 |
832 @DomName('IDBObjectStore.count') | 832 @DomName('IDBObjectStore.count') |
833 @DocsEditable() | 833 @DocsEditable() |
834 Request _count(Object key) => _blink.BlinkIDBObjectStore.count_Callback_1(this
, key); | 834 Request _count(Object key) => _blink.BlinkIDBObjectStore.instance.count_Callba
ck_1_(this, key); |
835 | 835 |
836 Index _createIndex(String name, keyPath, [Map options]) { | 836 Index _createIndex(String name, keyPath, [Map options]) { |
837 if ((keyPath is String || keyPath == null) && (name is String || name == nul
l) && options == null) { | 837 if ((keyPath is String || keyPath == null) && (name is String || name == nul
l) && options == null) { |
838 return _blink.BlinkIDBObjectStore.createIndex_Callback_2(this, name, keyPa
th); | 838 return _blink.BlinkIDBObjectStore.instance.createIndex_Callback_2_(this, n
ame, keyPath); |
839 } | 839 } |
840 if ((options is Map || options == null) && (keyPath is String || keyPath ==
null) && (name is String || name == null)) { | 840 if ((options is Map || options == null) && (keyPath is String || keyPath ==
null) && (name is String || name == null)) { |
841 return _blink.BlinkIDBObjectStore.createIndex_Callback_3(this, name, keyPa
th, options); | 841 return _blink.BlinkIDBObjectStore.instance.createIndex_Callback_3_(this, n
ame, keyPath, options); |
842 } | 842 } |
843 if ((keyPath is List<String> || keyPath == null) && (name is String || name
== null) && options == null) { | 843 if ((keyPath is List<String> || keyPath == null) && (name is String || name
== null) && options == null) { |
844 return _blink.BlinkIDBObjectStore.createIndex_Callback_2(this, name, keyPa
th); | 844 return _blink.BlinkIDBObjectStore.instance.createIndex_Callback_2_(this, n
ame, keyPath); |
845 } | 845 } |
846 if ((options is Map || options == null) && (keyPath is List<String> || keyPa
th == null) && (name is String || name == null)) { | 846 if ((options is Map || options == null) && (keyPath is List<String> || keyPa
th == null) && (name is String || name == null)) { |
847 return _blink.BlinkIDBObjectStore.createIndex_Callback_3(this, name, keyPa
th, options); | 847 return _blink.BlinkIDBObjectStore.instance.createIndex_Callback_3_(this, n
ame, keyPath, options); |
848 } | 848 } |
849 throw new ArgumentError("Incorrect number or type of arguments"); | 849 throw new ArgumentError("Incorrect number or type of arguments"); |
850 } | 850 } |
851 | 851 |
852 @DomName('IDBObjectStore.delete') | 852 @DomName('IDBObjectStore.delete') |
853 @DocsEditable() | 853 @DocsEditable() |
854 Request _delete(Object key) => _blink.BlinkIDBObjectStore.delete_Callback_1(th
is, key); | 854 Request _delete(Object key) => _blink.BlinkIDBObjectStore.instance.delete_Call
back_1_(this, key); |
855 | 855 |
856 @DomName('IDBObjectStore.deleteIndex') | 856 @DomName('IDBObjectStore.deleteIndex') |
857 @DocsEditable() | 857 @DocsEditable() |
858 void deleteIndex(String name) => _blink.BlinkIDBObjectStore.deleteIndex_Callba
ck_1(this, name); | 858 void deleteIndex(String name) => _blink.BlinkIDBObjectStore.instance.deleteInd
ex_Callback_1_(this, name); |
859 | 859 |
860 @DomName('IDBObjectStore.get') | 860 @DomName('IDBObjectStore.get') |
861 @DocsEditable() | 861 @DocsEditable() |
862 Request _get(Object key) => _blink.BlinkIDBObjectStore.get_Callback_1(this, ke
y); | 862 Request _get(Object key) => _blink.BlinkIDBObjectStore.instance.get_Callback_1
_(this, key); |
863 | 863 |
864 @DomName('IDBObjectStore.index') | 864 @DomName('IDBObjectStore.index') |
865 @DocsEditable() | 865 @DocsEditable() |
866 Index index(String name) => _blink.BlinkIDBObjectStore.index_Callback_1(this,
name); | 866 Index index(String name) => _blink.BlinkIDBObjectStore.instance.index_Callback
_1_(this, name); |
867 | 867 |
868 Request _openCursor(Object range, [String direction]) { | 868 Request _openCursor(Object range, [String direction]) { |
869 if (direction != null) { | 869 if (direction != null) { |
870 return _blink.BlinkIDBObjectStore.openCursor_Callback_2(this, range, direc
tion); | 870 return _blink.BlinkIDBObjectStore.instance.openCursor_Callback_2_(this, ra
nge, direction); |
871 } | 871 } |
872 return _blink.BlinkIDBObjectStore.openCursor_Callback_1(this, range); | 872 return _blink.BlinkIDBObjectStore.instance.openCursor_Callback_1_(this, rang
e); |
873 } | 873 } |
874 | 874 |
875 Request openKeyCursor(Object range, [String direction]) { | 875 Request openKeyCursor(Object range, [String direction]) { |
876 if (direction != null) { | 876 if (direction != null) { |
877 return _blink.BlinkIDBObjectStore.openKeyCursor_Callback_2(this, range, di
rection); | 877 return _blink.BlinkIDBObjectStore.instance.openKeyCursor_Callback_2_(this,
range, direction); |
878 } | 878 } |
879 return _blink.BlinkIDBObjectStore.openKeyCursor_Callback_1(this, range); | 879 return _blink.BlinkIDBObjectStore.instance.openKeyCursor_Callback_1_(this, r
ange); |
880 } | 880 } |
881 | 881 |
882 Request _put(Object value, [Object key]) { | 882 Request _put(Object value, [Object key]) { |
883 if (key != null) { | 883 if (key != null) { |
884 return _blink.BlinkIDBObjectStore.put_Callback_2(this, value, key); | 884 return _blink.BlinkIDBObjectStore.instance.put_Callback_2_(this, value, ke
y); |
885 } | 885 } |
886 return _blink.BlinkIDBObjectStore.put_Callback_1(this, value); | 886 return _blink.BlinkIDBObjectStore.instance.put_Callback_1_(this, value); |
887 } | 887 } |
888 | 888 |
889 | 889 |
890 /** | 890 /** |
891 * Helper for iterating over cursors in a request. | 891 * Helper for iterating over cursors in a request. |
892 */ | 892 */ |
893 static Stream<Cursor> _cursorStreamFromResult(Request request, | 893 static Stream<Cursor> _cursorStreamFromResult(Request request, |
894 bool autoAdvance) { | 894 bool autoAdvance) { |
895 // TODO: need to guarantee that the controller provides the values | 895 // TODO: need to guarantee that the controller provides the values |
896 // immediately as waiting until the next tick will cause the transaction to | 896 // immediately as waiting until the next tick will cause the transaction to |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
988 * handlers that are not necessarily instances of [Request]. | 988 * handlers that are not necessarily instances of [Request]. |
989 * | 989 * |
990 * See [EventStreamProvider] for usage information. | 990 * See [EventStreamProvider] for usage information. |
991 */ | 991 */ |
992 @DomName('IDBRequest.successEvent') | 992 @DomName('IDBRequest.successEvent') |
993 @DocsEditable() | 993 @DocsEditable() |
994 static const EventStreamProvider<Event> successEvent = const EventStreamProvid
er<Event>('success'); | 994 static const EventStreamProvider<Event> successEvent = const EventStreamProvid
er<Event>('success'); |
995 | 995 |
996 @DomName('IDBRequest.error') | 996 @DomName('IDBRequest.error') |
997 @DocsEditable() | 997 @DocsEditable() |
998 DomError get error => _blink.BlinkIDBRequest.error_Getter(this); | 998 DomError get error => _blink.BlinkIDBRequest.instance.error_Getter_(this); |
999 | 999 |
1000 @DomName('IDBRequest.readyState') | 1000 @DomName('IDBRequest.readyState') |
1001 @DocsEditable() | 1001 @DocsEditable() |
1002 String get readyState => _blink.BlinkIDBRequest.readyState_Getter(this); | 1002 String get readyState => _blink.BlinkIDBRequest.instance.readyState_Getter_(th
is); |
1003 | 1003 |
1004 @DomName('IDBRequest.result') | 1004 @DomName('IDBRequest.result') |
1005 @DocsEditable() | 1005 @DocsEditable() |
1006 Object get result => _blink.BlinkIDBRequest.result_Getter(this); | 1006 Object get result => _blink.BlinkIDBRequest.instance.result_Getter_(this); |
1007 | 1007 |
1008 @DomName('IDBRequest.source') | 1008 @DomName('IDBRequest.source') |
1009 @DocsEditable() | 1009 @DocsEditable() |
1010 Object get source => _blink.BlinkIDBRequest.source_Getter(this); | 1010 Object get source => _blink.BlinkIDBRequest.instance.source_Getter_(this); |
1011 | 1011 |
1012 @DomName('IDBRequest.transaction') | 1012 @DomName('IDBRequest.transaction') |
1013 @DocsEditable() | 1013 @DocsEditable() |
1014 Transaction get transaction => _blink.BlinkIDBRequest.transaction_Getter(this)
; | 1014 Transaction get transaction => _blink.BlinkIDBRequest.instance.transaction_Get
ter_(this); |
1015 | 1015 |
1016 /// Stream of `error` events handled by this [Request]. | 1016 /// Stream of `error` events handled by this [Request]. |
1017 @DomName('IDBRequest.onerror') | 1017 @DomName('IDBRequest.onerror') |
1018 @DocsEditable() | 1018 @DocsEditable() |
1019 Stream<Event> get onError => errorEvent.forTarget(this); | 1019 Stream<Event> get onError => errorEvent.forTarget(this); |
1020 | 1020 |
1021 /// Stream of `success` events handled by this [Request]. | 1021 /// Stream of `success` events handled by this [Request]. |
1022 @DomName('IDBRequest.onsuccess') | 1022 @DomName('IDBRequest.onsuccess') |
1023 @DocsEditable() | 1023 @DocsEditable() |
1024 Stream<Event> get onSuccess => successEvent.forTarget(this); | 1024 Stream<Event> get onSuccess => successEvent.forTarget(this); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1089 * handlers that are not necessarily instances of [Transaction]. | 1089 * handlers that are not necessarily instances of [Transaction]. |
1090 * | 1090 * |
1091 * See [EventStreamProvider] for usage information. | 1091 * See [EventStreamProvider] for usage information. |
1092 */ | 1092 */ |
1093 @DomName('IDBTransaction.errorEvent') | 1093 @DomName('IDBTransaction.errorEvent') |
1094 @DocsEditable() | 1094 @DocsEditable() |
1095 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider
<Event>('error'); | 1095 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider
<Event>('error'); |
1096 | 1096 |
1097 @DomName('IDBTransaction.db') | 1097 @DomName('IDBTransaction.db') |
1098 @DocsEditable() | 1098 @DocsEditable() |
1099 Database get db => _blink.BlinkIDBTransaction.db_Getter(this); | 1099 Database get db => _blink.BlinkIDBTransaction.instance.db_Getter_(this); |
1100 | 1100 |
1101 @DomName('IDBTransaction.error') | 1101 @DomName('IDBTransaction.error') |
1102 @DocsEditable() | 1102 @DocsEditable() |
1103 DomError get error => _blink.BlinkIDBTransaction.error_Getter(this); | 1103 DomError get error => _blink.BlinkIDBTransaction.instance.error_Getter_(this); |
1104 | 1104 |
1105 @DomName('IDBTransaction.mode') | 1105 @DomName('IDBTransaction.mode') |
1106 @DocsEditable() | 1106 @DocsEditable() |
1107 String get mode => _blink.BlinkIDBTransaction.mode_Getter(this); | 1107 String get mode => _blink.BlinkIDBTransaction.instance.mode_Getter_(this); |
1108 | 1108 |
1109 @DomName('IDBTransaction.abort') | 1109 @DomName('IDBTransaction.abort') |
1110 @DocsEditable() | 1110 @DocsEditable() |
1111 void abort() => _blink.BlinkIDBTransaction.abort_Callback_0(this); | 1111 void abort() => _blink.BlinkIDBTransaction.instance.abort_Callback_0_(this); |
1112 | 1112 |
1113 @DomName('IDBTransaction.objectStore') | 1113 @DomName('IDBTransaction.objectStore') |
1114 @DocsEditable() | 1114 @DocsEditable() |
1115 ObjectStore objectStore(String name) => _blink.BlinkIDBTransaction.objectStore
_Callback_1(this, name); | 1115 ObjectStore objectStore(String name) => _blink.BlinkIDBTransaction.instance.ob
jectStore_Callback_1_(this, name); |
1116 | 1116 |
1117 /// Stream of `abort` events handled by this [Transaction]. | 1117 /// Stream of `abort` events handled by this [Transaction]. |
1118 @DomName('IDBTransaction.onabort') | 1118 @DomName('IDBTransaction.onabort') |
1119 @DocsEditable() | 1119 @DocsEditable() |
1120 Stream<Event> get onAbort => abortEvent.forTarget(this); | 1120 Stream<Event> get onAbort => abortEvent.forTarget(this); |
1121 | 1121 |
1122 /// Stream of `complete` events handled by this [Transaction]. | 1122 /// Stream of `complete` events handled by this [Transaction]. |
1123 @DomName('IDBTransaction.oncomplete') | 1123 @DomName('IDBTransaction.oncomplete') |
1124 @DocsEditable() | 1124 @DocsEditable() |
1125 Stream<Event> get onComplete => completeEvent.forTarget(this); | 1125 Stream<Event> get onComplete => completeEvent.forTarget(this); |
(...skipping 14 matching lines...) Expand all Loading... |
1140 @DocsEditable() | 1140 @DocsEditable() |
1141 @DomName('IDBVersionChangeEvent') | 1141 @DomName('IDBVersionChangeEvent') |
1142 @Unstable() | 1142 @Unstable() |
1143 class VersionChangeEvent extends Event { | 1143 class VersionChangeEvent extends Event { |
1144 // To suppress missing implicit constructor warnings. | 1144 // To suppress missing implicit constructor warnings. |
1145 factory VersionChangeEvent._() { throw new UnsupportedError("Not supported");
} | 1145 factory VersionChangeEvent._() { throw new UnsupportedError("Not supported");
} |
1146 | 1146 |
1147 @DomName('IDBVersionChangeEvent.dataLoss') | 1147 @DomName('IDBVersionChangeEvent.dataLoss') |
1148 @DocsEditable() | 1148 @DocsEditable() |
1149 @Experimental() // untriaged | 1149 @Experimental() // untriaged |
1150 String get dataLoss => _blink.BlinkIDBVersionChangeEvent.dataLoss_Getter(this)
; | 1150 String get dataLoss => _blink.BlinkIDBVersionChangeEvent.instance.dataLoss_Get
ter_(this); |
1151 | 1151 |
1152 @DomName('IDBVersionChangeEvent.dataLossMessage') | 1152 @DomName('IDBVersionChangeEvent.dataLossMessage') |
1153 @DocsEditable() | 1153 @DocsEditable() |
1154 @Experimental() // untriaged | 1154 @Experimental() // untriaged |
1155 String get dataLossMessage => _blink.BlinkIDBVersionChangeEvent.dataLossMessag
e_Getter(this); | 1155 String get dataLossMessage => _blink.BlinkIDBVersionChangeEvent.instance.dataL
ossMessage_Getter_(this); |
1156 | 1156 |
1157 @DomName('IDBVersionChangeEvent.newVersion') | 1157 @DomName('IDBVersionChangeEvent.newVersion') |
1158 @DocsEditable() | 1158 @DocsEditable() |
1159 int get newVersion => _blink.BlinkIDBVersionChangeEvent.newVersion_Getter(this
); | 1159 int get newVersion => _blink.BlinkIDBVersionChangeEvent.instance.newVersion_Ge
tter_(this); |
1160 | 1160 |
1161 @DomName('IDBVersionChangeEvent.oldVersion') | 1161 @DomName('IDBVersionChangeEvent.oldVersion') |
1162 @DocsEditable() | 1162 @DocsEditable() |
1163 int get oldVersion => _blink.BlinkIDBVersionChangeEvent.oldVersion_Getter(this
); | 1163 int get oldVersion => _blink.BlinkIDBVersionChangeEvent.instance.oldVersion_Ge
tter_(this); |
1164 | 1164 |
1165 } | 1165 } |
OLD | NEW |