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

Issue 2622393002: bluetooth: Add characteristic list to DeviceDetailsPage in internals page. (Closed)

Created:
3 years, 11 months ago by mbrunson
Modified:
3 years, 11 months ago
Reviewers:
scheib, dcheng, dpapad
CC:
Aaron Boodman, abarth-chromium, arv+watch_chromium.org, chromium-reviews, darin (slow to review), ortuno+watch_chromium.org, qsr+mojo_chromium.org, scheib+watch_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: Add characteristic list to DeviceDetailsPage in internals page. Adds characteristic list to DeviceDetailsPage under service list items. Sets up event handling pattern from hierachical controls. Screenshots: https://goo.gl/photos/iqPrF6uWxV4nysHw9 BUG=651282 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2622393002 Cr-Commit-Position: refs/heads/master@{#444890} Committed: https://chromium.googlesource.com/chromium/src/+/7da9cd89d4d18e171323ff7d0d2a93ede0c1d721

Patch Set 1 #

Patch Set 2 : Add typemap for Properties, add tests for typemap setter, remove extra includes in service_list.js #

Patch Set 3 : Add back service list event listener, rearrange characteristic list #

Patch Set 4 : Fix comments, simplify onExpand #

Total comments: 10

Patch Set 5 : Simplify device test fixture, fix up comments, rename onCharacteristicsRequested #

Patch Set 6 : Change incorrect snackbar type #

Total comments: 2

Patch Set 7 : Update comments #

Patch Set 8 : Inline setting of characteristic fieldset object #

Total comments: 9

Patch Set 9 : Rename onExpand, add braces #

Total comments: 2

Patch Set 10 : Add device_broker and change data fetching structure for list #

Patch Set 11 : Replace Properties struct with bitfield and enum #

Patch Set 12 : Remove comments from browser tests #

Patch Set 13 : Change deviceFieldSet name to match private syntax #

Patch Set 14 : Remove unneeded tests #

Total comments: 5

Patch Set 15 : Add promises in device_broker #

Patch Set 16 : Add error handling logic in device broker #

Total comments: 4

Patch Set 17 : Simplifications #

