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

Issue 2637343002: Implement WebBluetooth descriptor.readValue() (Closed)

Created:
3 years, 11 months ago by dougt
Modified:
3 years, 10 months ago
CC:
Aaron Boodman, abarth-chromium, blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, dglazkov+blink, einbinder+watch-test-runner_chromium.org, haraken, jam, jochen+watch_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-test-runner_chromium.org, ortuno+watch_chromium.org, Peter Beverloo, 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

Implement WebBluetooth descriptor.readValue() A GATT Descriptor provides further information about a characteristic's value. For each characteristic there may be many descriptors as defined by https://webbluetoothcg.github.io/web-bluetooth/#bluetoothremotegattdescriptor. In Bug 660699, we added support for accessing descriptors from characteristics. In this CL, we add support for reading the value of the descriptor. BUG=668837 R=scheib Review-Url: https://codereview.chromium.org/2637343002 Cr-Commit-Position: refs/heads/master@{#446603} Committed: https://chromium.googlesource.com/chromium/src/+/a2fe05521add5347b1024ca582045447cc469325

Patch Set 1 : #1 #

Total comments: 10

Patch Set 2 : #2 #

Total comments: 65

Patch Set 3 : #3 #

Total comments: 13

Patch Set 4 : #4 #

Total comments: 6

Patch Set 5 : #5 #

