| 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 import 'dart:_blink' as _blink; | 7 import 'dart:_blink' as _blink; |
| 8 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 8 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 9 // for details. All rights reserved. Use of this source code is governed by a | 9 // for details. All rights reserved. Use of this source code is governed by a |
| 10 // BSD-style license that can be found in the LICENSE file. | 10 // BSD-style license that can be found in the LICENSE file. |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 Transaction transactionList(List<String> storeNames, String mode) => _blink.Na
tive_IDBDatabase_transactionList_Callback(this, storeNames, mode); | 245 Transaction transactionList(List<String> storeNames, String mode) => _blink.Na
tive_IDBDatabase_transactionList_Callback(this, storeNames, mode); |
| 246 | 246 |
| 247 @DomName('IDBDatabase.transactionStore') | 247 @DomName('IDBDatabase.transactionStore') |
| 248 @DocsEditable() | 248 @DocsEditable() |
| 249 Transaction transactionStore(String storeName, String mode) => _blink.Native_I
DBDatabase_transactionStore_Callback(this, storeName, mode); | 249 Transaction transactionStore(String storeName, String mode) => _blink.Native_I
DBDatabase_transactionStore_Callback(this, storeName, mode); |
| 250 | 250 |
| 251 @DomName('IDBDatabase.transactionStores') | 251 @DomName('IDBDatabase.transactionStores') |
| 252 @DocsEditable() | 252 @DocsEditable() |
| 253 Transaction transactionStores(List<String> storeNames, String mode) => _blink.
Native_IDBDatabase_transactionStores_Callback(this, storeNames, mode); | 253 Transaction transactionStores(List<String> storeNames, String mode) => _blink.
Native_IDBDatabase_transactionStores_Callback(this, storeNames, mode); |
| 254 | 254 |
| 255 @DomName('IDBDatabase.addEventListener') | |
| 256 @DocsEditable() | |
| 257 void addEventListener(String type, EventListener listener, [bool useCapture])
=> _blink.Native_IDBDatabase_addEventListener_Callback(this, type, listener, use
Capture); | |
| 258 | |
| 259 @DomName('IDBDatabase.dispatchEvent') | |
| 260 @DocsEditable() | |
| 261 bool dispatchEvent(Event event) => _blink.Native_IDBDatabase_dispatchEvent_Cal
lback(this, event); | |
| 262 | |
| 263 @DomName('IDBDatabase.removeEventListener') | |
| 264 @DocsEditable() | |
| 265 void removeEventListener(String type, EventListener listener, [bool useCapture
]) => _blink.Native_IDBDatabase_removeEventListener_Callback(this, type, listene
r, useCapture); | |
| 266 | |
| 267 /// Stream of `abort` events handled by this [Database]. | 255 /// Stream of `abort` events handled by this [Database]. |
| 268 @DomName('IDBDatabase.onabort') | 256 @DomName('IDBDatabase.onabort') |
| 269 @DocsEditable() | 257 @DocsEditable() |
| 270 Stream<Event> get onAbort => abortEvent.forTarget(this); | 258 Stream<Event> get onAbort => abortEvent.forTarget(this); |
| 271 | 259 |
| 272 /// Stream of `close` events handled by this [Database]. | 260 /// Stream of `close` events handled by this [Database]. |
| 273 @DomName('IDBDatabase.onclose') | 261 @DomName('IDBDatabase.onclose') |
| 274 @DocsEditable() | 262 @DocsEditable() |
| 275 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=22540 | 263 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=22540 |
| 276 @Experimental() | 264 @Experimental() |
| (...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 935 Object get result => _blink.Native_IDBRequest_result_Getter(this); | 923 Object get result => _blink.Native_IDBRequest_result_Getter(this); |
| 936 | 924 |
| 937 @DomName('IDBRequest.source') | 925 @DomName('IDBRequest.source') |
| 938 @DocsEditable() | 926 @DocsEditable() |
| 939 Object get source => _blink.Native_IDBRequest_source_Getter(this); | 927 Object get source => _blink.Native_IDBRequest_source_Getter(this); |
| 940 | 928 |
| 941 @DomName('IDBRequest.transaction') | 929 @DomName('IDBRequest.transaction') |
| 942 @DocsEditable() | 930 @DocsEditable() |
| 943 Transaction get transaction => _blink.Native_IDBRequest_transaction_Getter(thi
s); | 931 Transaction get transaction => _blink.Native_IDBRequest_transaction_Getter(thi
s); |
| 944 | 932 |
| 945 @DomName('IDBRequest.addEventListener') | |
| 946 @DocsEditable() | |
| 947 void addEventListener(String type, EventListener listener, [bool useCapture])
=> _blink.Native_IDBRequest_addEventListener_Callback(this, type, listener, useC
apture); | |
| 948 | |
| 949 @DomName('IDBRequest.dispatchEvent') | |
| 950 @DocsEditable() | |
| 951 bool dispatchEvent(Event event) => _blink.Native_IDBRequest_dispatchEvent_Call
back(this, event); | |
| 952 | |
| 953 @DomName('IDBRequest.removeEventListener') | |
| 954 @DocsEditable() | |
| 955 void removeEventListener(String type, EventListener listener, [bool useCapture
]) => _blink.Native_IDBRequest_removeEventListener_Callback(this, type, listener
, useCapture); | |
| 956 | |
| 957 /// Stream of `error` events handled by this [Request]. | 933 /// Stream of `error` events handled by this [Request]. |
| 958 @DomName('IDBRequest.onerror') | 934 @DomName('IDBRequest.onerror') |
| 959 @DocsEditable() | 935 @DocsEditable() |
| 960 Stream<Event> get onError => errorEvent.forTarget(this); | 936 Stream<Event> get onError => errorEvent.forTarget(this); |
| 961 | 937 |
| 962 /// Stream of `success` events handled by this [Request]. | 938 /// Stream of `success` events handled by this [Request]. |
| 963 @DomName('IDBRequest.onsuccess') | 939 @DomName('IDBRequest.onsuccess') |
| 964 @DocsEditable() | 940 @DocsEditable() |
| 965 Stream<Event> get onSuccess => successEvent.forTarget(this); | 941 Stream<Event> get onSuccess => successEvent.forTarget(this); |
| 966 | 942 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1048 String get mode => _blink.Native_IDBTransaction_mode_Getter(this); | 1024 String get mode => _blink.Native_IDBTransaction_mode_Getter(this); |
| 1049 | 1025 |
| 1050 @DomName('IDBTransaction.abort') | 1026 @DomName('IDBTransaction.abort') |
| 1051 @DocsEditable() | 1027 @DocsEditable() |
| 1052 void abort() => _blink.Native_IDBTransaction_abort_Callback(this); | 1028 void abort() => _blink.Native_IDBTransaction_abort_Callback(this); |
| 1053 | 1029 |
| 1054 @DomName('IDBTransaction.objectStore') | 1030 @DomName('IDBTransaction.objectStore') |
| 1055 @DocsEditable() | 1031 @DocsEditable() |
| 1056 ObjectStore objectStore(String name) => _blink.Native_IDBTransaction_objectSto
re_Callback(this, name); | 1032 ObjectStore objectStore(String name) => _blink.Native_IDBTransaction_objectSto
re_Callback(this, name); |
| 1057 | 1033 |
| 1058 @DomName('IDBTransaction.addEventListener') | |
| 1059 @DocsEditable() | |
| 1060 void addEventListener(String type, EventListener listener, [bool useCapture])
=> _blink.Native_IDBTransaction_addEventListener_Callback(this, type, listener,
useCapture); | |
| 1061 | |
| 1062 @DomName('IDBTransaction.dispatchEvent') | |
| 1063 @DocsEditable() | |
| 1064 bool dispatchEvent(Event event) => _blink.Native_IDBTransaction_dispatchEvent_
Callback(this, event); | |
| 1065 | |
| 1066 @DomName('IDBTransaction.removeEventListener') | |
| 1067 @DocsEditable() | |
| 1068 void removeEventListener(String type, EventListener listener, [bool useCapture
]) => _blink.Native_IDBTransaction_removeEventListener_Callback(this, type, list
ener, useCapture); | |
| 1069 | |
| 1070 /// Stream of `abort` events handled by this [Transaction]. | 1034 /// Stream of `abort` events handled by this [Transaction]. |
| 1071 @DomName('IDBTransaction.onabort') | 1035 @DomName('IDBTransaction.onabort') |
| 1072 @DocsEditable() | 1036 @DocsEditable() |
| 1073 Stream<Event> get onAbort => abortEvent.forTarget(this); | 1037 Stream<Event> get onAbort => abortEvent.forTarget(this); |
| 1074 | 1038 |
| 1075 /// Stream of `complete` events handled by this [Transaction]. | 1039 /// Stream of `complete` events handled by this [Transaction]. |
| 1076 @DomName('IDBTransaction.oncomplete') | 1040 @DomName('IDBTransaction.oncomplete') |
| 1077 @DocsEditable() | 1041 @DocsEditable() |
| 1078 Stream<Event> get onComplete => completeEvent.forTarget(this); | 1042 Stream<Event> get onComplete => completeEvent.forTarget(this); |
| 1079 | 1043 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 1109 | 1073 |
| 1110 @DomName('IDBVersionChangeEvent.newVersion') | 1074 @DomName('IDBVersionChangeEvent.newVersion') |
| 1111 @DocsEditable() | 1075 @DocsEditable() |
| 1112 Object get newVersion => _blink.Native_IDBVersionChangeEvent_newVersion_Getter
(this); | 1076 Object get newVersion => _blink.Native_IDBVersionChangeEvent_newVersion_Getter
(this); |
| 1113 | 1077 |
| 1114 @DomName('IDBVersionChangeEvent.oldVersion') | 1078 @DomName('IDBVersionChangeEvent.oldVersion') |
| 1115 @DocsEditable() | 1079 @DocsEditable() |
| 1116 Object get oldVersion => _blink.Native_IDBVersionChangeEvent_oldVersion_Getter
(this); | 1080 Object get oldVersion => _blink.Native_IDBVersionChangeEvent_oldVersion_Getter
(this); |
| 1117 | 1081 |
| 1118 } | 1082 } |
| OLD | NEW |