OLD | NEW |
| (Empty) |
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 | |
3 // BSD-style license that can be found in the LICENSE file. | |
4 | |
5 // WARNING: Do not edit - generated code. | |
6 | |
7 class StorageInfoWrappingImplementation extends DOMWrapperBase implements Storag
eInfo { | |
8 StorageInfoWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
9 | |
10 void queryUsageAndQuota(int storageType, [StorageInfoUsageCallback usageCallba
ck, StorageInfoErrorCallback errorCallback]) { | |
11 if (usageCallback === null) { | |
12 if (errorCallback === null) { | |
13 _ptr.queryUsageAndQuota(storageType); | |
14 return; | |
15 } | |
16 } else { | |
17 if (errorCallback === null) { | |
18 _ptr.queryUsageAndQuota(storageType, LevelDom.unwrap(usageCallback)); | |
19 return; | |
20 } else { | |
21 _ptr.queryUsageAndQuota(storageType, LevelDom.unwrap(usageCallback), err
orCallback); | |
22 return; | |
23 } | |
24 } | |
25 throw "Incorrect number or type of arguments"; | |
26 } | |
27 | |
28 void requestQuota(int storageType, int newQuotaInBytes, [StorageInfoQuotaCallb
ack quotaCallback, StorageInfoErrorCallback errorCallback]) { | |
29 if (quotaCallback === null) { | |
30 if (errorCallback === null) { | |
31 _ptr.requestQuota(storageType, newQuotaInBytes); | |
32 return; | |
33 } | |
34 } else { | |
35 if (errorCallback === null) { | |
36 _ptr.requestQuota(storageType, newQuotaInBytes, quotaCallback); | |
37 return; | |
38 } else { | |
39 _ptr.requestQuota(storageType, newQuotaInBytes, quotaCallback, errorCall
back); | |
40 return; | |
41 } | |
42 } | |
43 throw "Incorrect number or type of arguments"; | |
44 } | |
45 } | |
OLD | NEW |