Chromium Code Reviews| 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 |