| 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 | 224 |
| 225 @DomName('IDBCursor.value') | 225 @DomName('IDBCursor.value') |
| 226 Future update(value) { | 226 Future update(value) { |
| 227 try { | 227 try { |
| 228 return _completeRequest(_update(value)); | 228 return _completeRequest(_update(value)); |
| 229 } catch (e, stacktrace) { | 229 } catch (e, stacktrace) { |
| 230 return new Future.error(e, stacktrace); | 230 return new Future.error(e, stacktrace); |
| 231 } | 231 } |
| 232 } | 232 } |
| 233 | 233 |
| 234 @JSName('continue') |
| 235 @DomName('IDBCursor.continue') |
| 236 void next([Object key]) { |
| 237 if (key == null) { |
| 238 JS('void', '#.continue()', this); |
| 239 } else { |
| 240 JS('void', '#.continue(#)', this, key); |
| 241 } |
| 242 } |
| 234 | 243 |
| 235 @DomName('IDBCursor.direction') | 244 @DomName('IDBCursor.direction') |
| 236 @DocsEditable() | 245 @DocsEditable() |
| 237 final String direction; | 246 final String direction; |
| 238 | 247 |
| 239 @DomName('IDBCursor.key') | 248 @DomName('IDBCursor.key') |
| 240 @DocsEditable() | 249 @DocsEditable() |
| 241 @_annotation_Creates_IDBKey | 250 @_annotation_Creates_IDBKey |
| 242 @_annotation_Returns_IDBKey | 251 @_annotation_Returns_IDBKey |
| 243 final Object key; | 252 final Object key; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 256 | 265 |
| 257 @DomName('IDBCursor.advance') | 266 @DomName('IDBCursor.advance') |
| 258 @DocsEditable() | 267 @DocsEditable() |
| 259 void advance(int count) native; | 268 void advance(int count) native; |
| 260 | 269 |
| 261 @JSName('delete') | 270 @JSName('delete') |
| 262 @DomName('IDBCursor.delete') | 271 @DomName('IDBCursor.delete') |
| 263 @DocsEditable() | 272 @DocsEditable() |
| 264 Request _delete() native; | 273 Request _delete() native; |
| 265 | 274 |
| 266 @JSName('continue') | |
| 267 @DomName('IDBCursor.continue') | |
| 268 @DocsEditable() | |
| 269 void next([Object key]) native; | |
| 270 | |
| 271 @DomName('IDBCursor.update') | 275 @DomName('IDBCursor.update') |
| 272 @DocsEditable() | 276 @DocsEditable() |
| 273 Request _update(/*any*/ value) { | 277 Request _update(/*any*/ value) { |
| 274 var value_1 = convertDartToNative_SerializedScriptValue(value); | 278 var value_1 = convertDartToNative_SerializedScriptValue(value); |
| 275 return _update_1(value_1); | 279 return _update_1(value_1); |
| 276 } | 280 } |
| 277 @JSName('update') | 281 @JSName('update') |
| 278 @DomName('IDBCursor.update') | 282 @DomName('IDBCursor.update') |
| 279 @DocsEditable() | 283 @DocsEditable() |
| 280 Request _update_1(value) native; | 284 Request _update_1(value) native; |
| (...skipping 1058 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1339 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1343 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1340 // for details. All rights reserved. Use of this source code is governed by a | 1344 // for details. All rights reserved. Use of this source code is governed by a |
| 1341 // BSD-style license that can be found in the LICENSE file. | 1345 // BSD-style license that can be found in the LICENSE file. |
| 1342 | 1346 |
| 1343 | 1347 |
| 1344 @DocsEditable() | 1348 @DocsEditable() |
| 1345 @DomName('IDBAny') | 1349 @DomName('IDBAny') |
| 1346 @deprecated // nonstandard | 1350 @deprecated // nonstandard |
| 1347 abstract class _IDBAny extends Interceptor native "IDBAny" { | 1351 abstract class _IDBAny extends Interceptor native "IDBAny" { |
| 1348 } | 1352 } |
| OLD | NEW |