| 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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 @DomName('IDBDatabase.transactionStore') | 219 @DomName('IDBDatabase.transactionStore') |
| 220 @DocsEditable() | 220 @DocsEditable() |
| 221 Transaction transactionStore(String storeName, String mode) native "IDBDatabas
e_transactionStore_Callback"; | 221 Transaction transactionStore(String storeName, String mode) native "IDBDatabas
e_transactionStore_Callback"; |
| 222 | 222 |
| 223 @DomName('IDBDatabase.transactionStores') | 223 @DomName('IDBDatabase.transactionStores') |
| 224 @DocsEditable() | 224 @DocsEditable() |
| 225 Transaction transactionStores(List<String> storeNames, String mode) native "ID
BDatabase_transactionStores_Callback"; | 225 Transaction transactionStores(List<String> storeNames, String mode) native "ID
BDatabase_transactionStores_Callback"; |
| 226 | 226 |
| 227 @DomName('IDBDatabase.addEventListener') | 227 @DomName('IDBDatabase.addEventListener') |
| 228 @DocsEditable() | 228 @DocsEditable() |
| 229 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "IDBDatabase_addEventListener_Callback"; | 229 void _addEventListener(String type, EventListener listener, [bool useCapture])
native "IDBDatabase_addEventListener_Callback"; |
| 230 | 230 |
| 231 @DomName('IDBDatabase.dispatchEvent') | 231 @DomName('IDBDatabase.dispatchEvent') |
| 232 @DocsEditable() | 232 @DocsEditable() |
| 233 bool dispatchEvent(Event event) native "IDBDatabase_dispatchEvent_Callback"; | 233 bool dispatchEvent(Event event) native "IDBDatabase_dispatchEvent_Callback"; |
| 234 | 234 |
| 235 @DomName('IDBDatabase.removeEventListener') | 235 @DomName('IDBDatabase.removeEventListener') |
| 236 @DocsEditable() | 236 @DocsEditable() |
| 237 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "IDBDatabase_removeEventListener_Callback"; | 237 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e]) native "IDBDatabase_removeEventListener_Callback"; |
| 238 | 238 |
| 239 @DomName('IDBDatabase.onabort') | 239 @DomName('IDBDatabase.onabort') |
| 240 @DocsEditable() | 240 @DocsEditable() |
| 241 Stream<Event> get onAbort => abortEvent.forTarget(this); | 241 Stream<Event> get onAbort => abortEvent.forTarget(this); |
| 242 | 242 |
| 243 @DomName('IDBDatabase.onclose') | 243 @DomName('IDBDatabase.onclose') |
| 244 @DocsEditable() | 244 @DocsEditable() |
| 245 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=22540 | 245 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=22540 |
| 246 @Experimental() | 246 @Experimental() |
| 247 Stream<Event> get onClose => closeEvent.forTarget(this); | 247 Stream<Event> get onClose => closeEvent.forTarget(this); |
| (...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 895 @DomName('IDBRequest.source') | 895 @DomName('IDBRequest.source') |
| 896 @DocsEditable() | 896 @DocsEditable() |
| 897 dynamic get source native "IDBRequest_source_Getter"; | 897 dynamic get source native "IDBRequest_source_Getter"; |
| 898 | 898 |
| 899 @DomName('IDBRequest.transaction') | 899 @DomName('IDBRequest.transaction') |
| 900 @DocsEditable() | 900 @DocsEditable() |
| 901 Transaction get transaction native "IDBRequest_transaction_Getter"; | 901 Transaction get transaction native "IDBRequest_transaction_Getter"; |
| 902 | 902 |
| 903 @DomName('IDBRequest.addEventListener') | 903 @DomName('IDBRequest.addEventListener') |
| 904 @DocsEditable() | 904 @DocsEditable() |
| 905 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "IDBRequest_addEventListener_Callback"; | 905 void _addEventListener(String type, EventListener listener, [bool useCapture])
native "IDBRequest_addEventListener_Callback"; |
| 906 | 906 |
| 907 @DomName('IDBRequest.dispatchEvent') | 907 @DomName('IDBRequest.dispatchEvent') |
| 908 @DocsEditable() | 908 @DocsEditable() |
| 909 bool dispatchEvent(Event event) native "IDBRequest_dispatchEvent_Callback"; | 909 bool dispatchEvent(Event event) native "IDBRequest_dispatchEvent_Callback"; |
| 910 | 910 |
| 911 @DomName('IDBRequest.removeEventListener') | 911 @DomName('IDBRequest.removeEventListener') |
| 912 @DocsEditable() | 912 @DocsEditable() |
| 913 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "IDBRequest_removeEventListener_Callback"; | 913 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e]) native "IDBRequest_removeEventListener_Callback"; |
| 914 | 914 |
| 915 @DomName('IDBRequest.onerror') | 915 @DomName('IDBRequest.onerror') |
| 916 @DocsEditable() | 916 @DocsEditable() |
| 917 Stream<Event> get onError => errorEvent.forTarget(this); | 917 Stream<Event> get onError => errorEvent.forTarget(this); |
| 918 | 918 |
| 919 @DomName('IDBRequest.onsuccess') | 919 @DomName('IDBRequest.onsuccess') |
| 920 @DocsEditable() | 920 @DocsEditable() |
| 921 Stream<Event> get onSuccess => successEvent.forTarget(this); | 921 Stream<Event> get onSuccess => successEvent.forTarget(this); |
| 922 | 922 |
| 923 } | 923 } |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 988 @DomName('IDBTransaction.abort') | 988 @DomName('IDBTransaction.abort') |
| 989 @DocsEditable() | 989 @DocsEditable() |
| 990 void abort() native "IDBTransaction_abort_Callback"; | 990 void abort() native "IDBTransaction_abort_Callback"; |
| 991 | 991 |
| 992 @DomName('IDBTransaction.objectStore') | 992 @DomName('IDBTransaction.objectStore') |
| 993 @DocsEditable() | 993 @DocsEditable() |
| 994 ObjectStore objectStore(String name) native "IDBTransaction_objectStore_Callba
ck"; | 994 ObjectStore objectStore(String name) native "IDBTransaction_objectStore_Callba
ck"; |
| 995 | 995 |
| 996 @DomName('IDBTransaction.addEventListener') | 996 @DomName('IDBTransaction.addEventListener') |
| 997 @DocsEditable() | 997 @DocsEditable() |
| 998 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "IDBTransaction_addEventListener_Callback"; | 998 void _addEventListener(String type, EventListener listener, [bool useCapture])
native "IDBTransaction_addEventListener_Callback"; |
| 999 | 999 |
| 1000 @DomName('IDBTransaction.dispatchEvent') | 1000 @DomName('IDBTransaction.dispatchEvent') |
| 1001 @DocsEditable() | 1001 @DocsEditable() |
| 1002 bool dispatchEvent(Event event) native "IDBTransaction_dispatchEvent_Callback"
; | 1002 bool dispatchEvent(Event event) native "IDBTransaction_dispatchEvent_Callback"
; |
| 1003 | 1003 |
| 1004 @DomName('IDBTransaction.removeEventListener') | 1004 @DomName('IDBTransaction.removeEventListener') |
| 1005 @DocsEditable() | 1005 @DocsEditable() |
| 1006 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "IDBTransaction_removeEventListener_Callback"; | 1006 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e]) native "IDBTransaction_removeEventListener_Callback"; |
| 1007 | 1007 |
| 1008 @DomName('IDBTransaction.onabort') | 1008 @DomName('IDBTransaction.onabort') |
| 1009 @DocsEditable() | 1009 @DocsEditable() |
| 1010 Stream<Event> get onAbort => abortEvent.forTarget(this); | 1010 Stream<Event> get onAbort => abortEvent.forTarget(this); |
| 1011 | 1011 |
| 1012 @DomName('IDBTransaction.oncomplete') | 1012 @DomName('IDBTransaction.oncomplete') |
| 1013 @DocsEditable() | 1013 @DocsEditable() |
| 1014 Stream<Event> get onComplete => completeEvent.forTarget(this); | 1014 Stream<Event> get onComplete => completeEvent.forTarget(this); |
| 1015 | 1015 |
| 1016 @DomName('IDBTransaction.onerror') | 1016 @DomName('IDBTransaction.onerror') |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1054 | 1054 |
| 1055 | 1055 |
| 1056 @DocsEditable() | 1056 @DocsEditable() |
| 1057 @DomName('IDBAny') | 1057 @DomName('IDBAny') |
| 1058 @deprecated // nonstandard | 1058 @deprecated // nonstandard |
| 1059 abstract class _IDBAny extends NativeFieldWrapperClass2 { | 1059 abstract class _IDBAny extends NativeFieldWrapperClass2 { |
| 1060 // To suppress missing implicit constructor warnings. | 1060 // To suppress missing implicit constructor warnings. |
| 1061 factory _IDBAny._() { throw new UnsupportedError("Not supported"); } | 1061 factory _IDBAny._() { throw new UnsupportedError("Not supported"); } |
| 1062 | 1062 |
| 1063 } | 1063 } |
| OLD | NEW |