Patch Set 6 : run bad_message_reasons #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1447 lines, -56 lines) Patch
M content/browser/bad_message.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/bluetooth/bluetooth_metrics.h View 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/bluetooth/bluetooth_metrics.cc View 3 chunks +6 lines, -0 lines 0 comments Download
M content/browser/bluetooth/web_bluetooth_service_impl.h View 3 chunks +17 lines, -0 lines 0 comments Download
M content/browser/bluetooth/web_bluetooth_service_impl.cc View 1 5 chunks +79 lines, -0 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc View 1 2 3 10 chunks +123 lines, -29 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/descriptor/readValue/gen-descriptor-is-blocklisted.html View 1 2 3 1 chunk +32 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/descriptor/readValue/gen-descriptor-is-removed.html View 1 2 1 chunk +31 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/descriptor/readValue/gen-device-goes-out-of-range.html View 1 2 1 chunk +30 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/descriptor/readValue/gen-io-op-device-disconnects-before.html View 1 2 1 chunk +35 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/descriptor/readValue/gen-io-op-device-disconnects-during-error.html View 1 1 chunk +39 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/descriptor/readValue/gen-io-op-device-disconnects-during-success.html View 1 2 1 chunk +38 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/descriptor/readValue/gen-io-op-device-reconnects-during-error.html View 1 2 1 chunk +40 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/descriptor/readValue/gen-io-op-device-reconnects-during-success.html View 1 2 1 chunk +40 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/descriptor/readValue/gen-io-op-disconnect-called-before.html View 1 2 1 chunk +32 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/descriptor/readValue/gen-io-op-disconnect-called-during-error.html View 1 2 1 chunk +36 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/descriptor/readValue/gen-io-op-disconnect-called-during-success.html View 1 2 1 chunk +38 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/descriptor/readValue/gen-io-op-fails.html View 1 2 1 chunk +38 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/descriptor/readValue/gen-io-op-garbage-collection-ran-during-error.html View 1 2 1 chunk +38 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/descriptor/readValue/gen-io-op-garbage-collection-ran-during-success.html View 1 2 1 chunk +38 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/descriptor/readValue/gen-io-op-reconnect-during-error.html View 1 2 1 chunk +34 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/descriptor/readValue/gen-io-op-reconnect-during-success.html View 1 2 1 chunk +35 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/descriptor/readValue/gen-service-is-removed.html View 1 2 1 chunk +30 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/descriptor/readValue/read-succeeds.html View 1 2 1 chunk +22 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/descriptor/readValue/read-updates-value.html View 1 2 3 1 chunk +25 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/descriptor-is-blocklisted.js View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/descriptor-is-removed.js View 1 2 1 chunk +23 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/device-goes-out-of-range.js View 1 2 1 chunk +22 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/io-op-device-disconnects-before.js View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/io-op-device-disconnects-during-error.js View 1 1 chunk +31 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/io-op-device-disconnects-during-success.js View 1 2 1 chunk +30 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/io-op-device-reconnects-during-error.js View 1 2 1 chunk +32 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/io-op-device-reconnects-during-success.js View 1 2 1 chunk +32 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/io-op-disconnect-called-before.js View 1 2 1 chunk +24 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/io-op-disconnect-called-during-error.js View 1 2 1 chunk +28 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/io-op-disconnect-called-during-success.js View 1 2 1 chunk +30 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/io-op-fails.js View 1 2 1 chunk +30 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/io-op-garbage-collection-ran-during-error.js View 1 2 1 chunk +30 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/io-op-garbage-collection-ran-during-success.js View 1 2 1 chunk +30 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/io-op-reconnect-during-error.js View 1 2 1 chunk +26 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/io-op-reconnect-during-success.js View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/service-is-removed.js View 1 2 1 chunk +22 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp View 1 2 3 4 8 chunks +4 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTDescriptor.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTDescriptor.cpp View 1 2 3 4 2 chunks +58 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTServer.cpp View 1 2 3 4 2 chunks +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTService.cpp View 1 2 3 4 2 chunks +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTUtils.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTUtils.cpp View 1 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom View 1 2 3 2 chunks +11 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 60 (33 generated)
dougt
ortuno, ptal? I had some questions I outlined around sharing between BluetoothRemoteGATTDescriptor and BluetoothRemoteGATTCharacteristic that ...
3 years, 11 months ago (2017-01-18 00:59:09 UTC) #2
scheib
The command: git cl upload --similarity can make patches with new files that are similar ...
3 years, 11 months ago (2017-01-19 06:16:18 UTC) #7
dougt
scheib, ptal. https://codereview.chromium.org/2637343002/diff/1/third_party/WebKit/LayoutTests/bluetooth/descriptor/readValue/device-goes-out-of-range.html File third_party/WebKit/LayoutTests/bluetooth/descriptor/readValue/device-goes-out-of-range.html (right): https://codereview.chromium.org/2637343002/diff/1/third_party/WebKit/LayoutTests/bluetooth/descriptor/readValue/device-goes-out-of-range.html#newcode15 third_party/WebKit/LayoutTests/bluetooth/descriptor/readValue/device-goes-out-of-range.html:15: .then(characteristic => { On 2017/01/19 06:16:18, scheib ...
3 years, 11 months ago (2017-01-20 03:17:24 UTC) #12
ortuno
Mostly nits. I still need to finish reviewing the tests. https://codereview.chromium.org/2637343002/diff/20001/content/browser/bluetooth/web_bluetooth_service_impl.cc File content/browser/bluetooth/web_bluetooth_service_impl.cc (right): https://codereview.chromium.org/2637343002/diff/20001/content/browser/bluetooth/web_bluetooth_service_impl.cc#newcode978 ...
3 years, 11 months ago (2017-01-20 04:30:53 UTC) #13
ortuno
https://codereview.chromium.org/2637343002/diff/20001/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc File content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc (right): https://codereview.chromium.org/2637343002/diff/20001/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc#newcode744 content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc:744: if (addDescriptors == true) { nit: no need for ...
3 years, 11 months ago (2017-01-22 22:04:05 UTC) #14
dougt
ptal https://codereview.chromium.org/2637343002/diff/20001/content/browser/bluetooth/web_bluetooth_service_impl.cc File content/browser/bluetooth/web_bluetooth_service_impl.cc (right): https://codereview.chromium.org/2637343002/diff/20001/content/browser/bluetooth/web_bluetooth_service_impl.cc#newcode978 content/browser/bluetooth/web_bluetooth_service_impl.cc:978: DCHECK_CURRENTLY_ON(BrowserThread::UI); On 2017/01/20 04:30:52, ortuno wrote: > Add ...
3 years, 11 months ago (2017-01-23 21:40:37 UTC) #18
ortuno
lgtm https://codereview.chromium.org/2637343002/diff/20001/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTUtils.h File third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTUtils.h (right): https://codereview.chromium.org/2637343002/diff/20001/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTUtils.h#newcode18 third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTUtils.h:18: enum ExceptionType { On 2017/01/23 at 21:40:37, dougt ...
3 years, 11 months ago (2017-01-23 22:20:43 UTC) #19
dougt
dcheng, ptal at: third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom https://codereview.chromium.org/2637343002/diff/60001/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc File content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc (right): https://codereview.chromium.org/2637343002/diff/60001/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc#newcode777 content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc:777: ON_CALL(*no_read_descriptor, ReadRemoteDescriptor(_, _)) On 2017/01/23 ...
3 years, 11 months ago (2017-01-24 00:26:24 UTC) #25
scheib
LGTM https://codereview.chromium.org/2637343002/diff/60001/third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/io-op-fails.js File third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/io-op-fails.js (right): https://codereview.chromium.org/2637343002/diff/60001/third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/io-op-fails.js#newcode26 third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/io-op-fails.js:26: testSpec.testName)); On 2017/01/24 00:26:24, dougt wrote: > On ...
3 years, 11 months ago (2017-01-24 01:23:33 UTC) #27
dcheng
(The mock comment is just random musing and not necessary to address in this CL) ...
3 years, 11 months ago (2017-01-24 10:21:03 UTC) #28
dougt
https://codereview.chromium.org/2637343002/diff/140001/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc File content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc (right): https://codereview.chromium.org/2637343002/diff/140001/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc#newcode791 content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc:791: base::MakeUnique<NiceMockBluetoothGattDescriptor>( On 2017/01/24 10:21:02, dcheng wrote: > FWIW, I ...
3 years, 10 months ago (2017-01-24 16:14:29 UTC) #29
dcheng
LGTM with a nit https://codereview.chromium.org/2637343002/diff/140001/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTDescriptor.cpp File third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTDescriptor.cpp (right): https://codereview.chromium.org/2637343002/diff/140001/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTDescriptor.cpp#newcode41 third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTDescriptor.cpp:41: // disconnected so we reject. ...
3 years, 10 months ago (2017-01-24 17:35:52 UTC) #30
scheib
https://codereview.chromium.org/2637343002/diff/140001/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc File content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc (right): https://codereview.chromium.org/2637343002/diff/140001/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc#newcode791 content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc:791: base::MakeUnique<NiceMockBluetoothGattDescriptor>( On 2017/01/24 16:14:29, dougt wrote: > On 2017/01/24 ...
3 years, 10 months ago (2017-01-24 17:43:57 UTC) #31
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/2637343002/160001
3 years, 10 months ago (2017-01-25 00:24:05 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/349371)
3 years, 10 months ago (2017-01-25 00:35:13 UTC) #40
dougt
dgozman, ptal: content/browser/bad_message.h
3 years, 10 months ago (2017-01-25 00:42:09 UTC) #41
ortuno
Don't forget to run the bad_messages script!
3 years, 10 months ago (2017-01-25 01:01:56 UTC) #42
dougt
On 2017/01/25 01:01:56, ortuno wrote: > Don't forget to run the bad_messages script! ran it. ...
3 years, 10 months ago (2017-01-25 01:08:29 UTC) #43
ortuno
On 2017/01/25 at 01:08:29, dougt wrote: > On 2017/01/25 01:01:56, ortuno wrote: > > Don't ...
3 years, 10 months ago (2017-01-25 03:39:40 UTC) #44
dougt
On 2017/01/25 03:39:40, ortuno wrote: > On 2017/01/25 at 01:08:29, dougt wrote: > > On ...
3 years, 10 months ago (2017-01-25 06:22:13 UTC) #45
dgozman
bad_message and histograms lgtm
3 years, 10 months ago (2017-01-25 20:01:14 UTC) #47
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/2637343002/180001
3 years, 10 months ago (2017-01-25 22:37:29 UTC) #50
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/344409) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 10 months ago (2017-01-25 22:47:19 UTC) #52
dougt
isherman, ptal: tools/metrics/histograms/histograms.xml
3 years, 10 months ago (2017-01-26 00:58:50 UTC) #53
Ilya Sherman
histograms.xml lgtm
3 years, 10 months ago (2017-01-26 23:17:42 UTC) #55
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/2637343002/180001
3 years, 10 months ago (2017-01-26 23:28:46 UTC) #57
commit-bot: I haz the power
3 years, 10 months ago (2017-01-27 05:36:09 UTC) #60
Message was sent while issue was closed.
Committed patchset #6 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/a2fe05521add5347b1024ca58204...

Powered by Google App Engine
This is Rietveld 408576698