| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 // WARNING: Do not edit - generated code. |
| 6 |
| 7 /// @domName IDBTransaction |
| 8 interface IDBTransaction extends EventTarget { |
| 9 |
| 10 /** |
| 11 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent |
| 12 */ |
| 13 IDBTransactionEvents get on(); |
| 14 |
| 15 static final int READ_ONLY = 0; |
| 16 |
| 17 static final int READ_WRITE = 1; |
| 18 |
| 19 static final int VERSION_CHANGE = 2; |
| 20 |
| 21 /** @domName IDBTransaction.db */ |
| 22 final IDBDatabase db; |
| 23 |
| 24 /** @domName IDBTransaction.error */ |
| 25 final DOMError error; |
| 26 |
| 27 /** @domName IDBTransaction.mode */ |
| 28 final String mode; |
| 29 |
| 30 /** @domName IDBTransaction.abort */ |
| 31 void abort(); |
| 32 |
| 33 /** @domName IDBTransaction.addEventListener */ |
| 34 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]); |
| 35 |
| 36 /** @domName IDBTransaction.dispatchEvent */ |
| 37 bool $dom_dispatchEvent(Event evt); |
| 38 |
| 39 /** @domName IDBTransaction.objectStore */ |
| 40 IDBObjectStore objectStore(String name); |
| 41 |
| 42 /** @domName IDBTransaction.removeEventListener */ |
| 43 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]); |
| 44 } |
| 45 |
| 46 interface IDBTransactionEvents extends Events { |
| 47 |
| 48 EventListenerList get abort(); |
| 49 |
| 50 EventListenerList get complete(); |
| 51 |
| 52 EventListenerList get error(); |
| 53 } |
| OLD | NEW |