Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(439)

Side by Side Diff: client/html/generated/html/dartium/IDBDatabase.dart

Issue 9537001: Generate dart:html bindings for Dartium as well as Frog. All unittests now pass (or are disabled fo… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1
2 class _IDBDatabaseImpl extends _DOMTypeBase implements IDBDatabase {
3 _IDBDatabaseImpl._wrap(ptr) : super._wrap(ptr);
4
5 String get name() => _wrap(_ptr.name);
6
7 List<String> get objectStoreNames() => _wrap(_ptr.objectStoreNames);
8
9 EventListener get onabort() => _wrap(_ptr.onabort);
10
11 void set onabort(EventListener value) { _ptr.onabort = _unwrap(value); }
12
13 EventListener get onerror() => _wrap(_ptr.onerror);
14
15 void set onerror(EventListener value) { _ptr.onerror = _unwrap(value); }
16
17 EventListener get onversionchange() => _wrap(_ptr.onversionchange);
18
19 void set onversionchange(EventListener value) { _ptr.onversionchange = _unwrap (value); }
20
21 String get version() => _wrap(_ptr.version);
22
23 void addEventListener(String type, EventListener listener, [bool useCapture = null]) {
24 if (useCapture === null) {
25 _ptr.addEventListener(_unwrap(type), _unwrap(listener));
26 return;
27 } else {
28 _ptr.addEventListener(_unwrap(type), _unwrap(listener), _unwrap(useCapture ));
29 return;
30 }
31 }
32
33 void close() {
34 _ptr.close();
35 return;
36 }
37
38 IDBObjectStore createObjectStore(String name) {
39 return _wrap(_ptr.createObjectStore(_unwrap(name)));
40 }
41
42 void deleteObjectStore(String name) {
43 _ptr.deleteObjectStore(_unwrap(name));
44 return;
45 }
46
47 bool dispatchEvent(Event evt) {
48 return _wrap(_ptr.dispatchEvent(_unwrap(evt)));
49 }
50
51 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) {
52 if (useCapture === null) {
53 _ptr.removeEventListener(_unwrap(type), _unwrap(listener));
54 return;
55 } else {
56 _ptr.removeEventListener(_unwrap(type), _unwrap(listener), _unwrap(useCapt ure));
57 return;
58 }
59 }
60
61 IDBVersionChangeRequest setVersion(String version) {
62 return _wrap(_ptr.setVersion(_unwrap(version)));
63 }
64
65 IDBTransaction transaction(var storeName_OR_storeNames, int mode) {
66 if (storeName_OR_storeNames is List<String>) {
67 return _wrap(_ptr.transaction(_unwrap(storeName_OR_storeNames), _unwrap(mo de)));
68 } else {
69 if (storeName_OR_storeNames is String) {
70 return _wrap(_ptr.transaction(_unwrap(storeName_OR_storeNames), _unwrap( mode)));
71 }
72 }
73 throw "Incorrect number or type of arguments";
74 }
75 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698