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

Issue 514923002: Add more generic filters to the chrome.hid.getDevices API. (Closed)

Created:
6 years, 3 months ago by Reilly Grant (use Gerrit)
Modified:
6 years, 3 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add more generic filters to the chrome.hid.getDevices API. Instead of specifying each of the USB vendor and product ID pairs an app has permission to open this API extension allows filtering of devices by vendor and product IDs as well as HID usage pages and usages. The 'vendorId' and 'productId' properties of GetDevicesOptions are still supported for backwards compatibility. BUG= Committed: https://crrev.com/f4dc9d143de2350fc4879c178059737997944016 Cr-Commit-Position: refs/heads/master@{#292577}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Put static on its own line. #

Total comments: 3

Patch Set 3 : Document the deprecated properties and the suggested filter replacement. #

Total comments: 2

Patch Set 4 : Clean up the chrome.hid documentation even more. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+393 lines, -93 lines) Patch
M device/device_tests.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M device/hid/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M device/hid/hid.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
A device/hid/hid_device_filter.h View 1 chunk +43 lines, -0 lines 0 comments Download
A device/hid/hid_device_filter.cc View 1 1 chunk +89 lines, -0 lines 0 comments Download
A device/hid/hid_device_filter_unittest.cc View 1 chunk +116 lines, -0 lines 0 comments Download
M extensions/browser/api/hid/hid_api.cc View 1 2 4 chunks +34 lines, -18 lines 0 comments Download
M extensions/browser/api/hid/hid_device_manager.h View 2 chunks +12 lines, -2 lines 0 comments Download
M extensions/browser/api/hid/hid_device_manager.cc View 4 chunks +64 lines, -41 lines 0 comments Download
M extensions/common/api/hid.idl View 1 2 3 6 chunks +30 lines, -32 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Reilly Grant (use Gerrit)
reillyg@chromium.org changed reviewers: + juanlang@chromium.org, kalman@chromium.org, mschilder@chromium.org, rockot@chromium.org
6 years, 3 months ago (2014-08-27 20:24:33 UTC) #1
Reilly Grant (use Gerrit)
6 years, 3 months ago (2014-08-27 20:33:27 UTC) #2
juanlang (chromium.org)
lgtm
6 years, 3 months ago (2014-08-28 22:32:50 UTC) #3
Ken Rockot(use gerrit already)
I reviewed this yesterday and for some reason didn't stamp it. I don't remember why ...
6 years, 3 months ago (2014-08-28 22:48:10 UTC) #4
Ken Rockot(use gerrit already)
> /* static */ on its own line. Err, I mean // static
6 years, 3 months ago (2014-08-28 22:48:30 UTC) #5
Reilly Grant (use Gerrit)
Patchset #2 (id:20001) has been deleted
6 years, 3 months ago (2014-08-28 22:52:12 UTC) #6
not at google - send to devlin
https://codereview.chromium.org/514923002/diff/40001/extensions/common/api/hid.idl File extensions/common/api/hid.idl (right): https://codereview.chromium.org/514923002/diff/40001/extensions/common/api/hid.idl#newcode57 extensions/common/api/hid.idl:57: HidDeviceFilter[]? filters; Are you leaving |vendorId| and |productId| in ...
6 years, 3 months ago (2014-08-28 23:12:09 UTC) #7
Reilly Grant (use Gerrit)
https://codereview.chromium.org/514923002/diff/40001/extensions/common/api/hid.idl File extensions/common/api/hid.idl (right): https://codereview.chromium.org/514923002/diff/40001/extensions/common/api/hid.idl#newcode57 extensions/common/api/hid.idl:57: HidDeviceFilter[]? filters; On 2014/08/28 23:12:08, kalman wrote: > Are ...
6 years, 3 months ago (2014-08-28 23:13:09 UTC) #8
not at google - send to devlin
https://codereview.chromium.org/514923002/diff/40001/extensions/common/api/hid.idl File extensions/common/api/hid.idl (right): https://codereview.chromium.org/514923002/diff/40001/extensions/common/api/hid.idl#newcode57 extensions/common/api/hid.idl:57: HidDeviceFilter[]? filters; On 2014/08/28 23:13:09, reillyg wrote: > On ...
6 years, 3 months ago (2014-08-28 23:18:36 UTC) #9
Reilly Grant (use Gerrit)
On 2014/08/28 23:18:36, kalman wrote: > https://codereview.chromium.org/514923002/diff/40001/extensions/common/api/hid.idl > File extensions/common/api/hid.idl (right): > > https://codereview.chromium.org/514923002/diff/40001/extensions/common/api/hid.idl#newcode57 > ...
6 years, 3 months ago (2014-08-29 00:16:13 UTC) #10
not at google - send to devlin
lgtm, but check that everything looks good using https://developer.chrome.com/_patch/514923002/apps/hid or chrome/common/extensions/docs/server2/preview.py if that decides not ...
6 years, 3 months ago (2014-08-29 00:26:27 UTC) #11
Reilly Grant (use Gerrit)
I've looked through the generated documentation and made a number of improvements.
6 years, 3 months ago (2014-08-29 01:02:18 UTC) #12
Reilly Grant (use Gerrit)
The CQ bit was checked by reillyg@chromium.org
6 years, 3 months ago (2014-08-29 01:17:29 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reillyg@chromium.org/514923002/80001
6 years, 3 months ago (2014-08-29 01:19:04 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:80001) as 1816af67d3fb992ff49fb22b2b8fc8908d6ee6b1
6 years, 3 months ago (2014-08-29 05:53:03 UTC) #15
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:06:36 UTC) #16
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/f4dc9d143de2350fc4879c178059737997944016
Cr-Commit-Position: refs/heads/master@{#292577}

Powered by Google App Engine
This is Rietveld 408576698