Chromium Code Reviews| Index: chrome/common/extensions/api/hid.idl |
| diff --git a/chrome/common/extensions/api/hid.idl b/chrome/common/extensions/api/hid.idl |
| index a718ace3883f698d152a1c84534b938fe035aab9..e1a8537a9e2278f7d752ef33beb6e822d5b4cd91 100644 |
| --- a/chrome/common/extensions/api/hid.idl |
| +++ b/chrome/common/extensions/api/hid.idl |
| @@ -6,8 +6,7 @@ |
| // 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 usage pair. Each enumerated device interface exposes an array of |
| - // these objects. Values correspond to those defined by the |
| + // HID usage pair. 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. |
| @@ -17,17 +16,32 @@ namespace hid { |
| long usage; |
| }; |
| + // HID top-level collection attributes. |
| + // Each enumerated device interface exposes an array of these objects. |
| + // |usage|: Collection's usage pair. |
| + // |reportIds|: Report IDs which belong to the collection and to its children. |
| + dictionary HidCollectionInfo { |
| + HidUsageAndPage usage; |
|
Ken Rockot(use gerrit already)
2014/06/19 19:29:56
nit: I think I'd prefer the API consumer to be abl
jracle (use Gerrit)
2014/06/19 21:39:36
Sure. Agree.
On 2014/06/19 19:29:56, Ken Rockot w
|
| + long[] reportIds; |
| + }; |
| + |
| // Returned by <code>getDevices</code> functions to describes a connected HID |
| // device. Use <code>connect</code> to connect to any of the returned devices. |
| // |deviceId|: Device opaque ID. |
| // |vendorId|: Vendor ID. |
| // |productId|: Product ID. |
| - // |usages|: HID usage pairs exposed by underlying Top-level collections. |
| + // |collections|: Top-level collections from this device's report descriptor. |
| + // |maxInputReportSize|: Top-level collection's max input report size. |
|
Ken Rockot(use gerrit already)
2014/06/19 19:29:56
Tangent: Could each HidCollectionInfo struct also
jracle (use Gerrit)
2014/06/19 21:39:36
This one is more problematic, since apart from lin
|
| + // |maxOutputReportSize|: Top-level collection's max output report size. |
| + // |maxFeatureReportSize|: Top-level collection's max feature report size. |
| dictionary HidDeviceInfo { |
| long deviceId; |
| long vendorId; |
| long productId; |
| - HidUsageAndPage[] usages; |
| + HidCollectionInfo[] collections; |
| + long maxInputReportSize; |
| + long maxOutputReportSize; |
| + long maxFeatureReportSize; |
| }; |
| // Returned by <code>connect</code> to represent a communication session with |