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

Unified 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, 10 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 side-by-side diff with in-line comments
Download patch
Index: client/html/generated/html/dartium/Database.dart
diff --git a/client/html/generated/html/dartium/Database.dart b/client/html/generated/html/dartium/Database.dart
new file mode 100644
index 0000000000000000000000000000000000000000..669112f036b00e519da112869104cd286abc52ed
--- /dev/null
+++ b/client/html/generated/html/dartium/Database.dart
@@ -0,0 +1,69 @@
+
+class _DatabaseImpl extends _DOMTypeBase implements Database {
+ _DatabaseImpl._wrap(ptr) : super._wrap(ptr);
+
+ String get version() => _wrap(_ptr.version);
+
+ void changeVersion(String oldVersion, String newVersion, [SQLTransactionCallback callback = null, SQLTransactionErrorCallback errorCallback = null, VoidCallback successCallback = null]) {
+ if (callback === null) {
+ if (errorCallback === null) {
+ if (successCallback === null) {
+ _ptr.changeVersion(_unwrap(oldVersion), _unwrap(newVersion));
+ return;
+ }
+ }
+ } else {
+ if (errorCallback === null) {
+ if (successCallback === null) {
+ _ptr.changeVersion(_unwrap(oldVersion), _unwrap(newVersion), _unwrap(callback));
+ return;
+ }
+ } else {
+ if (successCallback === null) {
+ _ptr.changeVersion(_unwrap(oldVersion), _unwrap(newVersion), _unwrap(callback), _unwrap(errorCallback));
+ return;
+ } else {
+ _ptr.changeVersion(_unwrap(oldVersion), _unwrap(newVersion), _unwrap(callback), _unwrap(errorCallback), _unwrap(successCallback));
+ return;
+ }
+ }
+ }
+ throw "Incorrect number or type of arguments";
+ }
+
+ void readTransaction(SQLTransactionCallback callback, [SQLTransactionErrorCallback errorCallback = null, VoidCallback successCallback = null]) {
+ if (errorCallback === null) {
+ if (successCallback === null) {
+ _ptr.readTransaction(_unwrap(callback));
+ return;
+ }
+ } else {
+ if (successCallback === null) {
+ _ptr.readTransaction(_unwrap(callback), _unwrap(errorCallback));
+ return;
+ } else {
+ _ptr.readTransaction(_unwrap(callback), _unwrap(errorCallback), _unwrap(successCallback));
+ return;
+ }
+ }
+ throw "Incorrect number or type of arguments";
+ }
+
+ void transaction(SQLTransactionCallback callback, [SQLTransactionErrorCallback errorCallback = null, VoidCallback successCallback = null]) {
+ if (errorCallback === null) {
+ if (successCallback === null) {
+ _ptr.transaction(_unwrap(callback));
+ return;
+ }
+ } else {
+ if (successCallback === null) {
+ _ptr.transaction(_unwrap(callback), _unwrap(errorCallback));
+ return;
+ } else {
+ _ptr.transaction(_unwrap(callback), _unwrap(errorCallback), _unwrap(successCallback));
+ return;
+ }
+ }
+ throw "Incorrect number or type of arguments";
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698