| 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:typed_data'; | 6 import 'dart:typed_data'; |
| 7 import 'dart:_js_helper' show Creates, Returns, JSName, Null; | 7 import 'dart:_js_helper' show Creates, Returns, JSName, Null; |
| 8 import 'dart:_foreign_helper' show JS; | 8 import 'dart:_foreign_helper' show JS; |
| 9 import 'dart:_interceptors' show Interceptor, JSExtendableArray; | 9 import 'dart:_interceptors' show Interceptor, JSExtendableArray; |
| 10 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 ObjectStore _$dom_createObjectStore_1(name, options) native; | 354 ObjectStore _$dom_createObjectStore_1(name, options) native; |
| 355 @JSName('createObjectStore') | 355 @JSName('createObjectStore') |
| 356 @DomName('IDBDatabase.createObjectStore') | 356 @DomName('IDBDatabase.createObjectStore') |
| 357 @DocsEditable() | 357 @DocsEditable() |
| 358 ObjectStore _$dom_createObjectStore_2(name) native; | 358 ObjectStore _$dom_createObjectStore_2(name) native; |
| 359 | 359 |
| 360 @DomName('IDBDatabase.deleteObjectStore') | 360 @DomName('IDBDatabase.deleteObjectStore') |
| 361 @DocsEditable() | 361 @DocsEditable() |
| 362 void deleteObjectStore(String name) native; | 362 void deleteObjectStore(String name) native; |
| 363 | 363 |
| 364 // From EventTarget |
| 365 |
| 366 @JSName('addEventListener') |
| 367 @DomName('IDBDatabase.addEventListener') |
| 368 @DocsEditable() |
| 369 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
| 370 |
| 371 @DomName('IDBDatabase.dispatchEvent') |
| 372 @DocsEditable() |
| 373 bool dispatchEvent(Event event) native; |
| 374 |
| 375 @JSName('removeEventListener') |
| 376 @DomName('IDBDatabase.removeEventListener') |
| 377 @DocsEditable() |
| 378 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 379 |
| 364 @DomName('IDBDatabase.onabort') | 380 @DomName('IDBDatabase.onabort') |
| 365 @DocsEditable() | 381 @DocsEditable() |
| 366 Stream<Event> get onAbort => abortEvent.forTarget(this); | 382 Stream<Event> get onAbort => abortEvent.forTarget(this); |
| 367 | 383 |
| 368 @DomName('IDBDatabase.onclose') | 384 @DomName('IDBDatabase.onclose') |
| 369 @DocsEditable() | 385 @DocsEditable() |
| 370 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=22540 | 386 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=22540 |
| 371 @Experimental() | 387 @Experimental() |
| 372 Stream<Event> get onClose => closeEvent.forTarget(this); | 388 Stream<Event> get onClose => closeEvent.forTarget(this); |
| 373 | 389 |
| (...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1140 | 1156 |
| 1141 @DomName('IDBRequest.source') | 1157 @DomName('IDBRequest.source') |
| 1142 @DocsEditable() | 1158 @DocsEditable() |
| 1143 @Creates('Null') | 1159 @Creates('Null') |
| 1144 final dynamic source; | 1160 final dynamic source; |
| 1145 | 1161 |
| 1146 @DomName('IDBRequest.transaction') | 1162 @DomName('IDBRequest.transaction') |
| 1147 @DocsEditable() | 1163 @DocsEditable() |
| 1148 final Transaction transaction; | 1164 final Transaction transaction; |
| 1149 | 1165 |
| 1166 // From EventTarget |
| 1167 |
| 1168 @JSName('addEventListener') |
| 1169 @DomName('IDBRequest.addEventListener') |
| 1170 @DocsEditable() |
| 1171 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
| 1172 |
| 1173 @DomName('IDBRequest.dispatchEvent') |
| 1174 @DocsEditable() |
| 1175 bool dispatchEvent(Event event) native; |
| 1176 |
| 1177 @JSName('removeEventListener') |
| 1178 @DomName('IDBRequest.removeEventListener') |
| 1179 @DocsEditable() |
| 1180 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 1181 |
| 1150 @DomName('IDBRequest.onerror') | 1182 @DomName('IDBRequest.onerror') |
| 1151 @DocsEditable() | 1183 @DocsEditable() |
| 1152 Stream<Event> get onError => errorEvent.forTarget(this); | 1184 Stream<Event> get onError => errorEvent.forTarget(this); |
| 1153 | 1185 |
| 1154 @DomName('IDBRequest.onsuccess') | 1186 @DomName('IDBRequest.onsuccess') |
| 1155 @DocsEditable() | 1187 @DocsEditable() |
| 1156 Stream<Event> get onSuccess => successEvent.forTarget(this); | 1188 Stream<Event> get onSuccess => successEvent.forTarget(this); |
| 1157 } | 1189 } |
| 1158 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1190 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 1159 // for details. All rights reserved. Use of this source code is governed by a | 1191 // for details. All rights reserved. Use of this source code is governed by a |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1217 final String mode; | 1249 final String mode; |
| 1218 | 1250 |
| 1219 @DomName('IDBTransaction.abort') | 1251 @DomName('IDBTransaction.abort') |
| 1220 @DocsEditable() | 1252 @DocsEditable() |
| 1221 void abort() native; | 1253 void abort() native; |
| 1222 | 1254 |
| 1223 @DomName('IDBTransaction.objectStore') | 1255 @DomName('IDBTransaction.objectStore') |
| 1224 @DocsEditable() | 1256 @DocsEditable() |
| 1225 ObjectStore objectStore(String name) native; | 1257 ObjectStore objectStore(String name) native; |
| 1226 | 1258 |
| 1259 // From EventTarget |
| 1260 |
| 1261 @JSName('addEventListener') |
| 1262 @DomName('IDBTransaction.addEventListener') |
| 1263 @DocsEditable() |
| 1264 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
| 1265 |
| 1266 @DomName('IDBTransaction.dispatchEvent') |
| 1267 @DocsEditable() |
| 1268 bool dispatchEvent(Event event) native; |
| 1269 |
| 1270 @JSName('removeEventListener') |
| 1271 @DomName('IDBTransaction.removeEventListener') |
| 1272 @DocsEditable() |
| 1273 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 1274 |
| 1227 @DomName('IDBTransaction.onabort') | 1275 @DomName('IDBTransaction.onabort') |
| 1228 @DocsEditable() | 1276 @DocsEditable() |
| 1229 Stream<Event> get onAbort => abortEvent.forTarget(this); | 1277 Stream<Event> get onAbort => abortEvent.forTarget(this); |
| 1230 | 1278 |
| 1231 @DomName('IDBTransaction.oncomplete') | 1279 @DomName('IDBTransaction.oncomplete') |
| 1232 @DocsEditable() | 1280 @DocsEditable() |
| 1233 Stream<Event> get onComplete => completeEvent.forTarget(this); | 1281 Stream<Event> get onComplete => completeEvent.forTarget(this); |
| 1234 | 1282 |
| 1235 @DomName('IDBTransaction.onerror') | 1283 @DomName('IDBTransaction.onerror') |
| 1236 @DocsEditable() | 1284 @DocsEditable() |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1269 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1317 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1270 // for details. All rights reserved. Use of this source code is governed by a | 1318 // for details. All rights reserved. Use of this source code is governed by a |
| 1271 // BSD-style license that can be found in the LICENSE file. | 1319 // BSD-style license that can be found in the LICENSE file. |
| 1272 | 1320 |
| 1273 | 1321 |
| 1274 @DocsEditable() | 1322 @DocsEditable() |
| 1275 @DomName('IDBAny') | 1323 @DomName('IDBAny') |
| 1276 @deprecated // nonstandard | 1324 @deprecated // nonstandard |
| 1277 abstract class _IDBAny extends Interceptor native "IDBAny" { | 1325 abstract class _IDBAny extends Interceptor native "IDBAny" { |
| 1278 } | 1326 } |
| OLD | NEW |