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

Side by Side Diff: client/html/generated/html/dartium/StorageInfo.dart

Issue 9537001: Generate dart:html bindings for Dartium as well as Frog. All unittests now pass (or are disabled fo… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698