DescriptionAdd chrome.hid.getUserSelectedDevices API.
This change wires up the HID API to the DevicePermissionsManager so
that devices the user has granted permission are enumerated and can be
connected to. It then adds a chrome.hid.getUserSelectedDevices function
which displays a dialog box (using the new AskForHidDevices method
added to DevicePermissionsPrompt) asking the user to select one or more
HID devices. The application can filter which devices are available for
the user to select.
BUG=457899
Committed: https://crrev.com/7c2dc58d437b8dfa269227981b0221c196888d41
Cr-Commit-Position: refs/heads/master@{#335316}
Patch Set 1 : #
Total comments: 26
Patch Set 2 : Address Devlin's comments. #
Total comments: 4
Patch Set 3 : Replace "service unavailable" errors with CHECKs. #
Total comments: 3
Patch Set 4 : Check for bad web contents and unavailable modal/popup managers #Patch Set 5 : Rebased. #
Total comments: 6
Patch Set 6 : Post Dismissed call to the thread's TaskRunner. #Patch Set 7 : Rebased. #Messages
Total messages: 28 (6 generated)
|