| OLD | NEW |
| 1 library dart.dom.indexed_db; | 1 library dart.dom.indexed_db; |
| 2 | 2 |
| 3 import 'dart:async'; | 3 import 'dart:async'; |
| 4 import 'dart:html'; | 4 import 'dart:html'; |
| 5 import 'dart:html_common'; | 5 import 'dart:html_common'; |
| 6 import 'dart:nativewrappers'; | 6 import 'dart:nativewrappers'; |
| 7 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 7 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 8 // for details. All rights reserved. Use of this source code is governed by a | 8 // for details. All rights reserved. Use of this source code is governed by a |
| 9 // BSD-style license that can be found in the LICENSE file. | 9 // BSD-style license that can be found in the LICENSE file. |
| 10 | 10 |
| (...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 665 * // called when there are no more cursors. | 665 * // called when there are no more cursors. |
| 666 * print('all done!'); | 666 * print('all done!'); |
| 667 * }); | 667 * }); |
| 668 * | 668 * |
| 669 * Asynchronous operations which are not related to the current transaction | 669 * Asynchronous operations which are not related to the current transaction |
| 670 * will cause the transaction to automatically be committed-- all processing | 670 * will cause the transaction to automatically be committed-- all processing |
| 671 * must be done synchronously unless they are additional async requests to | 671 * must be done synchronously unless they are additional async requests to |
| 672 * the current transaction. | 672 * the current transaction. |
| 673 */ | 673 */ |
| 674 @DomName('IDBObjectStore.openCursor') | 674 @DomName('IDBObjectStore.openCursor') |
| 675 Stream<Cursor> openCursor({key, KeyRange range, String direction, | 675 Stream<CursorWithValue> openCursor({key, KeyRange range, String direction, |
| 676 bool autoAdvance}) { | 676 bool autoAdvance}) { |
| 677 var key_OR_range = null; | 677 var key_OR_range = null; |
| 678 if (key != null) { | 678 if (key != null) { |
| 679 if (range != null) { | 679 if (range != null) { |
| 680 throw new ArgumentError('Cannot specify both key and range.'); | 680 throw new ArgumentError('Cannot specify both key and range.'); |
| 681 } | 681 } |
| 682 key_OR_range = key; | 682 key_OR_range = key; |
| 683 } else { | 683 } else { |
| 684 key_OR_range = range; | 684 key_OR_range = range; |
| 685 } | 685 } |
| (...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1189 | 1189 |
| 1190 // WARNING: Do not edit - generated code. | 1190 // WARNING: Do not edit - generated code. |
| 1191 | 1191 |
| 1192 | 1192 |
| 1193 @DocsEditable | 1193 @DocsEditable |
| 1194 @DomName('IDBAny') | 1194 @DomName('IDBAny') |
| 1195 class _IDBAny extends NativeFieldWrapperClass1 { | 1195 class _IDBAny extends NativeFieldWrapperClass1 { |
| 1196 _IDBAny.internal(); | 1196 _IDBAny.internal(); |
| 1197 | 1197 |
| 1198 } | 1198 } |
| OLD | NEW |