| 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 | 171 |
| 172 @Deprecated("Internal Use Only") | 172 @Deprecated("Internal Use Only") |
| 173 static Cursor internalCreateCursor() { | 173 static Cursor internalCreateCursor() { |
| 174 return new Cursor._internalWrap(); | 174 return new Cursor._internalWrap(); |
| 175 } | 175 } |
| 176 | 176 |
| 177 factory Cursor._internalWrap() { | 177 factory Cursor._internalWrap() { |
| 178 return new Cursor.internal_(); | 178 return new Cursor.internal_(); |
| 179 } | 179 } |
| 180 | 180 |
| 181 @Deprecated("Internal Use Only") |
| 181 Cursor.internal_() { } | 182 Cursor.internal_() { } |
| 182 | 183 |
| 183 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(
this, other); | 184 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(
this, other); |
| 184 int get hashCode => unwrap_jso(this).hashCode; | 185 int get hashCode => unwrap_jso(this).hashCode; |
| 185 | 186 |
| 186 @DomName('IDBCursor.direction') | 187 @DomName('IDBCursor.direction') |
| 187 @DocsEditable() | 188 @DocsEditable() |
| 188 String get direction => _blink.BlinkIDBCursor.instance.direction_Getter_(unwra
p_jso(this)); | 189 String get direction => _blink.BlinkIDBCursor.instance.direction_Getter_(unwra
p_jso(this)); |
| 189 | 190 |
| 190 @DomName('IDBCursor.key') | 191 @DomName('IDBCursor.key') |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 | 244 |
| 244 @Deprecated("Internal Use Only") | 245 @Deprecated("Internal Use Only") |
| 245 static CursorWithValue internalCreateCursorWithValue() { | 246 static CursorWithValue internalCreateCursorWithValue() { |
| 246 return new CursorWithValue._internalWrap(); | 247 return new CursorWithValue._internalWrap(); |
| 247 } | 248 } |
| 248 | 249 |
| 249 factory CursorWithValue._internalWrap() { | 250 factory CursorWithValue._internalWrap() { |
| 250 return new CursorWithValue.internal_(); | 251 return new CursorWithValue.internal_(); |
| 251 } | 252 } |
| 252 | 253 |
| 254 @Deprecated("Internal Use Only") |
| 253 CursorWithValue.internal_() : super.internal_(); | 255 CursorWithValue.internal_() : super.internal_(); |
| 254 | 256 |
| 255 | 257 |
| 256 @DomName('IDBCursorWithValue.value') | 258 @DomName('IDBCursorWithValue.value') |
| 257 @DocsEditable() | 259 @DocsEditable() |
| 258 Object get value => wrap_jso(_blink.BlinkIDBCursorWithValue.instance.value_Get
ter_(unwrap_jso(this))); | 260 Object get value => wrap_jso(_blink.BlinkIDBCursorWithValue.instance.value_Get
ter_(unwrap_jso(this))); |
| 259 | 261 |
| 260 } | 262 } |
| 261 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 263 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 262 // for details. All rights reserved. Use of this source code is governed by a | 264 // for details. All rights reserved. Use of this source code is governed by a |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 | 341 |
| 340 @Deprecated("Internal Use Only") | 342 @Deprecated("Internal Use Only") |
| 341 static Database internalCreateDatabase() { | 343 static Database internalCreateDatabase() { |
| 342 return new Database._internalWrap(); | 344 return new Database._internalWrap(); |
| 343 } | 345 } |
| 344 | 346 |
| 345 factory Database._internalWrap() { | 347 factory Database._internalWrap() { |
| 346 return new Database.internal_(); | 348 return new Database.internal_(); |
| 347 } | 349 } |
| 348 | 350 |
| 351 @Deprecated("Internal Use Only") |
| 349 Database.internal_() : super.internal_(); | 352 Database.internal_() : super.internal_(); |
| 350 | 353 |
| 351 | 354 |
| 352 @DomName('IDBDatabase.name') | 355 @DomName('IDBDatabase.name') |
| 353 @DocsEditable() | 356 @DocsEditable() |
| 354 String get name => _blink.BlinkIDBDatabase.instance.name_Getter_(unwrap_jso(th
is)); | 357 String get name => _blink.BlinkIDBDatabase.instance.name_Getter_(unwrap_jso(th
is)); |
| 355 | 358 |
| 356 @DomName('IDBDatabase.objectStoreNames') | 359 @DomName('IDBDatabase.objectStoreNames') |
| 357 @DocsEditable() | 360 @DocsEditable() |
| 358 List<String> get objectStoreNames => _blink.BlinkIDBDatabase.instance.objectSt
oreNames_Getter_(unwrap_jso(this)); | 361 List<String> get objectStoreNames => _blink.BlinkIDBDatabase.instance.objectSt
oreNames_Getter_(unwrap_jso(this)); |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 533 | 536 |
| 534 @Deprecated("Internal Use Only") | 537 @Deprecated("Internal Use Only") |
| 535 static IdbFactory internalCreateIdbFactory() { | 538 static IdbFactory internalCreateIdbFactory() { |
| 536 return new IdbFactory._internalWrap(); | 539 return new IdbFactory._internalWrap(); |
| 537 } | 540 } |
| 538 | 541 |
| 539 factory IdbFactory._internalWrap() { | 542 factory IdbFactory._internalWrap() { |
| 540 return new IdbFactory.internal_(); | 543 return new IdbFactory.internal_(); |
| 541 } | 544 } |
| 542 | 545 |
| 546 @Deprecated("Internal Use Only") |
| 543 IdbFactory.internal_() { } | 547 IdbFactory.internal_() { } |
| 544 | 548 |
| 545 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(
this, other); | 549 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(
this, other); |
| 546 int get hashCode => unwrap_jso(this).hashCode; | 550 int get hashCode => unwrap_jso(this).hashCode; |
| 547 | 551 |
| 548 @DomName('IDBFactory.cmp') | 552 @DomName('IDBFactory.cmp') |
| 549 @DocsEditable() | 553 @DocsEditable() |
| 550 int cmp(Object first, Object second) => _blink.BlinkIDBFactory.instance.cmp_Ca
llback_2_(unwrap_jso(this), first, second); | 554 int cmp(Object first, Object second) => _blink.BlinkIDBFactory.instance.cmp_Ca
llback_2_(unwrap_jso(this), first, second); |
| 551 | 555 |
| 552 @DomName('IDBFactory.deleteDatabase') | 556 @DomName('IDBFactory.deleteDatabase') |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 685 | 689 |
| 686 @Deprecated("Internal Use Only") | 690 @Deprecated("Internal Use Only") |
| 687 static Index internalCreateIndex() { | 691 static Index internalCreateIndex() { |
| 688 return new Index._internalWrap(); | 692 return new Index._internalWrap(); |
| 689 } | 693 } |
| 690 | 694 |
| 691 factory Index._internalWrap() { | 695 factory Index._internalWrap() { |
| 692 return new Index.internal_(); | 696 return new Index.internal_(); |
| 693 } | 697 } |
| 694 | 698 |
| 699 @Deprecated("Internal Use Only") |
| 695 Index.internal_() { } | 700 Index.internal_() { } |
| 696 | 701 |
| 697 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(
this, other); | 702 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(
this, other); |
| 698 int get hashCode => unwrap_jso(this).hashCode; | 703 int get hashCode => unwrap_jso(this).hashCode; |
| 699 | 704 |
| 700 @DomName('IDBIndex.keyPath') | 705 @DomName('IDBIndex.keyPath') |
| 701 @DocsEditable() | 706 @DocsEditable() |
| 702 Object get keyPath => wrap_jso(_blink.BlinkIDBIndex.instance.keyPath_Getter_(u
nwrap_jso(this))); | 707 Object get keyPath => wrap_jso(_blink.BlinkIDBIndex.instance.keyPath_Getter_(u
nwrap_jso(this))); |
| 703 | 708 |
| 704 @DomName('IDBIndex.multiEntry') | 709 @DomName('IDBIndex.multiEntry') |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 775 | 780 |
| 776 @Deprecated("Internal Use Only") | 781 @Deprecated("Internal Use Only") |
| 777 static KeyRange internalCreateKeyRange() { | 782 static KeyRange internalCreateKeyRange() { |
| 778 return new KeyRange._internalWrap(); | 783 return new KeyRange._internalWrap(); |
| 779 } | 784 } |
| 780 | 785 |
| 781 factory KeyRange._internalWrap() { | 786 factory KeyRange._internalWrap() { |
| 782 return new KeyRange.internal_(); | 787 return new KeyRange.internal_(); |
| 783 } | 788 } |
| 784 | 789 |
| 790 @Deprecated("Internal Use Only") |
| 785 KeyRange.internal_() { } | 791 KeyRange.internal_() { } |
| 786 | 792 |
| 787 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(
this, other); | 793 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(
this, other); |
| 788 int get hashCode => unwrap_jso(this).hashCode; | 794 int get hashCode => unwrap_jso(this).hashCode; |
| 789 | 795 |
| 790 @DomName('IDBKeyRange.lower') | 796 @DomName('IDBKeyRange.lower') |
| 791 @DocsEditable() | 797 @DocsEditable() |
| 792 Object get lower => wrap_jso(_blink.BlinkIDBKeyRange.instance.lower_Getter_(un
wrap_jso(this))); | 798 Object get lower => wrap_jso(_blink.BlinkIDBKeyRange.instance.lower_Getter_(un
wrap_jso(this))); |
| 793 | 799 |
| 794 @DomName('IDBKeyRange.lowerOpen') | 800 @DomName('IDBKeyRange.lowerOpen') |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 973 | 979 |
| 974 @Deprecated("Internal Use Only") | 980 @Deprecated("Internal Use Only") |
| 975 static ObjectStore internalCreateObjectStore() { | 981 static ObjectStore internalCreateObjectStore() { |
| 976 return new ObjectStore._internalWrap(); | 982 return new ObjectStore._internalWrap(); |
| 977 } | 983 } |
| 978 | 984 |
| 979 factory ObjectStore._internalWrap() { | 985 factory ObjectStore._internalWrap() { |
| 980 return new ObjectStore.internal_(); | 986 return new ObjectStore.internal_(); |
| 981 } | 987 } |
| 982 | 988 |
| 989 @Deprecated("Internal Use Only") |
| 983 ObjectStore.internal_() { } | 990 ObjectStore.internal_() { } |
| 984 | 991 |
| 985 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(
this, other); | 992 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(
this, other); |
| 986 int get hashCode => unwrap_jso(this).hashCode; | 993 int get hashCode => unwrap_jso(this).hashCode; |
| 987 | 994 |
| 988 @DomName('IDBObjectStore.autoIncrement') | 995 @DomName('IDBObjectStore.autoIncrement') |
| 989 @DocsEditable() | 996 @DocsEditable() |
| 990 bool get autoIncrement => _blink.BlinkIDBObjectStore.instance.autoIncrement_Ge
tter_(unwrap_jso(this)); | 997 bool get autoIncrement => _blink.BlinkIDBObjectStore.instance.autoIncrement_Ge
tter_(unwrap_jso(this)); |
| 991 | 998 |
| 992 @DomName('IDBObjectStore.indexNames') | 999 @DomName('IDBObjectStore.indexNames') |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1138 | 1145 |
| 1139 @Deprecated("Internal Use Only") | 1146 @Deprecated("Internal Use Only") |
| 1140 static OpenDBRequest internalCreateOpenDBRequest() { | 1147 static OpenDBRequest internalCreateOpenDBRequest() { |
| 1141 return new OpenDBRequest._internalWrap(); | 1148 return new OpenDBRequest._internalWrap(); |
| 1142 } | 1149 } |
| 1143 | 1150 |
| 1144 factory OpenDBRequest._internalWrap() { | 1151 factory OpenDBRequest._internalWrap() { |
| 1145 return new OpenDBRequest.internal_(); | 1152 return new OpenDBRequest.internal_(); |
| 1146 } | 1153 } |
| 1147 | 1154 |
| 1155 @Deprecated("Internal Use Only") |
| 1148 OpenDBRequest.internal_() : super.internal_(); | 1156 OpenDBRequest.internal_() : super.internal_(); |
| 1149 | 1157 |
| 1150 | 1158 |
| 1151 /// Stream of `blocked` events handled by this [OpenDBRequest]. | 1159 /// Stream of `blocked` events handled by this [OpenDBRequest]. |
| 1152 @DomName('IDBOpenDBRequest.onblocked') | 1160 @DomName('IDBOpenDBRequest.onblocked') |
| 1153 @DocsEditable() | 1161 @DocsEditable() |
| 1154 Stream<Event> get onBlocked => blockedEvent.forTarget(this); | 1162 Stream<Event> get onBlocked => blockedEvent.forTarget(this); |
| 1155 | 1163 |
| 1156 /// Stream of `upgradeneeded` events handled by this [OpenDBRequest]. | 1164 /// Stream of `upgradeneeded` events handled by this [OpenDBRequest]. |
| 1157 @DomName('IDBOpenDBRequest.onupgradeneeded') | 1165 @DomName('IDBOpenDBRequest.onupgradeneeded') |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1196 | 1204 |
| 1197 @Deprecated("Internal Use Only") | 1205 @Deprecated("Internal Use Only") |
| 1198 static Request internalCreateRequest() { | 1206 static Request internalCreateRequest() { |
| 1199 return new Request._internalWrap(); | 1207 return new Request._internalWrap(); |
| 1200 } | 1208 } |
| 1201 | 1209 |
| 1202 factory Request._internalWrap() { | 1210 factory Request._internalWrap() { |
| 1203 return new Request.internal_(); | 1211 return new Request.internal_(); |
| 1204 } | 1212 } |
| 1205 | 1213 |
| 1214 @Deprecated("Internal Use Only") |
| 1206 Request.internal_() : super.internal_(); | 1215 Request.internal_() : super.internal_(); |
| 1207 | 1216 |
| 1208 | 1217 |
| 1209 @DomName('IDBRequest.error') | 1218 @DomName('IDBRequest.error') |
| 1210 @DocsEditable() | 1219 @DocsEditable() |
| 1211 DomError get error => wrap_jso(_blink.BlinkIDBRequest.instance.error_Getter_(u
nwrap_jso(this))); | 1220 DomError get error => wrap_jso(_blink.BlinkIDBRequest.instance.error_Getter_(u
nwrap_jso(this))); |
| 1212 | 1221 |
| 1213 @DomName('IDBRequest.readyState') | 1222 @DomName('IDBRequest.readyState') |
| 1214 @DocsEditable() | 1223 @DocsEditable() |
| 1215 String get readyState => _blink.BlinkIDBRequest.instance.readyState_Getter_(un
wrap_jso(this)); | 1224 String get readyState => _blink.BlinkIDBRequest.instance.readyState_Getter_(un
wrap_jso(this)); |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1310 | 1319 |
| 1311 @Deprecated("Internal Use Only") | 1320 @Deprecated("Internal Use Only") |
| 1312 static Transaction internalCreateTransaction() { | 1321 static Transaction internalCreateTransaction() { |
| 1313 return new Transaction._internalWrap(); | 1322 return new Transaction._internalWrap(); |
| 1314 } | 1323 } |
| 1315 | 1324 |
| 1316 factory Transaction._internalWrap() { | 1325 factory Transaction._internalWrap() { |
| 1317 return new Transaction.internal_(); | 1326 return new Transaction.internal_(); |
| 1318 } | 1327 } |
| 1319 | 1328 |
| 1329 @Deprecated("Internal Use Only") |
| 1320 Transaction.internal_() : super.internal_(); | 1330 Transaction.internal_() : super.internal_(); |
| 1321 | 1331 |
| 1322 | 1332 |
| 1323 @DomName('IDBTransaction.db') | 1333 @DomName('IDBTransaction.db') |
| 1324 @DocsEditable() | 1334 @DocsEditable() |
| 1325 Database get db => wrap_jso(_blink.BlinkIDBTransaction.instance.db_Getter_(unw
rap_jso(this))); | 1335 Database get db => wrap_jso(_blink.BlinkIDBTransaction.instance.db_Getter_(unw
rap_jso(this))); |
| 1326 | 1336 |
| 1327 @DomName('IDBTransaction.error') | 1337 @DomName('IDBTransaction.error') |
| 1328 @DocsEditable() | 1338 @DocsEditable() |
| 1329 DomError get error => wrap_jso(_blink.BlinkIDBTransaction.instance.error_Gette
r_(unwrap_jso(this))); | 1339 DomError get error => wrap_jso(_blink.BlinkIDBTransaction.instance.error_Gette
r_(unwrap_jso(this))); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1373 | 1383 |
| 1374 @Deprecated("Internal Use Only") | 1384 @Deprecated("Internal Use Only") |
| 1375 static VersionChangeEvent internalCreateVersionChangeEvent() { | 1385 static VersionChangeEvent internalCreateVersionChangeEvent() { |
| 1376 return new VersionChangeEvent._internalWrap(); | 1386 return new VersionChangeEvent._internalWrap(); |
| 1377 } | 1387 } |
| 1378 | 1388 |
| 1379 factory VersionChangeEvent._internalWrap() { | 1389 factory VersionChangeEvent._internalWrap() { |
| 1380 return new VersionChangeEvent.internal_(); | 1390 return new VersionChangeEvent.internal_(); |
| 1381 } | 1391 } |
| 1382 | 1392 |
| 1393 @Deprecated("Internal Use Only") |
| 1383 VersionChangeEvent.internal_() : super.internal_(); | 1394 VersionChangeEvent.internal_() : super.internal_(); |
| 1384 | 1395 |
| 1385 | 1396 |
| 1386 @DomName('IDBVersionChangeEvent.dataLoss') | 1397 @DomName('IDBVersionChangeEvent.dataLoss') |
| 1387 @DocsEditable() | 1398 @DocsEditable() |
| 1388 @Experimental() // untriaged | 1399 @Experimental() // untriaged |
| 1389 String get dataLoss => _blink.BlinkIDBVersionChangeEvent.instance.dataLoss_Get
ter_(unwrap_jso(this)); | 1400 String get dataLoss => _blink.BlinkIDBVersionChangeEvent.instance.dataLoss_Get
ter_(unwrap_jso(this)); |
| 1390 | 1401 |
| 1391 @DomName('IDBVersionChangeEvent.dataLossMessage') | 1402 @DomName('IDBVersionChangeEvent.dataLossMessage') |
| 1392 @DocsEditable() | 1403 @DocsEditable() |
| 1393 @Experimental() // untriaged | 1404 @Experimental() // untriaged |
| 1394 String get dataLossMessage => _blink.BlinkIDBVersionChangeEvent.instance.dataL
ossMessage_Getter_(unwrap_jso(this)); | 1405 String get dataLossMessage => _blink.BlinkIDBVersionChangeEvent.instance.dataL
ossMessage_Getter_(unwrap_jso(this)); |
| 1395 | 1406 |
| 1396 @DomName('IDBVersionChangeEvent.newVersion') | 1407 @DomName('IDBVersionChangeEvent.newVersion') |
| 1397 @DocsEditable() | 1408 @DocsEditable() |
| 1398 int get newVersion => _blink.BlinkIDBVersionChangeEvent.instance.newVersion_Ge
tter_(unwrap_jso(this)); | 1409 int get newVersion => _blink.BlinkIDBVersionChangeEvent.instance.newVersion_Ge
tter_(unwrap_jso(this)); |
| 1399 | 1410 |
| 1400 @DomName('IDBVersionChangeEvent.oldVersion') | 1411 @DomName('IDBVersionChangeEvent.oldVersion') |
| 1401 @DocsEditable() | 1412 @DocsEditable() |
| 1402 int get oldVersion => _blink.BlinkIDBVersionChangeEvent.instance.oldVersion_Ge
tter_(unwrap_jso(this)); | 1413 int get oldVersion => _blink.BlinkIDBVersionChangeEvent.instance.oldVersion_Ge
tter_(unwrap_jso(this)); |
| 1403 | 1414 |
| 1404 } | 1415 } |
| OLD | NEW |