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

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 208743003: Remove queryUsageAndQuota API (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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:
Download patch
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dart2js/html_dart2js.dart
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
index 90a5e7f9e3f9955ce8bac8f5ae5a99558980a83e..e60871909a717f212fdc761aedc8bc392f812f26 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -24443,11 +24443,12 @@ class StorageEvent extends Event native "StorageEvent" {
void _initStorageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, String keyArg, String oldValueArg, String newValueArg, String urlArg, Storage storageAreaArg) native;
}
-// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
+@DocsEditable()
@DomName('StorageInfo')
// http://www.w3.org/TR/file-system-api/
@Experimental()
@@ -24464,27 +24465,6 @@ class StorageInfo extends Interceptor native "StorageInfo" {
@DocsEditable()
@Experimental() // untriaged
final int usage;
-
- Future<StorageInfoUsage> queryUsageAndQuota(int storageType) {
blois 2014/03/25 19:06:02 I'm pretty sure that people are using this API rig
vsm 2014/03/25 19:50:11 StorageInfo is the type changed here, not StorageQ
blois 2014/03/25 21:42:02 The API to query the quota changed from StorageInf
- var completer = new Completer<StorageInfoUsage>();
- _queryUsageAndQuota(storageType,
- (currentUsageInBytes, currentQuotaInBytes) {
- completer.complete(new StorageInfoUsage(currentUsageInBytes,
- currentQuotaInBytes));
- },
- (error) { completer.completeError(error); });
- return completer.future;
- }
-}
-
-/**
- * A simple container class for the two values that are returned from the
- * futures in requestQuota and queryUsageAndQuota.
- */
-class StorageInfoUsage {
- final int currentUsageInBytes;
- final int currentQuotaInBytes;
- const StorageInfoUsage(this.currentUsageInBytes, this.currentQuotaInBytes);
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698