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

Side by Side Diff: tools/dom/templates/html/impl/impl_IDBObjectStore.darttemplate

Issue 23523008: Missed one template from the previous CL to unbreak indexed_db. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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
« no previous file with comments | « tools/dom/templates/html/impl/impl_IDBIndex.darttemplate ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of $LIBRARYNAME; 5 part of $LIBRARYNAME;
6 6
7 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { 7 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
8 8
9 @DomName('IDBObjectStore.add') 9 @DomName('IDBObjectStore.add')
10 Future add(value, [key]) { 10 Future add(value, [key]) {
(...skipping 24 matching lines...) Expand all
35 try { 35 try {
36 return _completeRequest(_delete(key_OR_keyRange)); 36 return _completeRequest(_delete(key_OR_keyRange));
37 } catch (e, stacktrace) { 37 } catch (e, stacktrace) {
38 return new Future.error(e, stacktrace); 38 return new Future.error(e, stacktrace);
39 } 39 }
40 } 40 }
41 41
42 @DomName('IDBObjectStore.count') 42 @DomName('IDBObjectStore.count')
43 Future<int> count([key_OR_range]) { 43 Future<int> count([key_OR_range]) {
44 try { 44 try {
45 var request; 45 var request = _count(key_OR_range);
46 if (key_OR_range != null) {
47 request = _count(key_OR_range);
48 } else {
49 request = _count();
50 }
51 return _completeRequest(request); 46 return _completeRequest(request);
52 } catch (e, stacktrace) { 47 } catch (e, stacktrace) {
53 return new Future.error(e, stacktrace); 48 return new Future.error(e, stacktrace);
54 } 49 }
55 } 50 }
56 51
57 @DomName('IDBObjectStore.put') 52 @DomName('IDBObjectStore.put')
58 Future put(value, [key]) { 53 Future put(value, [key]) {
59 try { 54 try {
60 var request; 55 var request;
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 } else { 156 } else {
162 controller.add(cursor); 157 controller.add(cursor);
163 if (autoAdvance == true && controller.hasListener) { 158 if (autoAdvance == true && controller.hasListener) {
164 cursor.next(); 159 cursor.next();
165 } 160 }
166 } 161 }
167 }); 162 });
168 return controller.stream; 163 return controller.stream;
169 } 164 }
170 } 165 }
OLDNEW
« no previous file with comments | « tools/dom/templates/html/impl/impl_IDBIndex.darttemplate ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698