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 1104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1115 Index index(String name) native; | 1115 Index index(String name) native; |
1116 | 1116 |
1117 @JSName('openCursor') | 1117 @JSName('openCursor') |
1118 @DomName('IDBObjectStore.openCursor') | 1118 @DomName('IDBObjectStore.openCursor') |
1119 @DocsEditable() | 1119 @DocsEditable() |
1120 @Returns('Request') | 1120 @Returns('Request') |
1121 @Creates('Request') | 1121 @Creates('Request') |
1122 @Creates('Cursor') | 1122 @Creates('Cursor') |
1123 Request _openCursor(Object key, [String direction]) native; | 1123 Request _openCursor(Object key, [String direction]) native; |
1124 | 1124 |
| 1125 @DomName('IDBObjectStore.openKeyCursor') |
| 1126 @DocsEditable() |
| 1127 @Experimental() // untriaged |
| 1128 Request openKeyCursor(Object range, String direction) native; |
| 1129 |
1125 @DomName('IDBObjectStore.put') | 1130 @DomName('IDBObjectStore.put') |
1126 @DocsEditable() | 1131 @DocsEditable() |
1127 @Returns('Request') | 1132 @Returns('Request') |
1128 @Creates('Request') | 1133 @Creates('Request') |
1129 @_annotation_Creates_IDBKey | 1134 @_annotation_Creates_IDBKey |
1130 Request _put(/*any*/ value, [/*any*/ key]) { | 1135 Request _put(/*any*/ value, [/*any*/ key]) { |
1131 if (key != null) { | 1136 if (key != null) { |
1132 var value_1 = convertDartToNative_SerializedScriptValue(value); | 1137 var value_1 = convertDartToNative_SerializedScriptValue(value); |
1133 var key_2 = convertDartToNative_SerializedScriptValue(key); | 1138 var key_2 = convertDartToNative_SerializedScriptValue(key); |
1134 return _put_1(value_1, key_2); | 1139 return _put_1(value_1, key_2); |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1405 @Unstable() | 1410 @Unstable() |
1406 class VersionChangeEvent extends Event native "IDBVersionChangeEvent" { | 1411 class VersionChangeEvent extends Event native "IDBVersionChangeEvent" { |
1407 // To suppress missing implicit constructor warnings. | 1412 // To suppress missing implicit constructor warnings. |
1408 factory VersionChangeEvent._() { throw new UnsupportedError("Not supported");
} | 1413 factory VersionChangeEvent._() { throw new UnsupportedError("Not supported");
} |
1409 | 1414 |
1410 @DomName('IDBVersionChangeEvent.dataLoss') | 1415 @DomName('IDBVersionChangeEvent.dataLoss') |
1411 @DocsEditable() | 1416 @DocsEditable() |
1412 @Experimental() // untriaged | 1417 @Experimental() // untriaged |
1413 final String dataLoss; | 1418 final String dataLoss; |
1414 | 1419 |
| 1420 @DomName('IDBVersionChangeEvent.dataLossMessage') |
| 1421 @DocsEditable() |
| 1422 @Experimental() // untriaged |
| 1423 final String dataLossMessage; |
| 1424 |
1415 @DomName('IDBVersionChangeEvent.newVersion') | 1425 @DomName('IDBVersionChangeEvent.newVersion') |
1416 @DocsEditable() | 1426 @DocsEditable() |
1417 @Creates('int|String|Null') | 1427 @Creates('int|String|Null') |
1418 @Returns('int|String|Null') | 1428 @Returns('int|String|Null') |
1419 final dynamic newVersion; | 1429 final dynamic newVersion; |
1420 | 1430 |
1421 @DomName('IDBVersionChangeEvent.oldVersion') | 1431 @DomName('IDBVersionChangeEvent.oldVersion') |
1422 @DocsEditable() | 1432 @DocsEditable() |
1423 @Creates('int|String|Null') | 1433 @Creates('int|String|Null') |
1424 @Returns('int|String|Null') | 1434 @Returns('int|String|Null') |
1425 final dynamic oldVersion; | 1435 final dynamic oldVersion; |
1426 } | 1436 } |
1427 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1437 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1428 // for details. All rights reserved. Use of this source code is governed by a | 1438 // for details. All rights reserved. Use of this source code is governed by a |
1429 // BSD-style license that can be found in the LICENSE file. | 1439 // BSD-style license that can be found in the LICENSE file. |
1430 | 1440 |
1431 | 1441 |
1432 @DocsEditable() | 1442 @DocsEditable() |
1433 @DomName('IDBAny') | 1443 @DomName('IDBAny') |
1434 @deprecated // nonstandard | 1444 @deprecated // nonstandard |
1435 abstract class _IDBAny extends Interceptor native "IDBAny" { | 1445 abstract class _IDBAny extends Interceptor native "IDBAny" { |
1436 // To suppress missing implicit constructor warnings. | 1446 // To suppress missing implicit constructor warnings. |
1437 factory _IDBAny._() { throw new UnsupportedError("Not supported"); } | 1447 factory _IDBAny._() { throw new UnsupportedError("Not supported"); } |
1438 } | 1448 } |
OLD | NEW |