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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 void deleteObjectStore(String name) native "IDBDatabase_deleteObjectStore_Call
back"; | 185 void deleteObjectStore(String name) native "IDBDatabase_deleteObjectStore_Call
back"; |
186 | 186 |
187 @DomName('IDBDatabase.dispatchEvent') | 187 @DomName('IDBDatabase.dispatchEvent') |
188 @DocsEditable | 188 @DocsEditable |
189 bool dispatchEvent(Event evt) native "IDBDatabase_dispatchEvent_Callback"; | 189 bool dispatchEvent(Event evt) native "IDBDatabase_dispatchEvent_Callback"; |
190 | 190 |
191 @DomName('IDBDatabase.removeEventListener') | 191 @DomName('IDBDatabase.removeEventListener') |
192 @DocsEditable | 192 @DocsEditable |
193 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "IDBDatabase_removeEventListener_Callback"; | 193 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "IDBDatabase_removeEventListener_Callback"; |
194 | 194 |
195 Transaction transaction(storeName_OR_storeNames, String mode) { | 195 @DomName('IDBDatabase.transaction') |
196 if ((mode is String || mode == null) && (storeName_OR_storeNames is List<Str
ing> || storeName_OR_storeNames == null)) { | 196 @DocsEditable |
197 return _transaction_1(storeName_OR_storeNames, mode); | 197 Transaction transaction(String storeName, String mode) native "IDBDatabase_tra
nsaction_Callback"; |
198 } | |
199 if ((mode is String || mode == null) && (storeName_OR_storeNames is List<Str
ing> || storeName_OR_storeNames == null)) { | |
200 return _transaction_2(storeName_OR_storeNames, mode); | |
201 } | |
202 if ((mode is String || mode == null) && (storeName_OR_storeNames is String |
| storeName_OR_storeNames == null)) { | |
203 return _transaction_3(storeName_OR_storeNames, mode); | |
204 } | |
205 throw new ArgumentError("Incorrect number or type of arguments"); | |
206 } | |
207 | 198 |
208 Transaction _transaction_1(storeName_OR_storeNames, mode) native "IDBDatabase_
_transaction_1_Callback"; | 199 @DomName('IDBDatabase.transactionList') |
| 200 @DocsEditable |
| 201 Transaction transactionList(List<String> storeNames, String mode) native "IDBD
atabase_transactionList_Callback"; |
209 | 202 |
210 Transaction _transaction_2(storeName_OR_storeNames, mode) native "IDBDatabase_
_transaction_2_Callback"; | 203 @DomName('IDBDatabase.transactionStringList') |
211 | 204 @DocsEditable |
212 Transaction _transaction_3(storeName_OR_storeNames, mode) native "IDBDatabase_
_transaction_3_Callback"; | 205 Transaction transactionStringList(List<String> storeNames, String mode) native
"IDBDatabase_transactionStringList_Callback"; |
213 | 206 |
214 @DomName('IDBDatabase.onabort') | 207 @DomName('IDBDatabase.onabort') |
215 @DocsEditable | 208 @DocsEditable |
216 Stream<Event> get onAbort => abortEvent.forTarget(this); | 209 Stream<Event> get onAbort => abortEvent.forTarget(this); |
217 | 210 |
218 @DomName('IDBDatabase.onerror') | 211 @DomName('IDBDatabase.onerror') |
219 @DocsEditable | 212 @DocsEditable |
220 Stream<Event> get onError => errorEvent.forTarget(this); | 213 Stream<Event> get onError => errorEvent.forTarget(this); |
221 | 214 |
222 @DomName('IDBDatabase.onversionchange') | 215 @DomName('IDBDatabase.onversionchange') |
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1126 // WARNING: Do not edit - generated code. | 1119 // WARNING: Do not edit - generated code. |
1127 | 1120 |
1128 | 1121 |
1129 @DocsEditable | 1122 @DocsEditable |
1130 @DomName('IDBAny') | 1123 @DomName('IDBAny') |
1131 @deprecated // nonstandard | 1124 @deprecated // nonstandard |
1132 abstract class _IDBAny extends NativeFieldWrapperClass1 { | 1125 abstract class _IDBAny extends NativeFieldWrapperClass1 { |
1133 _IDBAny.internal(); | 1126 _IDBAny.internal(); |
1134 | 1127 |
1135 } | 1128 } |
OLD | NEW |