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 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 @DocsEditable() | 442 @DocsEditable() |
443 static const EventStreamProvider<VersionChangeEvent> versionChangeEvent = | 443 static const EventStreamProvider<VersionChangeEvent> versionChangeEvent = |
444 const EventStreamProvider<VersionChangeEvent>('versionchange'); | 444 const EventStreamProvider<VersionChangeEvent>('versionchange'); |
445 | 445 |
446 @DomName('IDBDatabase.name') | 446 @DomName('IDBDatabase.name') |
447 @DocsEditable() | 447 @DocsEditable() |
448 final String name; | 448 final String name; |
449 | 449 |
450 @DomName('IDBDatabase.objectStoreNames') | 450 @DomName('IDBDatabase.objectStoreNames') |
451 @DocsEditable() | 451 @DocsEditable() |
452 @Returns('DomStringList') | 452 @Returns('DomStringList|Null') |
453 @Creates('DomStringList') | 453 @Creates('DomStringList') |
454 final List<String> objectStoreNames; | 454 final List<String> objectStoreNames; |
455 | 455 |
456 @DomName('IDBDatabase.version') | 456 @DomName('IDBDatabase.version') |
457 @DocsEditable() | 457 @DocsEditable() |
458 @Creates('int|String|Null') | 458 @Creates('int|String|Null') |
459 @Returns('int|String|Null') | 459 @Returns('int|String|Null') |
460 final Object version; | 460 final Object version; |
461 | 461 |
462 @DomName('IDBDatabase.close') | 462 @DomName('IDBDatabase.close') |
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1029 factory ObjectStore._() { | 1029 factory ObjectStore._() { |
1030 throw new UnsupportedError("Not supported"); | 1030 throw new UnsupportedError("Not supported"); |
1031 } | 1031 } |
1032 | 1032 |
1033 @DomName('IDBObjectStore.autoIncrement') | 1033 @DomName('IDBObjectStore.autoIncrement') |
1034 @DocsEditable() | 1034 @DocsEditable() |
1035 final bool autoIncrement; | 1035 final bool autoIncrement; |
1036 | 1036 |
1037 @DomName('IDBObjectStore.indexNames') | 1037 @DomName('IDBObjectStore.indexNames') |
1038 @DocsEditable() | 1038 @DocsEditable() |
1039 @Returns('DomStringList') | 1039 @Returns('DomStringList|Null') |
1040 @Creates('DomStringList') | 1040 @Creates('DomStringList') |
1041 final List<String> indexNames; | 1041 final List<String> indexNames; |
1042 | 1042 |
1043 @DomName('IDBObjectStore.keyPath') | 1043 @DomName('IDBObjectStore.keyPath') |
1044 @DocsEditable() | 1044 @DocsEditable() |
1045 @annotation_Creates_SerializedScriptValue | 1045 @annotation_Creates_SerializedScriptValue |
1046 final Object keyPath; | 1046 final Object keyPath; |
1047 | 1047 |
1048 @DomName('IDBObjectStore.name') | 1048 @DomName('IDBObjectStore.name') |
1049 @DocsEditable() | 1049 @DocsEditable() |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1417 @DocsEditable() | 1417 @DocsEditable() |
1418 final DomError error; | 1418 final DomError error; |
1419 | 1419 |
1420 @DomName('IDBTransaction.mode') | 1420 @DomName('IDBTransaction.mode') |
1421 @DocsEditable() | 1421 @DocsEditable() |
1422 final String mode; | 1422 final String mode; |
1423 | 1423 |
1424 @DomName('IDBTransaction.objectStoreNames') | 1424 @DomName('IDBTransaction.objectStoreNames') |
1425 @DocsEditable() | 1425 @DocsEditable() |
1426 @Experimental() // untriaged | 1426 @Experimental() // untriaged |
1427 @Returns('DomStringList') | 1427 @Returns('DomStringList|Null') |
1428 @Creates('DomStringList') | 1428 @Creates('DomStringList') |
1429 final List<String> objectStoreNames; | 1429 final List<String> objectStoreNames; |
1430 | 1430 |
1431 @DomName('IDBTransaction.abort') | 1431 @DomName('IDBTransaction.abort') |
1432 @DocsEditable() | 1432 @DocsEditable() |
1433 void abort() native; | 1433 void abort() native; |
1434 | 1434 |
1435 @DomName('IDBTransaction.objectStore') | 1435 @DomName('IDBTransaction.objectStore') |
1436 @DocsEditable() | 1436 @DocsEditable() |
1437 ObjectStore objectStore(String name) native; | 1437 ObjectStore objectStore(String name) native; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1497 @Creates('int|String|Null') | 1497 @Creates('int|String|Null') |
1498 @Returns('int|String|Null') | 1498 @Returns('int|String|Null') |
1499 final int newVersion; | 1499 final int newVersion; |
1500 | 1500 |
1501 @DomName('IDBVersionChangeEvent.oldVersion') | 1501 @DomName('IDBVersionChangeEvent.oldVersion') |
1502 @DocsEditable() | 1502 @DocsEditable() |
1503 @Creates('int|String|Null') | 1503 @Creates('int|String|Null') |
1504 @Returns('int|String|Null') | 1504 @Returns('int|String|Null') |
1505 final int oldVersion; | 1505 final int oldVersion; |
1506 } | 1506 } |
OLD | NEW |