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 _IDBDatabaseWrappingImplementation extends DOMWrapperBase implements IDBDa
tabase { | |
8 _IDBDatabaseWrappingImplementation() : super() {} | |
9 | |
10 static create__IDBDatabaseWrappingImplementation() native { | |
11 return new _IDBDatabaseWrappingImplementation(); | |
12 } | |
13 | |
14 String get name() { return _get_name(this); } | |
15 static String _get_name(var _this) native; | |
16 | |
17 List<String> get objectStoreNames() { return _get_objectStoreNames(this); } | |
18 static List<String> _get_objectStoreNames(var _this) native; | |
19 | |
20 EventListener get onabort() { return _get_onabort(this); } | |
21 static EventListener _get_onabort(var _this) native; | |
22 | |
23 void set onabort(EventListener value) { _set_onabort(this, value); } | |
24 static void _set_onabort(var _this, EventListener value) native; | |
25 | |
26 EventListener get onerror() { return _get_onerror(this); } | |
27 static EventListener _get_onerror(var _this) native; | |
28 | |
29 void set onerror(EventListener value) { _set_onerror(this, value); } | |
30 static void _set_onerror(var _this, EventListener value) native; | |
31 | |
32 EventListener get onversionchange() { return _get_onversionchange(this); } | |
33 static EventListener _get_onversionchange(var _this) native; | |
34 | |
35 void set onversionchange(EventListener value) { _set_onversionchange(this, val
ue); } | |
36 static void _set_onversionchange(var _this, EventListener value) native; | |
37 | |
38 String get version() { return _get_version(this); } | |
39 static String _get_version(var _this) native; | |
40 | |
41 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) { | |
42 if (useCapture === null) { | |
43 _addEventListener(this, type, listener); | |
44 return; | |
45 } else { | |
46 _addEventListener_2(this, type, listener, useCapture); | |
47 return; | |
48 } | |
49 } | |
50 static void _addEventListener(receiver, type, listener) native; | |
51 static void _addEventListener_2(receiver, type, listener, useCapture) native; | |
52 | |
53 void close() { | |
54 _close(this); | |
55 return; | |
56 } | |
57 static void _close(receiver) native; | |
58 | |
59 IDBObjectStore createObjectStore(String name) { | |
60 return _createObjectStore(this, name); | |
61 } | |
62 static IDBObjectStore _createObjectStore(receiver, name) native; | |
63 | |
64 void deleteObjectStore(String name) { | |
65 _deleteObjectStore(this, name); | |
66 return; | |
67 } | |
68 static void _deleteObjectStore(receiver, name) native; | |
69 | |
70 bool dispatchEvent(Event evt) { | |
71 return _dispatchEvent(this, evt); | |
72 } | |
73 static bool _dispatchEvent(receiver, evt) native; | |
74 | |
75 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) { | |
76 if (useCapture === null) { | |
77 _removeEventListener(this, type, listener); | |
78 return; | |
79 } else { | |
80 _removeEventListener_2(this, type, listener, useCapture); | |
81 return; | |
82 } | |
83 } | |
84 static void _removeEventListener(receiver, type, listener) native; | |
85 static void _removeEventListener_2(receiver, type, listener, useCapture) nativ
e; | |
86 | |
87 IDBVersionChangeRequest setVersion(String version) { | |
88 return _setVersion(this, version); | |
89 } | |
90 static IDBVersionChangeRequest _setVersion(receiver, version) native; | |
91 | |
92 IDBTransaction transaction(var storeName_OR_storeNames, [int mode = null]) { | |
93 if (storeName_OR_storeNames is List<String>) { | |
94 return _transaction(this, storeName_OR_storeNames, mode); | |
95 } else { | |
96 if (storeName_OR_storeNames is String) { | |
97 return _transaction_2(this, storeName_OR_storeNames, mode); | |
98 } | |
99 } | |
100 throw "Incorrect number or type of arguments"; | |
101 } | |
102 static IDBTransaction _transaction(receiver, storeName_OR_storeNames, mode) na
tive; | |
103 static IDBTransaction _transaction_2(receiver, storeName_OR_storeNames, mode)
native; | |
104 | |
105 String get typeName() { return "IDBDatabase"; } | |
106 } | |
OLD | NEW |