Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9429)

Unified Diff: chrome/common/extensions/api/hid.idl

Issue 317783010: chrome.hid: enrich model with report IDs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix ProcessReadQueue Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/extensions/api/hid/hid_device_manager.cc ('k') | device/hid/hid.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..54aac58f4861b147bde44f6ac38d20e997b3c1a7 100644
--- a/chrome/common/extensions/api/hid.idl
+++ b/chrome/common/extensions/api/hid.idl
@@ -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 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>.
+ // HID top-level collection attributes.
+ // Each enumerated device interface exposes an array of these objects.
// |usage_page|: HID usage page identifier.
not at google - send to devlin 2014/07/02 20:50:35 s/usage_page/usagePage/
jracle (use Gerrit) 2014/07/02 21:04:13 Oops, good catch! Thanks On 2014/07/02 20:50:35,
// |usage|: Page-defined usage identifier.
- dictionary HidUsageAndPage {
- long usage_page;
+ // |reportIds|: Report IDs which belong to the collection and to its children.
+ dictionary HidCollectionInfo {
+ long usagePage;
long usage;
+ long[] reportIds;
};
// Returned by <code>getDevices</code> functions to describes a connected HID
@@ -22,12 +22,18 @@ namespace hid {
// |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.
+ // |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
« no previous file with comments | « chrome/browser/extensions/api/hid/hid_device_manager.cc ('k') | device/hid/hid.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698