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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 @DomName('IDBCursor.key') | 69 @DomName('IDBCursor.key') |
70 @DocsEditable() | 70 @DocsEditable() |
71 Object get key native "IDBCursor_key_Getter"; | 71 Object get key native "IDBCursor_key_Getter"; |
72 | 72 |
73 @DomName('IDBCursor.primaryKey') | 73 @DomName('IDBCursor.primaryKey') |
74 @DocsEditable() | 74 @DocsEditable() |
75 Object get primaryKey native "IDBCursor_primaryKey_Getter"; | 75 Object get primaryKey native "IDBCursor_primaryKey_Getter"; |
76 | 76 |
77 @DomName('IDBCursor.source') | 77 @DomName('IDBCursor.source') |
78 @DocsEditable() | 78 @DocsEditable() |
79 dynamic get source native "IDBCursor_source_Getter"; | 79 Object get source native "IDBCursor_source_Getter"; |
80 | 80 |
81 @DomName('IDBCursor.advance') | 81 @DomName('IDBCursor.advance') |
82 @DocsEditable() | 82 @DocsEditable() |
83 void advance(int count) native "IDBCursor_advance_Callback"; | 83 void advance(int count) native "IDBCursor_advance_Callback"; |
84 | 84 |
| 85 @DomName('IDBCursor.continuePrimaryKey') |
| 86 @DocsEditable() |
| 87 @Experimental() // untriaged |
| 88 void continuePrimaryKey(Object key, Object primaryKey) native "IDBCursor_conti
nuePrimaryKey_Callback"; |
| 89 |
85 @DomName('IDBCursor.delete') | 90 @DomName('IDBCursor.delete') |
86 @DocsEditable() | 91 @DocsEditable() |
87 Request _delete() native "IDBCursor_delete_Callback"; | 92 Request _delete() native "IDBCursor_delete_Callback"; |
88 | 93 |
89 @DomName('IDBCursor.next') | 94 @DomName('IDBCursor.next') |
90 @DocsEditable() | 95 @DocsEditable() |
91 @Experimental() // non-standard | 96 @Experimental() // non-standard |
92 void next([Object key]) native "IDBCursor_next_Callback"; | 97 void next([Object key]) native "IDBCursor_next_Callback"; |
93 | 98 |
94 @DomName('IDBCursor.update') | 99 @DomName('IDBCursor.update') |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 @DomName('IDBDatabase.name') | 201 @DomName('IDBDatabase.name') |
197 @DocsEditable() | 202 @DocsEditable() |
198 String get name native "IDBDatabase_name_Getter"; | 203 String get name native "IDBDatabase_name_Getter"; |
199 | 204 |
200 @DomName('IDBDatabase.objectStoreNames') | 205 @DomName('IDBDatabase.objectStoreNames') |
201 @DocsEditable() | 206 @DocsEditable() |
202 List<String> get objectStoreNames native "IDBDatabase_objectStoreNames_Getter"
; | 207 List<String> get objectStoreNames native "IDBDatabase_objectStoreNames_Getter"
; |
203 | 208 |
204 @DomName('IDBDatabase.version') | 209 @DomName('IDBDatabase.version') |
205 @DocsEditable() | 210 @DocsEditable() |
206 dynamic get version native "IDBDatabase_version_Getter"; | 211 Object get version native "IDBDatabase_version_Getter"; |
207 | 212 |
208 @DomName('IDBDatabase.close') | 213 @DomName('IDBDatabase.close') |
209 @DocsEditable() | 214 @DocsEditable() |
210 void close() native "IDBDatabase_close_Callback"; | 215 void close() native "IDBDatabase_close_Callback"; |
211 | 216 |
212 @DomName('IDBDatabase.createObjectStore') | 217 @DomName('IDBDatabase.createObjectStore') |
213 @DocsEditable() | 218 @DocsEditable() |
214 ObjectStore _createObjectStore(String name, [Map options]) native "IDBDatabase
_createObjectStore_Callback"; | 219 ObjectStore _createObjectStore(String name, [Map options]) native "IDBDatabase
_createObjectStore_Callback"; |
215 | 220 |
216 @DomName('IDBDatabase.deleteObjectStore') | 221 @DomName('IDBDatabase.deleteObjectStore') |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
507 request = _openKeyCursor(key_OR_range, direction); | 512 request = _openKeyCursor(key_OR_range, direction); |
508 } | 513 } |
509 return ObjectStore._cursorStreamFromResult(request, autoAdvance); | 514 return ObjectStore._cursorStreamFromResult(request, autoAdvance); |
510 } | 515 } |
511 | 516 |
512 // To suppress missing implicit constructor warnings. | 517 // To suppress missing implicit constructor warnings. |
513 factory Index._() { throw new UnsupportedError("Not supported"); } | 518 factory Index._() { throw new UnsupportedError("Not supported"); } |
514 | 519 |
515 @DomName('IDBIndex.keyPath') | 520 @DomName('IDBIndex.keyPath') |
516 @DocsEditable() | 521 @DocsEditable() |
517 dynamic get keyPath native "IDBIndex_keyPath_Getter"; | 522 Object get keyPath native "IDBIndex_keyPath_Getter"; |
518 | 523 |
519 @DomName('IDBIndex.multiEntry') | 524 @DomName('IDBIndex.multiEntry') |
520 @DocsEditable() | 525 @DocsEditable() |
521 bool get multiEntry native "IDBIndex_multiEntry_Getter"; | 526 bool get multiEntry native "IDBIndex_multiEntry_Getter"; |
522 | 527 |
523 @DomName('IDBIndex.name') | 528 @DomName('IDBIndex.name') |
524 @DocsEditable() | 529 @DocsEditable() |
525 String get name native "IDBIndex_name_Getter"; | 530 String get name native "IDBIndex_name_Getter"; |
526 | 531 |
527 @DomName('IDBIndex.objectStore') | 532 @DomName('IDBIndex.objectStore') |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
760 @DomName('IDBObjectStore.autoIncrement') | 765 @DomName('IDBObjectStore.autoIncrement') |
761 @DocsEditable() | 766 @DocsEditable() |
762 bool get autoIncrement native "IDBObjectStore_autoIncrement_Getter"; | 767 bool get autoIncrement native "IDBObjectStore_autoIncrement_Getter"; |
763 | 768 |
764 @DomName('IDBObjectStore.indexNames') | 769 @DomName('IDBObjectStore.indexNames') |
765 @DocsEditable() | 770 @DocsEditable() |
766 List<String> get indexNames native "IDBObjectStore_indexNames_Getter"; | 771 List<String> get indexNames native "IDBObjectStore_indexNames_Getter"; |
767 | 772 |
768 @DomName('IDBObjectStore.keyPath') | 773 @DomName('IDBObjectStore.keyPath') |
769 @DocsEditable() | 774 @DocsEditable() |
770 dynamic get keyPath native "IDBObjectStore_keyPath_Getter"; | 775 Object get keyPath native "IDBObjectStore_keyPath_Getter"; |
771 | 776 |
772 @DomName('IDBObjectStore.name') | 777 @DomName('IDBObjectStore.name') |
773 @DocsEditable() | 778 @DocsEditable() |
774 String get name native "IDBObjectStore_name_Getter"; | 779 String get name native "IDBObjectStore_name_Getter"; |
775 | 780 |
776 @DomName('IDBObjectStore.transaction') | 781 @DomName('IDBObjectStore.transaction') |
777 @DocsEditable() | 782 @DocsEditable() |
778 Transaction get transaction native "IDBObjectStore_transaction_Getter"; | 783 Transaction get transaction native "IDBObjectStore_transaction_Getter"; |
779 | 784 |
780 @DomName('IDBObjectStore.add') | 785 @DomName('IDBObjectStore.add') |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
942 @DomName('IDBRequest.error') | 947 @DomName('IDBRequest.error') |
943 @DocsEditable() | 948 @DocsEditable() |
944 DomError get error native "IDBRequest_error_Getter"; | 949 DomError get error native "IDBRequest_error_Getter"; |
945 | 950 |
946 @DomName('IDBRequest.readyState') | 951 @DomName('IDBRequest.readyState') |
947 @DocsEditable() | 952 @DocsEditable() |
948 String get readyState native "IDBRequest_readyState_Getter"; | 953 String get readyState native "IDBRequest_readyState_Getter"; |
949 | 954 |
950 @DomName('IDBRequest.result') | 955 @DomName('IDBRequest.result') |
951 @DocsEditable() | 956 @DocsEditable() |
952 dynamic get result native "IDBRequest_result_Getter"; | 957 Object get result native "IDBRequest_result_Getter"; |
953 | 958 |
954 @DomName('IDBRequest.source') | 959 @DomName('IDBRequest.source') |
955 @DocsEditable() | 960 @DocsEditable() |
956 dynamic get source native "IDBRequest_source_Getter"; | 961 Object get source native "IDBRequest_source_Getter"; |
957 | 962 |
958 @DomName('IDBRequest.transaction') | 963 @DomName('IDBRequest.transaction') |
959 @DocsEditable() | 964 @DocsEditable() |
960 Transaction get transaction native "IDBRequest_transaction_Getter"; | 965 Transaction get transaction native "IDBRequest_transaction_Getter"; |
961 | 966 |
962 @DomName('IDBRequest.addEventListener') | 967 @DomName('IDBRequest.addEventListener') |
963 @DocsEditable() | 968 @DocsEditable() |
964 void addEventListener(String type, EventListener listener, [bool useCapture])
native "IDBRequest_addEventListener_Callback"; | 969 void addEventListener(String type, EventListener listener, [bool useCapture])
native "IDBRequest_addEventListener_Callback"; |
965 | 970 |
966 @DomName('IDBRequest.dispatchEvent') | 971 @DomName('IDBRequest.dispatchEvent') |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1119 @Experimental() // untriaged | 1124 @Experimental() // untriaged |
1120 String get dataLoss native "IDBVersionChangeEvent_dataLoss_Getter"; | 1125 String get dataLoss native "IDBVersionChangeEvent_dataLoss_Getter"; |
1121 | 1126 |
1122 @DomName('IDBVersionChangeEvent.dataLossMessage') | 1127 @DomName('IDBVersionChangeEvent.dataLossMessage') |
1123 @DocsEditable() | 1128 @DocsEditable() |
1124 @Experimental() // untriaged | 1129 @Experimental() // untriaged |
1125 String get dataLossMessage native "IDBVersionChangeEvent_dataLossMessage_Gette
r"; | 1130 String get dataLossMessage native "IDBVersionChangeEvent_dataLossMessage_Gette
r"; |
1126 | 1131 |
1127 @DomName('IDBVersionChangeEvent.newVersion') | 1132 @DomName('IDBVersionChangeEvent.newVersion') |
1128 @DocsEditable() | 1133 @DocsEditable() |
1129 dynamic get newVersion native "IDBVersionChangeEvent_newVersion_Getter"; | 1134 Object get newVersion native "IDBVersionChangeEvent_newVersion_Getter"; |
1130 | 1135 |
1131 @DomName('IDBVersionChangeEvent.oldVersion') | 1136 @DomName('IDBVersionChangeEvent.oldVersion') |
1132 @DocsEditable() | 1137 @DocsEditable() |
1133 dynamic get oldVersion native "IDBVersionChangeEvent_oldVersion_Getter"; | 1138 Object get oldVersion native "IDBVersionChangeEvent_oldVersion_Getter"; |
1134 | 1139 |
1135 } | 1140 } |
1136 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
1137 // for details. All rights reserved. Use of this source code is governed by a | |
1138 // BSD-style license that can be found in the LICENSE file. | |
1139 | |
1140 // WARNING: Do not edit - generated code. | |
1141 | |
1142 | |
1143 @DocsEditable() | |
1144 @DomName('IDBAny') | |
1145 @deprecated // nonstandard | |
1146 abstract class _IDBAny extends NativeFieldWrapperClass2 { | |
1147 // To suppress missing implicit constructor warnings. | |
1148 factory _IDBAny._() { throw new UnsupportedError("Not supported"); } | |
1149 | |
1150 } | |
OLD | NEW |