Index: trunk/src/chrome/common/extensions/api/hid.idl |
=================================================================== |
--- trunk/src/chrome/common/extensions/api/hid.idl (revision 281281) |
+++ trunk/src/chrome/common/extensions/api/hid.idl (working copy) |
@@ -6,15 +6,15 @@ |
// This API provides access to HID operations from within the context of an app. |
// Using this API, apps can function as drivers for hardware devices. |
namespace hid { |
- // HID top-level collection attributes. |
- // Each enumerated device interface exposes an array of these objects. |
- // |usagePage|: HID usage page identifier. |
+ // HID usage pair. Each enumerated device interface exposes an array of |
+ // these objects. Values correspond to those defined by the |
+ // <a href="http://www.usb.org/developers/devclass_docs/HID1_11.pdf> |
+ // HID device class specification</a>. |
+ // |usage_page|: HID usage page identifier. |
// |usage|: Page-defined usage identifier. |
- // |reportIds|: Report IDs which belong to the collection and to its children. |
- dictionary HidCollectionInfo { |
- long usagePage; |
+ dictionary HidUsageAndPage { |
+ long usage_page; |
long usage; |
- long[] reportIds; |
}; |
// Returned by <code>getDevices</code> functions to describes a connected HID |
@@ -22,18 +22,12 @@ |
// |deviceId|: Device opaque ID. |
// |vendorId|: Vendor ID. |
// |productId|: Product ID. |
- // |collections|: Top-level collections from this device's report descriptor. |
- // |maxInputReportSize|: Top-level collection's max input report size. |
- // |maxOutputReportSize|: Top-level collection's max output report size. |
- // |maxFeatureReportSize|: Top-level collection's max feature report size. |
+ // |usages|: HID usage pairs exposed by underlying Top-level collections. |
dictionary HidDeviceInfo { |
long deviceId; |
long vendorId; |
long productId; |
- HidCollectionInfo[] collections; |
- long maxInputReportSize; |
- long maxOutputReportSize; |
- long maxFeatureReportSize; |
+ HidUsageAndPage[] usages; |
}; |
// Returned by <code>connect</code> to represent a communication session with |