| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
| 6 | 6 |
| 7 class _StorageInfoWrappingImplementation extends DOMWrapperBase implements Stora
geInfo { | 7 class _StorageInfoWrappingImplementation extends DOMWrapperBase implements Stora
geInfo { |
| 8 _StorageInfoWrappingImplementation() : super() {} | 8 _StorageInfoWrappingImplementation() : super() {} |
| 9 | 9 |
| 10 static create__StorageInfoWrappingImplementation() native { | 10 static create__StorageInfoWrappingImplementation() native { |
| 11 return new _StorageInfoWrappingImplementation(); | 11 return new _StorageInfoWrappingImplementation(); |
| 12 } | 12 } |
| 13 | 13 |
| 14 void queryUsageAndQuota(int storageType, [StorageInfoUsageCallback usageCallba
ck = null, StorageInfoErrorCallback errorCallback = null]) { | 14 void queryUsageAndQuota(int storageType, [StorageInfoUsageCallback usageCallba
ck = null, StorageInfoErrorCallback errorCallback = null]) { |
| 15 if (usageCallback === null) { | 15 _queryUsageAndQuota(this, storageType, usageCallback, errorCallback); |
| 16 if (errorCallback === null) { | 16 return; |
| 17 _queryUsageAndQuota(this, storageType); | |
| 18 return; | |
| 19 } | |
| 20 } else { | |
| 21 if (errorCallback === null) { | |
| 22 _queryUsageAndQuota_2(this, storageType, usageCallback); | |
| 23 return; | |
| 24 } else { | |
| 25 _queryUsageAndQuota_3(this, storageType, usageCallback, errorCallback); | |
| 26 return; | |
| 27 } | |
| 28 } | |
| 29 throw "Incorrect number or type of arguments"; | |
| 30 } | 17 } |
| 31 static void _queryUsageAndQuota(receiver, storageType) native; | 18 static void _queryUsageAndQuota(receiver, storageType, usageCallback, errorCal
lback) native; |
| 32 static void _queryUsageAndQuota_2(receiver, storageType, usageCallback) native
; | |
| 33 static void _queryUsageAndQuota_3(receiver, storageType, usageCallback, errorC
allback) native; | |
| 34 | 19 |
| 35 void requestQuota(int storageType, int newQuotaInBytes, [StorageInfoQuotaCallb
ack quotaCallback = null, StorageInfoErrorCallback errorCallback = null]) { | 20 void requestQuota(int storageType, int newQuotaInBytes, [StorageInfoQuotaCallb
ack quotaCallback = null, StorageInfoErrorCallback errorCallback = null]) { |
| 36 if (quotaCallback === null) { | 21 _requestQuota(this, storageType, newQuotaInBytes, quotaCallback, errorCallba
ck); |
| 37 if (errorCallback === null) { | 22 return; |
| 38 _requestQuota(this, storageType, newQuotaInBytes); | |
| 39 return; | |
| 40 } | |
| 41 } else { | |
| 42 if (errorCallback === null) { | |
| 43 _requestQuota_2(this, storageType, newQuotaInBytes, quotaCallback); | |
| 44 return; | |
| 45 } else { | |
| 46 _requestQuota_3(this, storageType, newQuotaInBytes, quotaCallback, error
Callback); | |
| 47 return; | |
| 48 } | |
| 49 } | |
| 50 throw "Incorrect number or type of arguments"; | |
| 51 } | 23 } |
| 52 static void _requestQuota(receiver, storageType, newQuotaInBytes) native; | 24 static void _requestQuota(receiver, storageType, newQuotaInBytes, quotaCallbac
k, errorCallback) native; |
| 53 static void _requestQuota_2(receiver, storageType, newQuotaInBytes, quotaCallb
ack) native; | |
| 54 static void _requestQuota_3(receiver, storageType, newQuotaInBytes, quotaCallb
ack, errorCallback) native; | |
| 55 | 25 |
| 56 String get typeName() { return "StorageInfo"; } | 26 String get typeName() { return "StorageInfo"; } |
| 57 } | 27 } |
| OLD | NEW |