| 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: | |
| 6 // This file contains documentation that is merged into the real source. | |
| 7 // Do not make code changes here. | |
| 8 | |
| 9 /// @domName IDBTransaction | |
| 10 interface IDBTransaction extends EventTarget { | |
| 11 | |
| 12 /** | |
| 13 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent | |
| 14 */ | |
| 15 IDBTransactionEvents get on(); | |
| 16 | |
| 17 static final int READ_ONLY = 0; | |
| 18 | |
| 19 static final int READ_WRITE = 1; | |
| 20 | |
| 21 static final int VERSION_CHANGE = 2; | |
| 22 | |
| 23 /** @domName IDBTransaction.db */ | |
| 24 final IDBDatabase db; | |
| 25 | |
| 26 /** @domName IDBTransaction.error */ | |
| 27 final DOMError error; | |
| 28 | |
| 29 /** @domName IDBTransaction.mode */ | |
| 30 final String mode; | |
| 31 | |
| 32 /** @domName IDBTransaction.abort */ | |
| 33 void abort(); | |
| 34 | |
| 35 /** @domName IDBTransaction.addEventListener */ | |
| 36 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]); | |
| 37 | |
| 38 /** @domName IDBTransaction.dispatchEvent */ | |
| 39 bool $dom_dispatchEvent(Event evt); | |
| 40 | |
| 41 /** @domName IDBTransaction.objectStore */ | |
| 42 IDBObjectStore objectStore(String name); | |
| 43 | |
| 44 /** @domName IDBTransaction.removeEventListener */ | |
| 45 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]); | |
| 46 } | |
| 47 | |
| 48 interface IDBTransactionEvents extends Events { | |
| 49 | |
| 50 EventListenerList get abort(); | |
| 51 | |
| 52 EventListenerList get complete(); | |
| 53 | |
| 54 EventListenerList get error(); | |
| 55 } | |
| OLD | NEW |