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

Unified Diff: client/dom/generated/src/wrapping/_StorageInfoWrappingImplementation.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/_StorageInfoWrappingImplementation.dart
diff --git a/client/dom/generated/src/wrapping/_StorageInfoWrappingImplementation.dart b/client/dom/generated/src/wrapping/_StorageInfoWrappingImplementation.dart
index ea6f39ba48469a4b99fe13c29762b0fa7e9adea7..38cff41b28a5fcfa8ae49c566a2b644d58742976 100644
--- a/client/dom/generated/src/wrapping/_StorageInfoWrappingImplementation.dart
+++ b/client/dom/generated/src/wrapping/_StorageInfoWrappingImplementation.dart
@@ -12,46 +12,16 @@ class _StorageInfoWrappingImplementation extends DOMWrapperBase implements Stora
}
void queryUsageAndQuota(int storageType, [StorageInfoUsageCallback usageCallback = null, StorageInfoErrorCallback errorCallback = null]) {
- if (usageCallback === null) {
- if (errorCallback === null) {
- _queryUsageAndQuota(this, storageType);
- return;
- }
- } else {
- if (errorCallback === null) {
- _queryUsageAndQuota_2(this, storageType, usageCallback);
- return;
- } else {
- _queryUsageAndQuota_3(this, storageType, usageCallback, errorCallback);
- return;
- }
- }
- throw "Incorrect number or type of arguments";
+ _queryUsageAndQuota(this, storageType, usageCallback, errorCallback);
+ return;
}
- static void _queryUsageAndQuota(receiver, storageType) native;
- static void _queryUsageAndQuota_2(receiver, storageType, usageCallback) native;
- static void _queryUsageAndQuota_3(receiver, storageType, usageCallback, errorCallback) native;
+ static void _queryUsageAndQuota(receiver, storageType, usageCallback, errorCallback) native;
void requestQuota(int storageType, int newQuotaInBytes, [StorageInfoQuotaCallback quotaCallback = null, StorageInfoErrorCallback errorCallback = null]) {
- if (quotaCallback === null) {
- if (errorCallback === null) {
- _requestQuota(this, storageType, newQuotaInBytes);
- return;
- }
- } else {
- if (errorCallback === null) {
- _requestQuota_2(this, storageType, newQuotaInBytes, quotaCallback);
- return;
- } else {
- _requestQuota_3(this, storageType, newQuotaInBytes, quotaCallback, errorCallback);
- return;
- }
- }
- throw "Incorrect number or type of arguments";
+ _requestQuota(this, storageType, newQuotaInBytes, quotaCallback, errorCallback);
+ return;
}
- static void _requestQuota(receiver, storageType, newQuotaInBytes) native;
- static void _requestQuota_2(receiver, storageType, newQuotaInBytes, quotaCallback) native;
- static void _requestQuota_3(receiver, storageType, newQuotaInBytes, quotaCallback, errorCallback) native;
+ static void _requestQuota(receiver, storageType, newQuotaInBytes, quotaCallback, errorCallback) native;
String get typeName() { return "StorageInfo"; }
}

Powered by Google App Engine
This is Rietveld 408576698