-
Matt Reynolds authored
This CL modifies the return value from navigator.hid.requestDevice to return an array of HIDDevice objects instead of a single HIDDevice. If the device chooser is canceled without making a selection, the promise is resolved with an empty array instead of rejecting with a DOM exception. The HID device chooser has also been modified such that each item in the chooser represents a single physical device. If multiple logical HID interfaces are exposed by the same physical device, granting permission to access the single physical device grants permission to access any logical HID interfaces hosted by the device that satisfy the chooser filters. BUG=1036439 Change-Id: Ib67b71bcee32e261d3c9425cfc8bd7173f4ebb8d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1966496Reviewed-by:
Kinuko Yasuda <kinuko@chromium.org> Reviewed-by:
Reilly Grant <reillyg@chromium.org> Commit-Queue: Matt Reynolds <mattreynolds@chromium.org> Cr-Commit-Position: refs/heads/master@{#729890}
d887ab26