OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 $!TOPLEVEL |
| 8 |
7 @DocsEditable() | 9 @DocsEditable() |
8 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { | 10 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
9 @DomName('IDBDatabase.createObjectStore') | 11 @DomName('IDBDatabase.createObjectStore') |
10 @DocsEditable() | 12 @DocsEditable() |
11 ObjectStore createObjectStore(String name, | 13 ObjectStore createObjectStore(String name, |
12 {String keyPath, bool autoIncrement}) { | 14 {String keyPath, bool autoIncrement}) { |
13 var options = {}; | 15 var options = {}; |
14 if (keyPath != null) { | 16 if (keyPath != null) { |
15 options['keyPath'] = keyPath; | 17 options['keyPath'] = keyPath; |
16 } | 18 } |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 throw new ArgumentError(mode); | 61 throw new ArgumentError(mode); |
60 } | 62 } |
61 return _transaction(storeNames, mode); | 63 return _transaction(storeNames, mode); |
62 } | 64 } |
63 | 65 |
64 @JSName('transaction') | 66 @JSName('transaction') |
65 Transaction _transaction(stores, mode) native; | 67 Transaction _transaction(stores, mode) native; |
66 $endif | 68 $endif |
67 | 69 |
68 $!MEMBERS} | 70 $!MEMBERS} |
OLD | NEW |