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

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

Issue 256673002: HID: Support top-level collection usages in device info. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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/device_tests.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 d92a063d1c90de7ca91058e33c79e83ec2e5f93d..44bb857b525b7a6c69e749f02aa46e8a1f46efbd 100644
--- a/chrome/common/extensions/api/hid.idl
+++ b/chrome/common/extensions/api/hid.idl
@@ -7,12 +7,25 @@
// Using this API, apps can function as drivers for hardware devices.
namespace hid {
+ // HID usage pair.
+ // |usage_page|: HID usage page.
+ // |usage|: HID usage.
+ dictionary HidUsageAndPage {
+ long usage_page;
+ long usage;
+ };
+
// 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.
dictionary HidDeviceInfo {
long deviceId;
long vendorId;
long productId;
+ HidUsageAndPage[] usages;
};
// 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/device_tests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698