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

Unified 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, 10 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 side-by-side diff with in-line comments
Download patch
Index: client/html/generated/html/dartium/StorageInfo.dart
diff --git a/client/html/generated/html/dartium/StorageInfo.dart b/client/html/generated/html/dartium/StorageInfo.dart
new file mode 100644
index 0000000000000000000000000000000000000000..ca74863824ec2b8386ca8c00059f7ba7c7f68de1
--- /dev/null
+++ b/client/html/generated/html/dartium/StorageInfo.dart
@@ -0,0 +1,40 @@
+
+class _StorageInfoImpl extends _DOMTypeBase implements StorageInfo {
+ _StorageInfoImpl._wrap(ptr) : super._wrap(ptr);
+
+ void queryUsageAndQuota(int storageType, [StorageInfoUsageCallback usageCallback = null, StorageInfoErrorCallback errorCallback = null]) {
+ if (usageCallback === null) {
+ if (errorCallback === null) {
+ _ptr.queryUsageAndQuota(_unwrap(storageType));
+ return;
+ }
+ } else {
+ if (errorCallback === null) {
+ _ptr.queryUsageAndQuota(_unwrap(storageType), _unwrap(usageCallback));
+ return;
+ } else {
+ _ptr.queryUsageAndQuota(_unwrap(storageType), _unwrap(usageCallback), _unwrap(errorCallback));
+ return;
+ }
+ }
+ throw "Incorrect number or type of arguments";
+ }
+
+ void requestQuota(int storageType, int newQuotaInBytes, [StorageInfoQuotaCallback quotaCallback = null, StorageInfoErrorCallback errorCallback = null]) {
+ if (quotaCallback === null) {
+ if (errorCallback === null) {
+ _ptr.requestQuota(_unwrap(storageType), _unwrap(newQuotaInBytes));
+ return;
+ }
+ } else {
+ if (errorCallback === null) {
+ _ptr.requestQuota(_unwrap(storageType), _unwrap(newQuotaInBytes), _unwrap(quotaCallback));
+ return;
+ } else {
+ _ptr.requestQuota(_unwrap(storageType), _unwrap(newQuotaInBytes), _unwrap(quotaCallback), _unwrap(errorCallback));
+ return;
+ }
+ }
+ throw "Incorrect number or type of arguments";
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698