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

Issue 2564113003: bluetooth: Add basic scanning to chrome://bluetooth-internals. (Closed)

Created:
4 years 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 basic scanning to chrome://bluetooth-internals. Adds DiscoverySession to Adapter Mojo service to handle starting a new BluetoothDiscoverySession. Adds Adapter::StartDiscoverySession to create a new DiscoverySession. Adds Scan button to chrome://bluetooth-internals to activate scanning. GIF: https://goo.gl/photos/9B14sgpGNiRqeoxk6 BUG=651282 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2564113003 Cr-Commit-Position: refs/heads/master@{#442141} Committed: https://chromium.googlesource.com/chromium/src/+/b0f0a102a61ef7682e4aac5d5587e36ac6f6b3d6

Patch Set 1 #

Patch Set 2 : Add class comment to DiscoverySession, alphabetize adapterBroker functions #

Patch Set 3 : Add missing comma #

Patch Set 4 : Remove extra action link import #

Patch Set 5 : Upstream snackbar patch, add snackbar notifications #

Patch Set 6 : Merge upstream snackbar fix #

Patch Set 7 : Merge upstream #

Patch Set 8 : Fix up Mojo bindings, handle unexpected stopping of discovery sessions #

Patch Set 9 : Update comments #

Patch Set 10 : Update comments #

Patch Set 11 : Merge upstream #

Patch Set 12 : Merge upstream, change GetProxy->MakeRequest #

Patch Set 13 : Merge upstream, change BluetoothInternals test #

Patch Set 14 : Update comments #

Patch Set 15 : Merge upstream #

Patch Set 16 : Change jsDoc for discoverySession variable #

Total comments: 4

Patch Set 17 : Update comments #

Total comments: 24

Patch Set 18 : Add enum to adapter_broker, change bluetooth_internals, discovery_session #

Patch Set 19 : Fix explicit #

Patch Set 20 : Replace discovering string in bluetooth_internals.js #

