Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(272)

Side by Side Diff: sdk/lib/indexed_db/dartium/indexed_db_dartium.dart

Issue 12226134: Fixing Indexed DB's CursorWithValue.value (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698