Unified diffs Side-by-side diffs Delta from patch set Stats (+676 lines, -101 lines) Patch
M chrome/browser/browser_resources.grd View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/bluetooth_internals/bluetooth_internals.html View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/browser/resources/bluetooth_internals/characteristic_list.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +203 lines, -0 lines 0 comments Download
A chrome/browser/resources/bluetooth_internals/device_broker.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +55 lines, -0 lines 0 comments Download
M chrome/browser/resources/bluetooth_internals/device_details_page.js View 1 2 3 4 5 6 7 8 9 10 11 12 8 chunks +54 lines, -55 lines 0 comments Download
M chrome/browser/resources/bluetooth_internals/expandable_list.js View 1 2 3 4 5 6 7 8 9 4 chunks +18 lines, -3 lines 0 comments Download
M chrome/browser/resources/bluetooth_internals/service_list.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +60 lines, -10 lines 0 comments Download
M chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals_ui.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/test/data/webui/bluetooth_internals_browsertest.js View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -1 line 0 comments Download
M device/bluetooth/device.h View 3 chunks +6 lines, -0 lines 0 comments Download
M device/bluetooth/device.cc View 1 2 3 4 2 chunks +42 lines, -0 lines 0 comments Download
M device/bluetooth/device_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 12 chunks +191 lines, -32 lines 0 comments Download
M device/bluetooth/public/interfaces/device.mojom View 1 2 3 4 5 6 7 8 9 10 3 chunks +37 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 41 (24 generated)
mbrunson
3 years, 11 months ago (2017-01-13 00:13:30 UTC) #5
scheib
https://codereview.chromium.org/2622393002/diff/60001/chrome/browser/resources/bluetooth_internals/service_list.js File chrome/browser/resources/bluetooth_internals/service_list.js (right): https://codereview.chromium.org/2622393002/diff/60001/chrome/browser/resources/bluetooth_internals/service_list.js#newcode126 chrome/browser/resources/bluetooth_internals/service_list.js:126: onCharacteristicsRequested: function(characteristics) { Current name implies this is called ...
3 years, 11 months ago (2017-01-13 05:24:40 UTC) #9
mbrunson
https://codereview.chromium.org/2622393002/diff/60001/chrome/browser/resources/bluetooth_internals/service_list.js File chrome/browser/resources/bluetooth_internals/service_list.js (right): https://codereview.chromium.org/2622393002/diff/60001/chrome/browser/resources/bluetooth_internals/service_list.js#newcode126 chrome/browser/resources/bluetooth_internals/service_list.js:126: onCharacteristicsRequested: function(characteristics) { On 2017/01/13 05:24:40, scheib wrote: > ...
3 years, 11 months ago (2017-01-13 21:21:13 UTC) #10
scheib
LGTM, one comment: https://codereview.chromium.org/2622393002/diff/100001/device/bluetooth/device_unittest.cc File device/bluetooth/device_unittest.cc (right): https://codereview.chromium.org/2622393002/diff/100001/device/bluetooth/device_unittest.cc#newcode374 device/bluetooth/device_unittest.cc:374: // Client: Sends multiple requests for ...
3 years, 11 months ago (2017-01-14 00:07:14 UTC) #11
mbrunson
https://codereview.chromium.org/2622393002/diff/100001/device/bluetooth/device_unittest.cc File device/bluetooth/device_unittest.cc (right): https://codereview.chromium.org/2622393002/diff/100001/device/bluetooth/device_unittest.cc#newcode374 device/bluetooth/device_unittest.cc:374: // Client: Sends multiple requests for services. On 2017/01/14 ...
3 years, 11 months ago (2017-01-14 01:49:33 UTC) #12
mbrunson
OWNERS review, please. dcheng: device/bluetooth/public/interfaces/device.mojom device/bluetooth/public/interfaces/properties_struct_traits.h dpapad: chrome/browser/browser_resources.grd chrome/browser/resources/bluetooth_internals/bluetooth_internals.html chrome/browser/resources/bluetooth_internals/characteristic_list.js chrome/browser/resources/bluetooth_internals/device_details_page.js chrome/browser/resources/bluetooth_internals/expandable_list.js chrome/browser/resources/bluetooth_internals/service_list.js chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals_ui.cc
3 years, 11 months ago (2017-01-14 02:29:13 UTC) #16
dpapad
https://codereview.chromium.org/2622393002/diff/140001/chrome/browser/resources/bluetooth_internals/device_details_page.js File chrome/browser/resources/bluetooth_internals/device_details_page.js (right): https://codereview.chromium.org/2622393002/diff/140001/chrome/browser/resources/bluetooth_internals/device_details_page.js#newcode89 chrome/browser/resources/bluetooth_internals/device_details_page.js:89: event.target.onCharacteristicsReturned([]); I am confused about what is happening here. ...
3 years, 11 months ago (2017-01-17 20:01:01 UTC) #19
mbrunson
https://codereview.chromium.org/2622393002/diff/140001/chrome/browser/resources/bluetooth_internals/device_details_page.js File chrome/browser/resources/bluetooth_internals/device_details_page.js (right): https://codereview.chromium.org/2622393002/diff/140001/chrome/browser/resources/bluetooth_internals/device_details_page.js#newcode95 chrome/browser/resources/bluetooth_internals/device_details_page.js:95: event.target.onCharacteristicsReturned( On 2017/01/17 20:01:01, dpapad wrote: > This strikes ...
3 years, 11 months ago (2017-01-17 21:05:49 UTC) #20
dpapad
https://codereview.chromium.org/2622393002/diff/140001/chrome/browser/resources/bluetooth_internals/device_details_page.js File chrome/browser/resources/bluetooth_internals/device_details_page.js (right): https://codereview.chromium.org/2622393002/diff/140001/chrome/browser/resources/bluetooth_internals/device_details_page.js#newcode95 chrome/browser/resources/bluetooth_internals/device_details_page.js:95: event.target.onCharacteristicsReturned( > What do you think? Firing an event ...
3 years, 11 months ago (2017-01-17 22:01:39 UTC) #21
dcheng
LGTM with nits Note that one alternative for Properties is to simply send a bitfield, ...
3 years, 11 months ago (2017-01-18 00:17:08 UTC) #22
mbrunson
https://codereview.chromium.org/2622393002/diff/140001/chrome/browser/resources/bluetooth_internals/device_details_page.js File chrome/browser/resources/bluetooth_internals/device_details_page.js (right): https://codereview.chromium.org/2622393002/diff/140001/chrome/browser/resources/bluetooth_internals/device_details_page.js#newcode95 chrome/browser/resources/bluetooth_internals/device_details_page.js:95: event.target.onCharacteristicsReturned( On 2017/01/17 22:01:39, dpapad wrote: > > What ...
3 years, 11 months ago (2017-01-18 22:04:24 UTC) #27
dpapad
https://codereview.chromium.org/2622393002/diff/260001/chrome/browser/resources/bluetooth_internals/device_broker.js File chrome/browser/resources/bluetooth_internals/device_broker.js (right): https://codereview.chromium.org/2622393002/diff/260001/chrome/browser/resources/bluetooth_internals/device_broker.js#newcode28 chrome/browser/resources/bluetooth_internals/device_broker.js:28: if (connectedDevices.has(address)) Is this function meant to call adapterBroker.connectToDevice ...
3 years, 11 months ago (2017-01-19 02:01:48 UTC) #28
mbrunson
https://codereview.chromium.org/2622393002/diff/260001/chrome/browser/resources/bluetooth_internals/device_broker.js File chrome/browser/resources/bluetooth_internals/device_broker.js (right): https://codereview.chromium.org/2622393002/diff/260001/chrome/browser/resources/bluetooth_internals/device_broker.js#newcode28 chrome/browser/resources/bluetooth_internals/device_broker.js:28: if (connectedDevices.has(address)) On 2017/01/19 02:01:47, dpapad wrote: > Is ...
3 years, 11 months ago (2017-01-19 03:22:20 UTC) #29
dpapad
LGTM with nits. https://codereview.chromium.org/2622393002/diff/260001/chrome/browser/resources/bluetooth_internals/device_broker.js File chrome/browser/resources/bluetooth_internals/device_broker.js (right): https://codereview.chromium.org/2622393002/diff/260001/chrome/browser/resources/bluetooth_internals/device_broker.js#newcode31 chrome/browser/resources/bluetooth_internals/device_broker.js:31: return adapter_broker.getAdapterBroker().then(function(adapterBroker) { On 2017/01/19 at ...
3 years, 11 months ago (2017-01-19 17:41:45 UTC) #30
mbrunson
https://codereview.chromium.org/2622393002/diff/300001/chrome/browser/resources/bluetooth_internals/device_broker.js File chrome/browser/resources/bluetooth_internals/device_broker.js (right): https://codereview.chromium.org/2622393002/diff/300001/chrome/browser/resources/bluetooth_internals/device_broker.js#newcode27 chrome/browser/resources/bluetooth_internals/device_broker.js:27: function connectToDevice(address) { On 2017/01/19 17:41:45, dpapad wrote: > ...
3 years, 11 months ago (2017-01-19 23:34:10 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2622393002/320001
3 years, 11 months ago (2017-01-19 23:35:09 UTC) #38
commit-bot: I haz the power
3 years, 11 months ago (2017-01-20 00:42:53 UTC) #41
Message was sent while issue was closed.
Committed patchset #17 (id:320001) as
https://chromium.googlesource.com/chromium/src/+/7da9cd89d4d18e171323ff7d0d2a...

Powered by Google App Engine
This is Rietveld 408576698