Unified diffs Side-by-side diffs Delta from patch set Stats (+368 lines, -51 lines) Patch
M chrome/browser/resources/bluetooth_internals/adapter_broker.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 9 chunks +65 lines, -21 lines 0 comments Download
M chrome/browser/resources/bluetooth_internals/bluetooth_internals.css View 1 2 3 4 5 6 7 8 9 10 2 chunks +15 lines, -1 line 0 comments Download
M chrome/browser/resources/bluetooth_internals/bluetooth_internals.html View 1 2 3 4 3 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/resources/bluetooth_internals/bluetooth_internals.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +64 lines, -1 line 0 comments Download
M chrome/browser/resources/bluetooth_internals/devices_page.js View 3 chunks +39 lines, -1 line 0 comments Download
M device/bluetooth/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M device/bluetooth/adapter.h View 1 2 3 4 5 6 7 2 chunks +13 lines, -3 lines 0 comments Download
M device/bluetooth/adapter.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +49 lines, -16 lines 0 comments Download
A device/bluetooth/discovery_session.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +47 lines, -0 lines 0 comments Download
A device/bluetooth/discovery_session.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +35 lines, -0 lines 0 comments Download
M device/bluetooth/public/interfaces/adapter.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +33 lines, -6 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 74 (59 generated)
mbrunson
3 years, 11 months ago (2017-01-04 19:29:01 UTC) #48
scheib
LGTM with some comment fixes. https://codereview.chromium.org/2564113003/diff/300001/device/bluetooth/discovery_session.h File device/bluetooth/discovery_session.h (right): https://codereview.chromium.org/2564113003/diff/300001/device/bluetooth/discovery_session.h#newcode1 device/bluetooth/discovery_session.h:1: // Copyright 2016 The ...
3 years, 11 months ago (2017-01-05 01:02:20 UTC) #49
mbrunson
https://codereview.chromium.org/2564113003/diff/300001/device/bluetooth/discovery_session.h File device/bluetooth/discovery_session.h (right): https://codereview.chromium.org/2564113003/diff/300001/device/bluetooth/discovery_session.h#newcode1 device/bluetooth/discovery_session.h:1: // Copyright 2016 The Chromium Authors. All rights reserved. ...
3 years, 11 months ago (2017-01-05 01:19:14 UTC) #50
mbrunson
OWNERS review: device/bluetooth/public/interfaces/adapter.mojom
3 years, 11 months ago (2017-01-05 02:01:41 UTC) #52
mbrunson
dpapad, WebUI OWNERS review please: chrome/browser/resources/bluetooth_internals/*
3 years, 11 months ago (2017-01-05 18:39:40 UTC) #54
dcheng
This CL looks largely OK to me, but I have some questions that came up ...
3 years, 11 months ago (2017-01-05 22:28:23 UTC) #55
dpapad
https://codereview.chromium.org/2564113003/diff/320001/chrome/browser/resources/bluetooth_internals/adapter_broker.js File chrome/browser/resources/bluetooth_internals/adapter_broker.js (right): https://codereview.chromium.org/2564113003/diff/320001/chrome/browser/resources/bluetooth_internals/adapter_broker.js#newcode121 chrome/browser/resources/bluetooth_internals/adapter_broker.js:121: var event = new CustomEvent('adapterchanged', { Is this the ...
3 years, 11 months ago (2017-01-05 23:30:34 UTC) #56
mbrunson
https://codereview.chromium.org/2564113003/diff/320001/chrome/browser/resources/bluetooth_internals/adapter_broker.js File chrome/browser/resources/bluetooth_internals/adapter_broker.js (right): https://codereview.chromium.org/2564113003/diff/320001/chrome/browser/resources/bluetooth_internals/adapter_broker.js#newcode121 chrome/browser/resources/bluetooth_internals/adapter_broker.js:121: var event = new CustomEvent('adapterchanged', { On 2017/01/05 23:30:33, ...
3 years, 11 months ago (2017-01-06 01:18:57 UTC) #57
dcheng
https://codereview.chromium.org/2564113003/diff/320001/device/bluetooth/public/interfaces/adapter.mojom File device/bluetooth/public/interfaces/adapter.mojom (right): https://codereview.chromium.org/2564113003/diff/320001/device/bluetooth/public/interfaces/adapter.mojom#newcode77 device/bluetooth/public/interfaces/adapter.mojom:77: SetClient(AdapterClient client); On 2017/01/06 01:18:56, mbrunson wrote: > On ...
3 years, 11 months ago (2017-01-06 02:45:50 UTC) #60
mbrunson
https://codereview.chromium.org/2564113003/diff/320001/device/bluetooth/public/interfaces/adapter.mojom File device/bluetooth/public/interfaces/adapter.mojom (right): https://codereview.chromium.org/2564113003/diff/320001/device/bluetooth/public/interfaces/adapter.mojom#newcode77 device/bluetooth/public/interfaces/adapter.mojom:77: SetClient(AdapterClient client); On 2017/01/06 02:45:50, dcheng wrote: > On ...
3 years, 11 months ago (2017-01-06 03:09:42 UTC) #61
dpapad
LGTM for JS.
3 years, 11 months ago (2017-01-06 22:03:44 UTC) #62
dcheng
mojo lgtm, but I would like us to consider how to evolve these interfaces to ...
3 years, 11 months ago (2017-01-06 22:45:31 UTC) #63
mbrunson
https://codereview.chromium.org/2564113003/diff/320001/device/bluetooth/public/interfaces/adapter.mojom File device/bluetooth/public/interfaces/adapter.mojom (right): https://codereview.chromium.org/2564113003/diff/320001/device/bluetooth/public/interfaces/adapter.mojom#newcode77 device/bluetooth/public/interfaces/adapter.mojom:77: SetClient(AdapterClient client); On 2017/01/06 22:45:31, dcheng wrote: > On ...
3 years, 11 months ago (2017-01-06 23:14:37 UTC) #64
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/2564113003/380001
3 years, 11 months ago (2017-01-07 02:21:23 UTC) #71
commit-bot: I haz the power
3 years, 11 months ago (2017-01-07 02:57:17 UTC) #74
Message was sent while issue was closed.
Committed patchset #20 (id:380001) as
https://chromium.googlesource.com/chromium/src/+/b0f0a102a61ef7682e4aac5d5587...

Powered by Google App Engine
This is Rietveld 408576698