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

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

Issue 161823002: Clean up HID backend and API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Many cleanup, such device ID, woww. Created 6 years, 10 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
Index: chrome/common/extensions/api/hid.idl
diff --git a/chrome/common/extensions/api/hid.idl b/chrome/common/extensions/api/hid.idl
index 6923a3ab940329638f58a2be779d1e8f0933d089..7c30b45b0dab00b8c1ac458362307d3acbf30a50 100644
--- a/chrome/common/extensions/api/hid.idl
+++ b/chrome/common/extensions/api/hid.idl
@@ -10,7 +10,7 @@ namespace hid {
// Returned by <code>getDevices</code> functions to describes a connected HID
// device. Use <code>connect</code> to connect to any of the returned devices.
dictionary HidDeviceInfo {
- DOMString path;
+ long deviceId;
long vendorId;
long productId;
};
@@ -46,9 +46,9 @@ namespace hid {
GetDevicesCallback callback);
// Open a connection to an HID device for communication.
- // |deviceInfo|: The device to open.
+ // |deviceId|: The ID of the device to open.
// |callback|: Invoked with an <code>HidConnectInfo</code>.
- static void connect(HidDeviceInfo deviceInfo,
+ static void connect(long deviceId,
ConnectCallback callback);
// Disconnect from a device. Invoking operations on a device after calling

Powered by Google App Engine
This is Rietveld 408576698