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

Issue 246603008: Expose device RSSI and Tx power via the chrome.bluetooth API. (Closed)

Created:
6 years, 8 months ago by Ilya Sherman
Modified:
6 years, 7 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, jar (doing other things), asvitkine+watch_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Expose device RSSI and Tx power via the chrome.bluetooth API. This CL only implements the fetching of these values on Mac. BUG=365966 TEST=browser_tests R=kalman@chromium.org, keybuk@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=267458

Patch Set 1 #

Total comments: 8

Patch Set 2 : Implemented as a property of the Device object #

Total comments: 4

Patch Set 3 : Prepare to support RSSI from device inquiries as well #

Patch Set 4 : Rebase #

Patch Set 5 : Clean up undocumented API use #

Patch Set 6 : Forward-declare more APIs introduced in Lion #

Unified diffs Side-by-side diffs Delta from patch set Stats (+172 lines, -6 lines) Patch
M chrome/browser/extensions/api/bluetooth/bluetooth_api_utils.cc View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/bluetooth/bluetooth_apitest.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/bluetooth.idl View 1 2 1 chunk +17 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_device.h View 1 2 2 chunks +25 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_device_chromeos.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_device_chromeos.cc View 1 1 chunk +15 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_device_mac.h View 1 3 chunks +10 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_device_mac.mm View 1 2 3 4 5 4 chunks +57 lines, -6 lines 0 comments Download
M device/bluetooth/bluetooth_device_win.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_device_win.cc View 1 1 chunk +15 lines, -0 lines 0 comments Download
M device/bluetooth/test/mock_bluetooth_device.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M device/bluetooth/test/mock_bluetooth_device.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
Ilya Sherman
6 years, 8 months ago (2014-04-23 01:32:39 UTC) #1
not at google - send to devlin
json lgtm https://codereview.chromium.org/246603008/diff/1/chrome/common/extensions/api/bluetooth_private.json File chrome/common/extensions/api/bluetooth_private.json (right): https://codereview.chromium.org/246603008/diff/1/chrome/common/extensions/api/bluetooth_private.json#newcode41 chrome/common/extensions/api/bluetooth_private.json:41: "parameters": [ odd having parameters at the ...
6 years, 8 months ago (2014-04-23 01:34:13 UTC) #2
Ilya Sherman
https://codereview.chromium.org/246603008/diff/1/chrome/common/extensions/api/bluetooth_private.json File chrome/common/extensions/api/bluetooth_private.json (right): https://codereview.chromium.org/246603008/diff/1/chrome/common/extensions/api/bluetooth_private.json#newcode41 chrome/common/extensions/api/bluetooth_private.json:41: "parameters": [ On 2014/04/23 01:34:13, kalman wrote: > odd ...
6 years, 8 months ago (2014-04-23 01:35:59 UTC) #3
not at google - send to devlin
On 2014/04/23 01:35:59, Ilya Sherman wrote: > https://codereview.chromium.org/246603008/diff/1/chrome/common/extensions/api/bluetooth_private.json > File chrome/common/extensions/api/bluetooth_private.json (right): > > https://codereview.chromium.org/246603008/diff/1/chrome/common/extensions/api/bluetooth_private.json#newcode41 ...
6 years, 8 months ago (2014-04-23 01:37:21 UTC) #4
keybuk
https://codereview.chromium.org/246603008/diff/1/chrome/common/extensions/api/bluetooth_private.json File chrome/common/extensions/api/bluetooth_private.json (right): https://codereview.chromium.org/246603008/diff/1/chrome/common/extensions/api/bluetooth_private.json#newcode59 chrome/common/extensions/api/bluetooth_private.json:59: "name": "getDeviceRSSI", If the RSSI is simply a property ...
6 years, 8 months ago (2014-04-23 08:59:19 UTC) #5
Ilya Sherman
Thanks for the review! https://codereview.chromium.org/246603008/diff/1/chrome/common/extensions/api/bluetooth_private.json File chrome/common/extensions/api/bluetooth_private.json (right): https://codereview.chromium.org/246603008/diff/1/chrome/common/extensions/api/bluetooth_private.json#newcode59 chrome/common/extensions/api/bluetooth_private.json:59: "name": "getDeviceRSSI", On 2014/04/23 08:59:19, ...
6 years, 8 months ago (2014-04-24 06:45:16 UTC) #6
keybuk
https://codereview.chromium.org/246603008/diff/1/chrome/common/extensions/api/bluetooth_private.json File chrome/common/extensions/api/bluetooth_private.json (right): https://codereview.chromium.org/246603008/diff/1/chrome/common/extensions/api/bluetooth_private.json#newcode59 chrome/common/extensions/api/bluetooth_private.json:59: "name": "getDeviceRSSI", I think both of these things can ...
6 years, 8 months ago (2014-04-24 11:25:51 UTC) #7
Ilya Sherman
keybuk@, PTAL. I've now implemented the RSSI and Tx power as properties on the Device ...
6 years, 8 months ago (2014-04-26 03:26:59 UTC) #8
keybuk
https://codereview.chromium.org/246603008/diff/20001/chrome/browser/extensions/api/bluetooth/bluetooth_api_utils.cc File chrome/browser/extensions/api/bluetooth/bluetooth_api_utils.cc (right): https://codereview.chromium.org/246603008/diff/20001/chrome/browser/extensions/api/bluetooth/bluetooth_api_utils.cc#newcode116 chrome/browser/extensions/api/bluetooth/bluetooth_api_utils.cc:116: int rssi = device.GetRSSI(); RSSI can also be provided ...
6 years, 8 months ago (2014-04-27 09:08:44 UTC) #9
Ilya Sherman
https://codereview.chromium.org/246603008/diff/20001/chrome/browser/extensions/api/bluetooth/bluetooth_api_utils.cc File chrome/browser/extensions/api/bluetooth/bluetooth_api_utils.cc (right): https://codereview.chromium.org/246603008/diff/20001/chrome/browser/extensions/api/bluetooth/bluetooth_api_utils.cc#newcode116 chrome/browser/extensions/api/bluetooth/bluetooth_api_utils.cc:116: int rssi = device.GetRSSI(); On 2014/04/27 09:08:44, keybuk wrote: ...
6 years, 7 months ago (2014-04-29 00:51:17 UTC) #10
keybuk
lgtm
6 years, 7 months ago (2014-04-29 15:59:01 UTC) #11
Ilya Sherman
Ben, could you please take another look? This API moved from bluetoothPrivate to bluetooth, so ...
6 years, 7 months ago (2014-04-29 20:00:14 UTC) #12
not at google - send to devlin
lgtm
6 years, 7 months ago (2014-04-29 20:01:58 UTC) #13
Nico
bluetooth_device_mac lgtm
6 years, 7 months ago (2014-04-29 22:11:32 UTC) #14
Ilya Sherman
The CQ bit was checked by isherman@chromium.org
6 years, 7 months ago (2014-04-29 22:22:12 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/isherman@chromium.org/246603008/80001
6 years, 7 months ago (2014-04-29 22:24:46 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-30 00:50:05 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel on tryserver.chromium
6 years, 7 months ago (2014-04-30 00:50:06 UTC) #18
Ilya Sherman
The CQ bit was checked by isherman@chromium.org
6 years, 7 months ago (2014-04-30 22:21:47 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/isherman@chromium.org/246603008/100001
6 years, 7 months ago (2014-04-30 22:23:31 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-30 23:33:42 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel on tryserver.chromium
6 years, 7 months ago (2014-04-30 23:33:42 UTC) #22
Ilya Sherman
The CQ bit was checked by isherman@chromium.org
6 years, 7 months ago (2014-04-30 23:34:27 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/isherman@chromium.org/246603008/100001
6 years, 7 months ago (2014-04-30 23:35:09 UTC) #24
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-01 00:49:16 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel on tryserver.chromium
6 years, 7 months ago (2014-05-01 00:49:16 UTC) #26
Ilya Sherman
The CQ bit was checked by isherman@chromium.org
6 years, 7 months ago (2014-05-01 00:51:03 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/isherman@chromium.org/246603008/100001
6 years, 7 months ago (2014-05-01 00:51:49 UTC) #28
commit-bot: I haz the power
6 years, 7 months ago (2014-05-01 06:13:33 UTC) #29
Message was sent while issue was closed.
Change committed as 267458

Powered by Google App Engine
This is Rietveld 408576698