OLD | NEW |
| (Empty) |
1 // Copyright (c) 2011, 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 class IDBTransactionWrappingImplementation extends DOMWrapperBase implements IDB
Transaction { | |
8 IDBTransactionWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
9 | |
10 IDBDatabase get db() { return LevelDom.wrapIDBDatabase(_ptr.db); } | |
11 | |
12 int get mode() { return _ptr.mode; } | |
13 | |
14 void abort() { | |
15 _ptr.abort(); | |
16 return; | |
17 } | |
18 | |
19 void addEventListener(String type, EventListener listener, [bool useCapture])
{ | |
20 if (useCapture === null) { | |
21 _ptr.addEventListener(type, LevelDom.unwrap(listener)); | |
22 return; | |
23 } else { | |
24 _ptr.addEventListener(type, LevelDom.unwrap(listener), useCapture); | |
25 return; | |
26 } | |
27 } | |
28 | |
29 bool dispatchEvent(Event evt) { | |
30 return _ptr.dispatchEvent(LevelDom.unwrap(evt)); | |
31 } | |
32 | |
33 IDBObjectStore objectStore(String name) { | |
34 return LevelDom.wrapIDBObjectStore(_ptr.objectStore(name)); | |
35 } | |
36 | |
37 void removeEventListener(String type, EventListener listener, [bool useCapture
]) { | |
38 if (useCapture === null) { | |
39 _ptr.removeEventListener(type, LevelDom.unwrap(listener)); | |
40 return; | |
41 } else { | |
42 _ptr.removeEventListener(type, LevelDom.unwrap(listener), useCapture); | |
43 return; | |
44 } | |
45 } | |
46 } | |
OLD | NEW |