OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 namespace experimental.systemInfo.storage { | 5 namespace experimental.systemInfo.storage { |
6 | 6 |
7 enum StorageUnitType { | 7 enum StorageUnitType { |
8 // Unknow storage type. | 8 // The storage has a fixed media, e.g. hard disk or flash drive. |
vandebo (ex-Chrome)
2013/05/23 15:49:44
nit: The storage has fixed media, i.e. hard disk o
Hongbo Min
2013/05/24 01:03:14
Done.
| |
9 unknown, | 9 fixed, |
10 // Hard disk. | 10 // The storage has a removable media, e.g. USB mass storage. |
vandebo (ex-Chrome)
2013/05/23 15:49:44
nit: The storage is removable, i.e. USB flash driv
Hongbo Min
2013/05/24 01:03:14
Done.
| |
11 harddisk, | 11 removable, |
12 // Removable storage, e.g.USB device. | 12 // The storage has an unknown storage media type. |
vandebo (ex-Chrome)
2013/05/23 15:49:44
nit: The storage type is unknown.
Hongbo Min
2013/05/24 01:03:14
Done.
| |
13 removable | 13 unknown |
14 }; | 14 }; |
15 | 15 |
16 dictionary StorageUnitInfo { | 16 dictionary StorageUnitInfo { |
17 // The unique id of the storage unit. | 17 // The unique id of the storage unit. |
18 DOMString id; | 18 DOMString id; |
19 // The type of storage device. The value is one of the constants defined | 19 // The media type of the storage unit. |
20 // for this type. | |
21 StorageUnitType type; | 20 StorageUnitType type; |
22 // The total amount of the storage space, in bytes. | 21 // The total amount of the storage space, in bytes. |
23 double capacity; | 22 double capacity; |
24 // The available amount of the storage space, in bytes. | 23 // The available amount of the storage space, in bytes. |
25 double availableCapacity; | 24 double availableCapacity; |
26 }; | 25 }; |
27 | 26 |
28 dictionary StorageChangeInfo { | 27 dictionary StorageChangeInfo { |
29 // The uniue id of the storage unit already changed. | 28 // The uniue id of the storage unit already changed. |
30 DOMString id; | 29 DOMString id; |
(...skipping 16 matching lines...) Expand all Loading... | |
47 | 46 |
48 // Fired when a new removable storage is attached to the system. | 47 // Fired when a new removable storage is attached to the system. |
49 static void onAttached(StorageUnitInfo info); | 48 static void onAttached(StorageUnitInfo info); |
50 | 49 |
51 // Fired when a removable storage is detached from the system. | 50 // Fired when a removable storage is detached from the system. |
52 static void onDetached(DOMString id); | 51 static void onDetached(DOMString id); |
53 }; | 52 }; |
54 | 53 |
55 }; | 54 }; |
56 | 55 |
OLD | NEW |