| Index: chrome/common/extensions/api/experimental_system_info_storage.idl
|
| diff --git a/chrome/common/extensions/api/experimental_system_info_storage.idl b/chrome/common/extensions/api/experimental_system_info_storage.idl
|
| index f56d598b12f27a904f84c3f40261b6f37ba7cf17..a5219785921994fcc993a812b30b95eb22a1ae90 100644
|
| --- a/chrome/common/extensions/api/experimental_system_info_storage.idl
|
| +++ b/chrome/common/extensions/api/experimental_system_info_storage.idl
|
| @@ -19,12 +19,21 @@ namespace experimental.systemInfo.storage {
|
| // The type of storage device. The value is one of the constants defined
|
| // for this type.
|
| StorageUnitType type;
|
| + // The mount path of the storage device, e.g. the drive name on Windows.
|
| + DOMString path;
|
| // The total amount of the storage space, in bytes.
|
| double capacity;
|
| // The available amount of the storage space, in bytes.
|
| double availableCapacity;
|
| };
|
|
|
| + dictionary StorageChangeInfo {
|
| + // The uniue id of the storage unit already changed.
|
| + DOMString id;
|
| + // The new value of the available capacity.
|
| + double availableCapacity;
|
| + };
|
| +
|
| dictionary StorageInfo {
|
| // The array of storage units connected to the system.
|
| StorageUnitInfo[] units;
|
| @@ -36,5 +45,12 @@ namespace experimental.systemInfo.storage {
|
| // Get the storage information from the system.
|
| static void get(StorageInfoCallback callback);
|
| };
|
| +
|
| + interface Events {
|
| + // Fired when the storage information is updated.
|
| + // |info| : The changed information for the specified storage unit
|
| + static void onAvailableCapacityChanged(StorageChangeInfo info);
|
| + };
|
| +
|
| };
|
|
|
|
|