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

Unified Diff: client/dom/generated/src/wrapping/_DatabaseWrappingImplementation.dart

Issue 9539003: Safely wrap window.top in frog dom. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments and merge 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/dom/generated/src/wrapping/_DatabaseWrappingImplementation.dart
diff --git a/client/dom/generated/src/wrapping/_DatabaseWrappingImplementation.dart b/client/dom/generated/src/wrapping/_DatabaseWrappingImplementation.dart
index 1be1dd82710a5a05cf913729025fbf233fcfec7b..b3200a6748e369e1f77787d0c331e7145c810790 100644
--- a/client/dom/generated/src/wrapping/_DatabaseWrappingImplementation.dart
+++ b/client/dom/generated/src/wrapping/_DatabaseWrappingImplementation.dart
@@ -15,77 +15,22 @@ class _DatabaseWrappingImplementation extends DOMWrapperBase implements Database
static String _get_version(var _this) native;
void changeVersion(String oldVersion, String newVersion, [SQLTransactionCallback callback = null, SQLTransactionErrorCallback errorCallback = null, VoidCallback successCallback = null]) {
- if (callback === null) {
- if (errorCallback === null) {
- if (successCallback === null) {
- _changeVersion(this, oldVersion, newVersion);
- return;
- }
- }
- } else {
- if (errorCallback === null) {
- if (successCallback === null) {
- _changeVersion_2(this, oldVersion, newVersion, callback);
- return;
- }
- } else {
- if (successCallback === null) {
- _changeVersion_3(this, oldVersion, newVersion, callback, errorCallback);
- return;
- } else {
- _changeVersion_4(this, oldVersion, newVersion, callback, errorCallback, successCallback);
- return;
- }
- }
- }
- throw "Incorrect number or type of arguments";
+ _changeVersion(this, oldVersion, newVersion, callback, errorCallback, successCallback);
+ return;
}
- static void _changeVersion(receiver, oldVersion, newVersion) native;
- static void _changeVersion_2(receiver, oldVersion, newVersion, callback) native;
- static void _changeVersion_3(receiver, oldVersion, newVersion, callback, errorCallback) native;
- static void _changeVersion_4(receiver, oldVersion, newVersion, callback, errorCallback, successCallback) native;
+ static void _changeVersion(receiver, oldVersion, newVersion, callback, errorCallback, successCallback) native;
void readTransaction(SQLTransactionCallback callback, [SQLTransactionErrorCallback errorCallback = null, VoidCallback successCallback = null]) {
- if (errorCallback === null) {
- if (successCallback === null) {
- _readTransaction(this, callback);
- return;
- }
- } else {
- if (successCallback === null) {
- _readTransaction_2(this, callback, errorCallback);
- return;
- } else {
- _readTransaction_3(this, callback, errorCallback, successCallback);
- return;
- }
- }
- throw "Incorrect number or type of arguments";
+ _readTransaction(this, callback, errorCallback, successCallback);
+ return;
}
- static void _readTransaction(receiver, callback) native;
- static void _readTransaction_2(receiver, callback, errorCallback) native;
- static void _readTransaction_3(receiver, callback, errorCallback, successCallback) native;
+ static void _readTransaction(receiver, callback, errorCallback, successCallback) native;
void transaction(SQLTransactionCallback callback, [SQLTransactionErrorCallback errorCallback = null, VoidCallback successCallback = null]) {
- if (errorCallback === null) {
- if (successCallback === null) {
- _transaction(this, callback);
- return;
- }
- } else {
- if (successCallback === null) {
- _transaction_2(this, callback, errorCallback);
- return;
- } else {
- _transaction_3(this, callback, errorCallback, successCallback);
- return;
- }
- }
- throw "Incorrect number or type of arguments";
+ _transaction(this, callback, errorCallback, successCallback);
+ return;
}
- static void _transaction(receiver, callback) native;
- static void _transaction_2(receiver, callback, errorCallback) native;
- static void _transaction_3(receiver, callback, errorCallback, successCallback) native;
+ static void _transaction(receiver, callback, errorCallback, successCallback) native;
String get typeName() { return "Database"; }
}

Powered by Google App Engine
This is Rietveld 408576698