Confirmed users
16
edits
(Reorganize USB port interface) |
(→Storage: Add event handler 'onAvailableVolumeChange') |
||
| Line 66: | Line 66: | ||
readonly attribute unsigned long long availableVolume; | readonly attribute unsigned long long availableVolume; | ||
readonly attribute DOMString fileSystem; | readonly attribute DOMString fileSystem; | ||
attribute EventHandler onAvailableVolumeChange; | |||
// Other possible hardware-dependent attributes. | // Other possible hardware-dependent attributes. | ||
}; | }; | ||
| Line 77: | Line 78: | ||
'''fileSystem''' of type DOMString, readonly <br/> | '''fileSystem''' of type DOMString, readonly <br/> | ||
The type of the file system, e.g. FAT32, NTFS, etc. | The type of the file system, e.g. FAT32, NTFS, etc. | ||
'''onAvailableVolumeChange''' of type EventHandler <br/> | |||
Whenever the hardware detects a change on the available volume, an simple event with the updated available volume against the USB port should be fired. | |||
=== USB Port Connect/Disconnect Event Interface === | === USB Port Connect/Disconnect Event Interface === | ||