Chromium Code Reviews| 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 6d26275034f92716ff98430037c724a85b395602..5cd0f49573618b35f259e3bd69c304a419ec9a36 100644 |
| --- a/chrome/common/extensions/api/experimental_system_info_storage.idl |
| +++ b/chrome/common/extensions/api/experimental_system_info_storage.idl |
| @@ -15,21 +15,6 @@ namespace experimental.systemInfo.storage { |
| unknown |
| }; |
| - dictionary StorageUnitInfo { |
| - // The unique storage id. It will use the transient ID. |
| - DOMString id; |
| - // The name of the storage unit. |
| - DOMString name; |
| - // The media type of the storage unit. |
| - StorageUnitType type; |
| - // The total amount of the storage space, in bytes. |
| - // Default value is 0 if query operation fails. |
| - double capacity; |
| - // The available amount of the storage space, in bytes. |
| - // Default value is 0 if query operation fails. |
| - double availableCapacity; |
| - }; |
| - |
| dictionary StorageFreeSpaceChangeInfo { |
| // The transient id of the storage unit already changed. |
| DOMString id; |
| @@ -44,17 +29,11 @@ namespace experimental.systemInfo.storage { |
| boolean success; |
| }; |
| - callback StorageInfoCallback = void (StorageUnitInfo[] info); |
| - |
| callback AddWatchCallback = void (AddWatchResult info); |
| callback GetAllWatchCallback = void (DOMString[] storageIds); |
| interface Functions { |
| - // Get the storage information from the system. The argument passed to the |
| - // callback is an array of StorageUnitInfo objects. |
| - static void get(StorageInfoCallback callback); |
| - |
| // Monitor a particular storage device available change capacity. |
| static void addWatch(DOMString id, AddWatchCallback callback); |
| @@ -72,13 +51,6 @@ namespace experimental.systemInfo.storage { |
| // Fired when the storage device available capacity is changed. |
| // |info|: The changed information for the specified storage unit. |
| static void onAvailableCapacityChanged(StorageFreeSpaceChangeInfo info); |
|
Hongbo Min
2013/07/08 06:52:43
Maybe here we need to add 'getAvailableCapacity' f
Haojian Wu
2013/07/08 07:46:30
Yes. My plan is to implement the 'getAvailableCapa
|
| - |
| - // Fired when a new removable storage is attached to the system. |
| - static void onAttached(StorageUnitInfo info); |
| - |
| - // Fired when a removable storage is detached from the system. |
| - static void onDetached(DOMString id); |
| }; |
| - |
| }; |