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

Side by Side Diff: client/html/generated/html/dartium/Database.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 _DatabaseImpl extends _DOMTypeBase implements Database {
3 _DatabaseImpl._wrap(ptr) : super._wrap(ptr);
4
5 String get version() => _wrap(_ptr.version);
6
7 void changeVersion(String oldVersion, String newVersion, [SQLTransactionCallba ck callback = null, SQLTransactionErrorCallback errorCallback = null, VoidCallba ck successCallback = null]) {
8 if (callback === null) {
9 if (errorCallback === null) {
10 if (successCallback === null) {
11 _ptr.changeVersion(_unwrap(oldVersion), _unwrap(newVersion));
12 return;
13 }
14 }
15 } else {
16 if (errorCallback === null) {
17 if (successCallback === null) {
18 _ptr.changeVersion(_unwrap(oldVersion), _unwrap(newVersion), _unwrap(c allback));
19 return;
20 }
21 } else {
22 if (successCallback === null) {
23 _ptr.changeVersion(_unwrap(oldVersion), _unwrap(newVersion), _unwrap(c allback), _unwrap(errorCallback));
24 return;
25 } else {
26 _ptr.changeVersion(_unwrap(oldVersion), _unwrap(newVersion), _unwrap(c allback), _unwrap(errorCallback), _unwrap(successCallback));
27 return;
28 }
29 }
30 }
31 throw "Incorrect number or type of arguments";
32 }
33
34 void readTransaction(SQLTransactionCallback callback, [SQLTransactionErrorCall back errorCallback = null, VoidCallback successCallback = null]) {
35 if (errorCallback === null) {
36 if (successCallback === null) {
37 _ptr.readTransaction(_unwrap(callback));
38 return;
39 }
40 } else {
41 if (successCallback === null) {
42 _ptr.readTransaction(_unwrap(callback), _unwrap(errorCallback));
43 return;
44 } else {
45 _ptr.readTransaction(_unwrap(callback), _unwrap(errorCallback), _unwrap( successCallback));
46 return;
47 }
48 }
49 throw "Incorrect number or type of arguments";
50 }
51
52 void transaction(SQLTransactionCallback callback, [SQLTransactionErrorCallback errorCallback = null, VoidCallback successCallback = null]) {
53 if (errorCallback === null) {
54 if (successCallback === null) {
55 _ptr.transaction(_unwrap(callback));
56 return;
57 }
58 } else {
59 if (successCallback === null) {
60 _ptr.transaction(_unwrap(callback), _unwrap(errorCallback));
61 return;
62 } else {
63 _ptr.transaction(_unwrap(callback), _unwrap(errorCallback), _unwrap(succ essCallback));
64 return;
65 }
66 }
67 throw "Incorrect number or type of arguments";
68 }
69 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698