OLD | NEW |
1 /** | 1 /** |
2 * A client-side key-value store with support for indexes. | 2 * A client-side key-value store with support for indexes. |
3 * | 3 * |
4 * Many browsers support IndexedDB—a web standard for | 4 * Many browsers support IndexedDB—a web standard for |
5 * an indexed database. | 5 * an indexed database. |
6 * By storing data on the client in an IndexedDB, | 6 * By storing data on the client in an IndexedDB, |
7 * a web app gets some advantages, such as faster performance and persistence. | 7 * a web app gets some advantages, such as faster performance and persistence. |
8 * To find out which browsers support IndexedDB, | 8 * To find out which browsers support IndexedDB, |
9 * refer to [Can I Use?](http://caniuse.com/#feat=indexeddb) | 9 * refer to [Can I Use?](http://caniuse.com/#feat=indexeddb) |
10 * | 10 * |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 try { | 144 try { |
145 return _completeRequest(_update(value)); | 145 return _completeRequest(_update(value)); |
146 } catch (e, stacktrace) { | 146 } catch (e, stacktrace) { |
147 return new Future.error(e, stacktrace); | 147 return new Future.error(e, stacktrace); |
148 } | 148 } |
149 } | 149 } |
150 | 150 |
151 // To suppress missing implicit constructor warnings. | 151 // To suppress missing implicit constructor warnings. |
152 factory Cursor._() { throw new UnsupportedError("Not supported"); } | 152 factory Cursor._() { throw new UnsupportedError("Not supported"); } |
153 | 153 |
154 static Cursor internalCreateCursor() { | |
155 return new Cursor._internalWrap(); | |
156 } | |
157 | |
158 JsObject blink_jsObject = null; | |
159 | |
160 factory Cursor._internalWrap() { | |
161 return new Cursor._internal(); | |
162 } | |
163 | |
164 Cursor._internal() { } | |
165 | |
166 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(
this, other); | |
167 | |
168 @DomName('IDBCursor.direction') | 154 @DomName('IDBCursor.direction') |
169 @DocsEditable() | 155 @DocsEditable() |
170 String get direction => _blink.BlinkIDBCursor.instance.direction_Getter_(unwra
p_jso(this)); | 156 String get direction => _blink.BlinkIDBCursor.instance.direction_Getter_(unwra
p_jso(this)); |
171 | 157 |
172 @DomName('IDBCursor.key') | 158 @DomName('IDBCursor.key') |
173 @DocsEditable() | 159 @DocsEditable() |
174 Object get key => _blink.BlinkIDBCursor.instance.key_Getter_(unwrap_jso(this))
; | 160 Object get key => _blink.BlinkIDBCursor.instance.key_Getter_(unwrap_jso(this))
; |
175 | 161 |
176 @DomName('IDBCursor.primaryKey') | 162 @DomName('IDBCursor.primaryKey') |
177 @DocsEditable() | 163 @DocsEditable() |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 // WARNING: Do not edit - generated code. | 201 // WARNING: Do not edit - generated code. |
216 | 202 |
217 | 203 |
218 @DocsEditable() | 204 @DocsEditable() |
219 @DomName('IDBCursorWithValue') | 205 @DomName('IDBCursorWithValue') |
220 @Unstable() | 206 @Unstable() |
221 class CursorWithValue extends Cursor { | 207 class CursorWithValue extends Cursor { |
222 // To suppress missing implicit constructor warnings. | 208 // To suppress missing implicit constructor warnings. |
223 factory CursorWithValue._() { throw new UnsupportedError("Not supported"); } | 209 factory CursorWithValue._() { throw new UnsupportedError("Not supported"); } |
224 | 210 |
225 | |
226 static CursorWithValue internalCreateCursorWithValue() { | |
227 return new CursorWithValue._internalWrap(); | |
228 } | |
229 | |
230 factory CursorWithValue._internalWrap() { | |
231 return new CursorWithValue._internal(); | |
232 } | |
233 | |
234 CursorWithValue._internal() : super._internal(); | |
235 | |
236 | |
237 @DomName('IDBCursorWithValue.value') | 211 @DomName('IDBCursorWithValue.value') |
238 @DocsEditable() | 212 @DocsEditable() |
239 Object get value => _blink.BlinkIDBCursorWithValue.instance.value_Getter_(unwr
ap_jso(this)); | 213 Object get value => _blink.BlinkIDBCursorWithValue.instance.value_Getter_(unwr
ap_jso(this)); |
240 | 214 |
241 } | 215 } |
242 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 216 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
243 // for details. All rights reserved. Use of this source code is governed by a | 217 // for details. All rights reserved. Use of this source code is governed by a |
244 // BSD-style license that can be found in the LICENSE file. | 218 // BSD-style license that can be found in the LICENSE file. |
245 | 219 |
246 | 220 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 /** | 284 /** |
311 * Static factory designed to expose `versionchange` events to event | 285 * Static factory designed to expose `versionchange` events to event |
312 * handlers that are not necessarily instances of [Database]. | 286 * handlers that are not necessarily instances of [Database]. |
313 * | 287 * |
314 * See [EventStreamProvider] for usage information. | 288 * See [EventStreamProvider] for usage information. |
315 */ | 289 */ |
316 @DomName('IDBDatabase.versionchangeEvent') | 290 @DomName('IDBDatabase.versionchangeEvent') |
317 @DocsEditable() | 291 @DocsEditable() |
318 static const EventStreamProvider<VersionChangeEvent> versionChangeEvent = cons
t EventStreamProvider<VersionChangeEvent>('versionchange'); | 292 static const EventStreamProvider<VersionChangeEvent> versionChangeEvent = cons
t EventStreamProvider<VersionChangeEvent>('versionchange'); |
319 | 293 |
320 | |
321 static Database internalCreateDatabase() { | |
322 return new Database._internalWrap(); | |
323 } | |
324 | |
325 factory Database._internalWrap() { | |
326 return new Database._internal(); | |
327 } | |
328 | |
329 Database._internal() : super._internal(); | |
330 | |
331 | |
332 @DomName('IDBDatabase.name') | 294 @DomName('IDBDatabase.name') |
333 @DocsEditable() | 295 @DocsEditable() |
334 String get name => _blink.BlinkIDBDatabase.instance.name_Getter_(unwrap_jso(th
is)); | 296 String get name => _blink.BlinkIDBDatabase.instance.name_Getter_(unwrap_jso(th
is)); |
335 | 297 |
336 @DomName('IDBDatabase.objectStoreNames') | 298 @DomName('IDBDatabase.objectStoreNames') |
337 @DocsEditable() | 299 @DocsEditable() |
338 List<String> get objectStoreNames => _blink.BlinkIDBDatabase.instance.objectSt
oreNames_Getter_(unwrap_jso(this)); | 300 List<String> get objectStoreNames => _blink.BlinkIDBDatabase.instance.objectSt
oreNames_Getter_(unwrap_jso(this)); |
339 | 301 |
340 @DomName('IDBDatabase.version') | 302 @DomName('IDBDatabase.version') |
341 @DocsEditable() | 303 @DocsEditable() |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
504 /** | 466 /** |
505 * Checks to see if getDatabaseNames is supported by the current platform. | 467 * Checks to see if getDatabaseNames is supported by the current platform. |
506 */ | 468 */ |
507 bool get supportsDatabaseNames { | 469 bool get supportsDatabaseNames { |
508 return true; | 470 return true; |
509 } | 471 } |
510 | 472 |
511 // To suppress missing implicit constructor warnings. | 473 // To suppress missing implicit constructor warnings. |
512 factory IdbFactory._() { throw new UnsupportedError("Not supported"); } | 474 factory IdbFactory._() { throw new UnsupportedError("Not supported"); } |
513 | 475 |
514 static IdbFactory internalCreateIdbFactory() { | |
515 return new IdbFactory._internalWrap(); | |
516 } | |
517 | |
518 JsObject blink_jsObject = null; | |
519 | |
520 factory IdbFactory._internalWrap() { | |
521 return new IdbFactory._internal(); | |
522 } | |
523 | |
524 IdbFactory._internal() { } | |
525 | |
526 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(
this, other); | |
527 | |
528 @DomName('IDBFactory.cmp') | 476 @DomName('IDBFactory.cmp') |
529 @DocsEditable() | 477 @DocsEditable() |
530 int cmp(Object first, Object second) => _blink.BlinkIDBFactory.instance.cmp_Ca
llback_2_(unwrap_jso(this), first, second); | 478 int cmp(Object first, Object second) => _blink.BlinkIDBFactory.instance.cmp_Ca
llback_2_(unwrap_jso(this), first, second); |
531 | 479 |
532 @DomName('IDBFactory.deleteDatabase') | 480 @DomName('IDBFactory.deleteDatabase') |
533 @DocsEditable() | 481 @DocsEditable() |
534 OpenDBRequest _deleteDatabase(String name) => _blink.BlinkIDBFactory.instance.
deleteDatabase_Callback_1_(unwrap_jso(this), name); | 482 OpenDBRequest _deleteDatabase(String name) => _blink.BlinkIDBFactory.instance.
deleteDatabase_Callback_1_(unwrap_jso(this), name); |
535 | 483 |
536 OpenDBRequest _open(String name, [int version]) { | 484 OpenDBRequest _open(String name, [int version]) { |
537 if (version != null) { | 485 if (version != null) { |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
656 request = _openKeyCursor(key_OR_range, "next"); | 604 request = _openKeyCursor(key_OR_range, "next"); |
657 } else { | 605 } else { |
658 request = _openKeyCursor(key_OR_range, direction); | 606 request = _openKeyCursor(key_OR_range, direction); |
659 } | 607 } |
660 return ObjectStore._cursorStreamFromResult(request, autoAdvance); | 608 return ObjectStore._cursorStreamFromResult(request, autoAdvance); |
661 } | 609 } |
662 | 610 |
663 // To suppress missing implicit constructor warnings. | 611 // To suppress missing implicit constructor warnings. |
664 factory Index._() { throw new UnsupportedError("Not supported"); } | 612 factory Index._() { throw new UnsupportedError("Not supported"); } |
665 | 613 |
666 static Index internalCreateIndex() { | |
667 return new Index._internalWrap(); | |
668 } | |
669 | |
670 JsObject blink_jsObject = null; | |
671 | |
672 factory Index._internalWrap() { | |
673 return new Index._internal(); | |
674 } | |
675 | |
676 Index._internal() { } | |
677 | |
678 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(
this, other); | |
679 | |
680 @DomName('IDBIndex.keyPath') | 614 @DomName('IDBIndex.keyPath') |
681 @DocsEditable() | 615 @DocsEditable() |
682 Object get keyPath => _blink.BlinkIDBIndex.instance.keyPath_Getter_(unwrap_jso
(this)); | 616 Object get keyPath => _blink.BlinkIDBIndex.instance.keyPath_Getter_(unwrap_jso
(this)); |
683 | 617 |
684 @DomName('IDBIndex.multiEntry') | 618 @DomName('IDBIndex.multiEntry') |
685 @DocsEditable() | 619 @DocsEditable() |
686 bool get multiEntry => _blink.BlinkIDBIndex.instance.multiEntry_Getter_(unwrap
_jso(this)); | 620 bool get multiEntry => _blink.BlinkIDBIndex.instance.multiEntry_Getter_(unwrap
_jso(this)); |
687 | 621 |
688 @DomName('IDBIndex.name') | 622 @DomName('IDBIndex.name') |
689 @DocsEditable() | 623 @DocsEditable() |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
746 | 680 |
747 @DomName('KeyRange.bound') | 681 @DomName('KeyRange.bound') |
748 factory KeyRange.bound(/*Key*/ lower, /*Key*/ upper, | 682 factory KeyRange.bound(/*Key*/ lower, /*Key*/ upper, |
749 [bool lowerOpen = false, bool upperOpen = false]) => | 683 [bool lowerOpen = false, bool upperOpen = false]) => |
750 _KeyRangeFactoryProvider.createKeyRange_bound( | 684 _KeyRangeFactoryProvider.createKeyRange_bound( |
751 lower, upper, lowerOpen, upperOpen); | 685 lower, upper, lowerOpen, upperOpen); |
752 | 686 |
753 // To suppress missing implicit constructor warnings. | 687 // To suppress missing implicit constructor warnings. |
754 factory KeyRange._() { throw new UnsupportedError("Not supported"); } | 688 factory KeyRange._() { throw new UnsupportedError("Not supported"); } |
755 | 689 |
756 static KeyRange internalCreateKeyRange() { | |
757 return new KeyRange._internalWrap(); | |
758 } | |
759 | |
760 JsObject blink_jsObject = null; | |
761 | |
762 factory KeyRange._internalWrap() { | |
763 return new KeyRange._internal(); | |
764 } | |
765 | |
766 KeyRange._internal() { } | |
767 | |
768 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(
this, other); | |
769 | |
770 @DomName('IDBKeyRange.lower') | 690 @DomName('IDBKeyRange.lower') |
771 @DocsEditable() | 691 @DocsEditable() |
772 Object get lower => _blink.BlinkIDBKeyRange.instance.lower_Getter_(unwrap_jso(
this)); | 692 Object get lower => _blink.BlinkIDBKeyRange.instance.lower_Getter_(unwrap_jso(
this)); |
773 | 693 |
774 @DomName('IDBKeyRange.lowerOpen') | 694 @DomName('IDBKeyRange.lowerOpen') |
775 @DocsEditable() | 695 @DocsEditable() |
776 bool get lowerOpen => _blink.BlinkIDBKeyRange.instance.lowerOpen_Getter_(unwra
p_jso(this)); | 696 bool get lowerOpen => _blink.BlinkIDBKeyRange.instance.lowerOpen_Getter_(unwra
p_jso(this)); |
777 | 697 |
778 @DomName('IDBKeyRange.upper') | 698 @DomName('IDBKeyRange.upper') |
779 @DocsEditable() | 699 @DocsEditable() |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
944 if (multiEntry != null) { | 864 if (multiEntry != null) { |
945 options['multiEntry'] = multiEntry; | 865 options['multiEntry'] = multiEntry; |
946 } | 866 } |
947 | 867 |
948 return _createIndex(name, keyPath, options); | 868 return _createIndex(name, keyPath, options); |
949 } | 869 } |
950 | 870 |
951 // To suppress missing implicit constructor warnings. | 871 // To suppress missing implicit constructor warnings. |
952 factory ObjectStore._() { throw new UnsupportedError("Not supported"); } | 872 factory ObjectStore._() { throw new UnsupportedError("Not supported"); } |
953 | 873 |
954 static ObjectStore internalCreateObjectStore() { | |
955 return new ObjectStore._internalWrap(); | |
956 } | |
957 | |
958 JsObject blink_jsObject = null; | |
959 | |
960 factory ObjectStore._internalWrap() { | |
961 return new ObjectStore._internal(); | |
962 } | |
963 | |
964 ObjectStore._internal() { } | |
965 | |
966 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(
this, other); | |
967 | |
968 @DomName('IDBObjectStore.autoIncrement') | 874 @DomName('IDBObjectStore.autoIncrement') |
969 @DocsEditable() | 875 @DocsEditable() |
970 bool get autoIncrement => _blink.BlinkIDBObjectStore.instance.autoIncrement_Ge
tter_(unwrap_jso(this)); | 876 bool get autoIncrement => _blink.BlinkIDBObjectStore.instance.autoIncrement_Ge
tter_(unwrap_jso(this)); |
971 | 877 |
972 @DomName('IDBObjectStore.indexNames') | 878 @DomName('IDBObjectStore.indexNames') |
973 @DocsEditable() | 879 @DocsEditable() |
974 List<String> get indexNames => _blink.BlinkIDBObjectStore.instance.indexNames_
Getter_(unwrap_jso(this)); | 880 List<String> get indexNames => _blink.BlinkIDBObjectStore.instance.indexNames_
Getter_(unwrap_jso(this)); |
975 | 881 |
976 @DomName('IDBObjectStore.keyPath') | 882 @DomName('IDBObjectStore.keyPath') |
977 @DocsEditable() | 883 @DocsEditable() |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1108 /** | 1014 /** |
1109 * Static factory designed to expose `upgradeneeded` events to event | 1015 * Static factory designed to expose `upgradeneeded` events to event |
1110 * handlers that are not necessarily instances of [OpenDBRequest]. | 1016 * handlers that are not necessarily instances of [OpenDBRequest]. |
1111 * | 1017 * |
1112 * See [EventStreamProvider] for usage information. | 1018 * See [EventStreamProvider] for usage information. |
1113 */ | 1019 */ |
1114 @DomName('IDBOpenDBRequest.upgradeneededEvent') | 1020 @DomName('IDBOpenDBRequest.upgradeneededEvent') |
1115 @DocsEditable() | 1021 @DocsEditable() |
1116 static const EventStreamProvider<VersionChangeEvent> upgradeNeededEvent = cons
t EventStreamProvider<VersionChangeEvent>('upgradeneeded'); | 1022 static const EventStreamProvider<VersionChangeEvent> upgradeNeededEvent = cons
t EventStreamProvider<VersionChangeEvent>('upgradeneeded'); |
1117 | 1023 |
1118 | |
1119 static OpenDBRequest internalCreateOpenDBRequest() { | |
1120 return new OpenDBRequest._internalWrap(); | |
1121 } | |
1122 | |
1123 factory OpenDBRequest._internalWrap() { | |
1124 return new OpenDBRequest._internal(); | |
1125 } | |
1126 | |
1127 OpenDBRequest._internal() : super._internal(); | |
1128 | |
1129 | |
1130 /// Stream of `blocked` events handled by this [OpenDBRequest]. | 1024 /// Stream of `blocked` events handled by this [OpenDBRequest]. |
1131 @DomName('IDBOpenDBRequest.onblocked') | 1025 @DomName('IDBOpenDBRequest.onblocked') |
1132 @DocsEditable() | 1026 @DocsEditable() |
1133 Stream<Event> get onBlocked => blockedEvent.forTarget(this); | 1027 Stream<Event> get onBlocked => blockedEvent.forTarget(this); |
1134 | 1028 |
1135 /// Stream of `upgradeneeded` events handled by this [OpenDBRequest]. | 1029 /// Stream of `upgradeneeded` events handled by this [OpenDBRequest]. |
1136 @DomName('IDBOpenDBRequest.onupgradeneeded') | 1030 @DomName('IDBOpenDBRequest.onupgradeneeded') |
1137 @DocsEditable() | 1031 @DocsEditable() |
1138 Stream<VersionChangeEvent> get onUpgradeNeeded => upgradeNeededEvent.forTarget
(this); | 1032 Stream<VersionChangeEvent> get onUpgradeNeeded => upgradeNeededEvent.forTarget
(this); |
1139 | 1033 |
(...skipping 25 matching lines...) Expand all Loading... |
1165 /** | 1059 /** |
1166 * Static factory designed to expose `success` events to event | 1060 * Static factory designed to expose `success` events to event |
1167 * handlers that are not necessarily instances of [Request]. | 1061 * handlers that are not necessarily instances of [Request]. |
1168 * | 1062 * |
1169 * See [EventStreamProvider] for usage information. | 1063 * See [EventStreamProvider] for usage information. |
1170 */ | 1064 */ |
1171 @DomName('IDBRequest.successEvent') | 1065 @DomName('IDBRequest.successEvent') |
1172 @DocsEditable() | 1066 @DocsEditable() |
1173 static const EventStreamProvider<Event> successEvent = const EventStreamProvid
er<Event>('success'); | 1067 static const EventStreamProvider<Event> successEvent = const EventStreamProvid
er<Event>('success'); |
1174 | 1068 |
1175 | |
1176 static Request internalCreateRequest() { | |
1177 return new Request._internalWrap(); | |
1178 } | |
1179 | |
1180 factory Request._internalWrap() { | |
1181 return new Request._internal(); | |
1182 } | |
1183 | |
1184 Request._internal() : super._internal(); | |
1185 | |
1186 | |
1187 @DomName('IDBRequest.error') | 1069 @DomName('IDBRequest.error') |
1188 @DocsEditable() | 1070 @DocsEditable() |
1189 DomError get error => wrap_jso(_blink.BlinkIDBRequest.instance.error_Getter_(u
nwrap_jso(this))); | 1071 DomError get error => wrap_jso(_blink.BlinkIDBRequest.instance.error_Getter_(u
nwrap_jso(this))); |
1190 | 1072 |
1191 @DomName('IDBRequest.readyState') | 1073 @DomName('IDBRequest.readyState') |
1192 @DocsEditable() | 1074 @DocsEditable() |
1193 String get readyState => _blink.BlinkIDBRequest.instance.readyState_Getter_(un
wrap_jso(this)); | 1075 String get readyState => _blink.BlinkIDBRequest.instance.readyState_Getter_(un
wrap_jso(this)); |
1194 | 1076 |
1195 @DomName('IDBRequest.result') | 1077 @DomName('IDBRequest.result') |
1196 @DocsEditable() | 1078 @DocsEditable() |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1278 /** | 1160 /** |
1279 * Static factory designed to expose `error` events to event | 1161 * Static factory designed to expose `error` events to event |
1280 * handlers that are not necessarily instances of [Transaction]. | 1162 * handlers that are not necessarily instances of [Transaction]. |
1281 * | 1163 * |
1282 * See [EventStreamProvider] for usage information. | 1164 * See [EventStreamProvider] for usage information. |
1283 */ | 1165 */ |
1284 @DomName('IDBTransaction.errorEvent') | 1166 @DomName('IDBTransaction.errorEvent') |
1285 @DocsEditable() | 1167 @DocsEditable() |
1286 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider
<Event>('error'); | 1168 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider
<Event>('error'); |
1287 | 1169 |
1288 | |
1289 static Transaction internalCreateTransaction() { | |
1290 return new Transaction._internalWrap(); | |
1291 } | |
1292 | |
1293 factory Transaction._internalWrap() { | |
1294 return new Transaction._internal(); | |
1295 } | |
1296 | |
1297 Transaction._internal() : super._internal(); | |
1298 | |
1299 | |
1300 @DomName('IDBTransaction.db') | 1170 @DomName('IDBTransaction.db') |
1301 @DocsEditable() | 1171 @DocsEditable() |
1302 Database get db => wrap_jso(_blink.BlinkIDBTransaction.instance.db_Getter_(unw
rap_jso(this))); | 1172 Database get db => wrap_jso(_blink.BlinkIDBTransaction.instance.db_Getter_(unw
rap_jso(this))); |
1303 | 1173 |
1304 @DomName('IDBTransaction.error') | 1174 @DomName('IDBTransaction.error') |
1305 @DocsEditable() | 1175 @DocsEditable() |
1306 DomError get error => wrap_jso(_blink.BlinkIDBTransaction.instance.error_Gette
r_(unwrap_jso(this))); | 1176 DomError get error => wrap_jso(_blink.BlinkIDBTransaction.instance.error_Gette
r_(unwrap_jso(this))); |
1307 | 1177 |
1308 @DomName('IDBTransaction.mode') | 1178 @DomName('IDBTransaction.mode') |
1309 @DocsEditable() | 1179 @DocsEditable() |
(...skipping 30 matching lines...) Expand all Loading... |
1340 // WARNING: Do not edit - generated code. | 1210 // WARNING: Do not edit - generated code. |
1341 | 1211 |
1342 | 1212 |
1343 @DocsEditable() | 1213 @DocsEditable() |
1344 @DomName('IDBVersionChangeEvent') | 1214 @DomName('IDBVersionChangeEvent') |
1345 @Unstable() | 1215 @Unstable() |
1346 class VersionChangeEvent extends Event { | 1216 class VersionChangeEvent extends Event { |
1347 // To suppress missing implicit constructor warnings. | 1217 // To suppress missing implicit constructor warnings. |
1348 factory VersionChangeEvent._() { throw new UnsupportedError("Not supported");
} | 1218 factory VersionChangeEvent._() { throw new UnsupportedError("Not supported");
} |
1349 | 1219 |
1350 | |
1351 static VersionChangeEvent internalCreateVersionChangeEvent() { | |
1352 return new VersionChangeEvent._internalWrap(); | |
1353 } | |
1354 | |
1355 factory VersionChangeEvent._internalWrap() { | |
1356 return new VersionChangeEvent._internal(); | |
1357 } | |
1358 | |
1359 VersionChangeEvent._internal() : super._internal(); | |
1360 | |
1361 | |
1362 @DomName('IDBVersionChangeEvent.dataLoss') | 1220 @DomName('IDBVersionChangeEvent.dataLoss') |
1363 @DocsEditable() | 1221 @DocsEditable() |
1364 @Experimental() // untriaged | 1222 @Experimental() // untriaged |
1365 String get dataLoss => _blink.BlinkIDBVersionChangeEvent.instance.dataLoss_Get
ter_(unwrap_jso(this)); | 1223 String get dataLoss => _blink.BlinkIDBVersionChangeEvent.instance.dataLoss_Get
ter_(unwrap_jso(this)); |
1366 | 1224 |
1367 @DomName('IDBVersionChangeEvent.dataLossMessage') | 1225 @DomName('IDBVersionChangeEvent.dataLossMessage') |
1368 @DocsEditable() | 1226 @DocsEditable() |
1369 @Experimental() // untriaged | 1227 @Experimental() // untriaged |
1370 String get dataLossMessage => _blink.BlinkIDBVersionChangeEvent.instance.dataL
ossMessage_Getter_(unwrap_jso(this)); | 1228 String get dataLossMessage => _blink.BlinkIDBVersionChangeEvent.instance.dataL
ossMessage_Getter_(unwrap_jso(this)); |
1371 | 1229 |
1372 @DomName('IDBVersionChangeEvent.newVersion') | 1230 @DomName('IDBVersionChangeEvent.newVersion') |
1373 @DocsEditable() | 1231 @DocsEditable() |
1374 int get newVersion => _blink.BlinkIDBVersionChangeEvent.instance.newVersion_Ge
tter_(unwrap_jso(this)); | 1232 int get newVersion => _blink.BlinkIDBVersionChangeEvent.instance.newVersion_Ge
tter_(unwrap_jso(this)); |
1375 | 1233 |
1376 @DomName('IDBVersionChangeEvent.oldVersion') | 1234 @DomName('IDBVersionChangeEvent.oldVersion') |
1377 @DocsEditable() | 1235 @DocsEditable() |
1378 int get oldVersion => _blink.BlinkIDBVersionChangeEvent.instance.oldVersion_Ge
tter_(unwrap_jso(this)); | 1236 int get oldVersion => _blink.BlinkIDBVersionChangeEvent.instance.oldVersion_Ge
tter_(unwrap_jso(this)); |
1379 | 1237 |
1380 } | 1238 } |
OLD | NEW |