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

Side by Side Diff: client/html/generated/src/wrapping/_StorageInfoWrappingImplementation.dart

Issue 8835006: New version of dart:html (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix typos Created 9 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 Storag eInfo { 7 class StorageInfoWrappingImplementation extends DOMWrapperBase implements Storag eInfo {
8 StorageInfoWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} 8 StorageInfoWrappingImplementation._wrap(ptr) : super._wrap(ptr) {}
9 9
10 void queryUsageAndQuota(int storageType, [StorageInfoUsageCallback usageCallba ck = null, StorageInfoErrorCallback errorCallback = null]) { 10 void queryUsageAndQuota(int storageType, [StorageInfoUsageCallback usageCallba ck, StorageInfoErrorCallback errorCallback]) {
11 if (usageCallback === null) { 11 if (usageCallback === null) {
12 if (errorCallback === null) { 12 if (errorCallback === null) {
13 _ptr.queryUsageAndQuota(storageType); 13 _ptr.queryUsageAndQuota(storageType);
14 return; 14 return;
15 } 15 }
16 } else { 16 } else {
17 if (errorCallback === null) { 17 if (errorCallback === null) {
18 _ptr.queryUsageAndQuota(storageType, LevelDom.unwrap(usageCallback)); 18 _ptr.queryUsageAndQuota(storageType, LevelDom.unwrap(usageCallback));
19 return; 19 return;
20 } else { 20 } else {
21 _ptr.queryUsageAndQuota(storageType, LevelDom.unwrap(usageCallback), Lev elDom.unwrap(errorCallback)); 21 _ptr.queryUsageAndQuota(storageType, LevelDom.unwrap(usageCallback), err orCallback);
22 return; 22 return;
23 } 23 }
24 } 24 }
25 throw "Incorrect number or type of arguments"; 25 throw "Incorrect number or type of arguments";
26 } 26 }
27 27
28 void requestQuota(int storageType, int newQuotaInBytes, [StorageInfoQuotaCallb ack quotaCallback = null, StorageInfoErrorCallback errorCallback = null]) { 28 void requestQuota(int storageType, int newQuotaInBytes, [StorageInfoQuotaCallb ack quotaCallback, StorageInfoErrorCallback errorCallback]) {
29 if (quotaCallback === null) { 29 if (quotaCallback === null) {
30 if (errorCallback === null) { 30 if (errorCallback === null) {
31 _ptr.requestQuota(storageType, newQuotaInBytes); 31 _ptr.requestQuota(storageType, newQuotaInBytes);
32 return; 32 return;
33 } 33 }
34 } else { 34 } else {
35 if (errorCallback === null) { 35 if (errorCallback === null) {
36 _ptr.requestQuota(storageType, newQuotaInBytes, LevelDom.unwrap(quotaCal lback)); 36 _ptr.requestQuota(storageType, newQuotaInBytes, quotaCallback);
37 return; 37 return;
38 } else { 38 } else {
39 _ptr.requestQuota(storageType, newQuotaInBytes, LevelDom.unwrap(quotaCal lback), LevelDom.unwrap(errorCallback)); 39 _ptr.requestQuota(storageType, newQuotaInBytes, quotaCallback, errorCall back);
40 return; 40 return;
41 } 41 }
42 } 42 }
43 throw "Incorrect number or type of arguments"; 43 throw "Incorrect number or type of arguments";
44 } 44 }
45 } 45 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698