OLD | NEW |
(Empty) | |
| 1 |
| 2 class _StorageInfoImpl extends _DOMTypeBase implements StorageInfo { |
| 3 _StorageInfoImpl._wrap(ptr) : super._wrap(ptr); |
| 4 |
| 5 void queryUsageAndQuota(int storageType, [StorageInfoUsageCallback usageCallba
ck = null, StorageInfoErrorCallback errorCallback = null]) { |
| 6 if (usageCallback === null) { |
| 7 if (errorCallback === null) { |
| 8 _ptr.queryUsageAndQuota(_unwrap(storageType)); |
| 9 return; |
| 10 } |
| 11 } else { |
| 12 if (errorCallback === null) { |
| 13 _ptr.queryUsageAndQuota(_unwrap(storageType), _unwrap(usageCallback)); |
| 14 return; |
| 15 } else { |
| 16 _ptr.queryUsageAndQuota(_unwrap(storageType), _unwrap(usageCallback), _u
nwrap(errorCallback)); |
| 17 return; |
| 18 } |
| 19 } |
| 20 throw "Incorrect number or type of arguments"; |
| 21 } |
| 22 |
| 23 void requestQuota(int storageType, int newQuotaInBytes, [StorageInfoQuotaCallb
ack quotaCallback = null, StorageInfoErrorCallback errorCallback = null]) { |
| 24 if (quotaCallback === null) { |
| 25 if (errorCallback === null) { |
| 26 _ptr.requestQuota(_unwrap(storageType), _unwrap(newQuotaInBytes)); |
| 27 return; |
| 28 } |
| 29 } else { |
| 30 if (errorCallback === null) { |
| 31 _ptr.requestQuota(_unwrap(storageType), _unwrap(newQuotaInBytes), _unwra
p(quotaCallback)); |
| 32 return; |
| 33 } else { |
| 34 _ptr.requestQuota(_unwrap(storageType), _unwrap(newQuotaInBytes), _unwra
p(quotaCallback), _unwrap(errorCallback)); |
| 35 return; |
| 36 } |
| 37 } |
| 38 throw "Incorrect number or type of arguments"; |
| 39 } |
| 40 } |
OLD | NEW |