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

Issue 2654403002: Implement WebBluetooth descriptor.writeValue() (Closed)

Created:
3 years, 11 months ago by dougt
Modified:
3 years, 10 months ago
Reviewers:
scheib, ortuno, dcheng
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.writeValue() A GATT Descriptor provides further information about a characteristic's value. Writing values to a GATT Descriptor can be used to control certain behaviors of the given device. 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 Bug 668837, we added support for reads descriptors. In this CL, we add support for writing the value of the descriptor. BUG=668838 R=scheib Review-Url: https://codereview.chromium.org/2654403002 Cr-Commit-Position: refs/heads/master@{#447525} Committed: https://chromium.googlesource.com/chromium/src/+/be62e9d349e2570467d4d86326d9b8f31bedc0fc

Patch Set 1 : Inital #

Total comments: 25

Patch Set 2 : nits address #

Patch Set 3 : nit #

Total comments: 10

Patch Set 4 : #4 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+469 lines, -154 lines) Patch
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 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/bluetooth/web_bluetooth_service_impl.h View 1 2 chunks +11 lines, -0 lines 0 comments Download
M content/browser/bluetooth/web_bluetooth_service_impl.cc View 1 2 3 2 chunks +55 lines, -0 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h View 1 2 3 2 chunks +12 lines, -1 line 0 comments Download
M content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc View 1 3 chunks +38 lines, -3 lines 0 comments Download
A + third_party/WebKit/LayoutTests/bluetooth/descriptor/readValue/descriptor-is-blocklisted.html View 1 chunk +0 lines, -1 line 0 comments Download
D third_party/WebKit/LayoutTests/bluetooth/descriptor/readValue/gen-descriptor-is-blocklisted.html View 1 chunk +0 lines, -32 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/descriptor/readValue/gen-descriptor-is-removed.html View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/descriptor/readValue/gen-io-op-fails.html View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/descriptor/readValue/gen-io-op-garbage-collection-ran-during-success.html View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/descriptor/readValue/gen-io-op-reconnect-during-error.html View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/descriptor/readValue/gen-service-is-removed.html View 1 chunk +15 lines, -17 lines 0 comments Download
A + third_party/WebKit/LayoutTests/bluetooth/descriptor/writeValue/descriptor-is-blocklisted.html View 2 chunks +12 lines, -5 lines 0 comments Download
A + third_party/WebKit/LayoutTests/bluetooth/descriptor/writeValue/gen-descriptor-is-removed.html View 2 chunks +2 lines, -1 line 0 comments Download
A + third_party/WebKit/LayoutTests/bluetooth/descriptor/writeValue/gen-io-op-device-disconnects-before.html View 2 chunks +10 lines, -2 lines 0 comments Download
A + third_party/WebKit/LayoutTests/bluetooth/descriptor/writeValue/gen-io-op-device-disconnects-during-error.html View 2 chunks +10 lines, -2 lines 0 comments Download
A + third_party/WebKit/LayoutTests/bluetooth/descriptor/writeValue/gen-io-op-device-disconnects-during-success.html View 2 chunks +10 lines, -2 lines 0 comments Download
A + third_party/WebKit/LayoutTests/bluetooth/descriptor/writeValue/gen-io-op-device-reconnects-during-error.html View 3 chunks +10 lines, -2 lines 0 comments Download
A + third_party/WebKit/LayoutTests/bluetooth/descriptor/writeValue/gen-io-op-device-reconnects-during-success.html View 3 chunks +10 lines, -2 lines 0 comments Download
A + third_party/WebKit/LayoutTests/bluetooth/descriptor/writeValue/gen-io-op-disconnect-called-before.html View 2 chunks +10 lines, -2 lines 0 comments Download
A + third_party/WebKit/LayoutTests/bluetooth/descriptor/writeValue/gen-io-op-disconnect-called-during-error.html View 3 chunks +10 lines, -2 lines 0 comments Download
A + third_party/WebKit/LayoutTests/bluetooth/descriptor/writeValue/gen-io-op-disconnect-called-during-success.html View 3 chunks +10 lines, -2 lines 0 comments Download
A + third_party/WebKit/LayoutTests/bluetooth/descriptor/writeValue/gen-io-op-fails.html View 2 chunks +3 lines, -2 lines 0 comments Download
A + third_party/WebKit/LayoutTests/bluetooth/descriptor/writeValue/gen-io-op-garbage-collection-ran-during-error.html View 3 chunks +10 lines, -2 lines 0 comments Download
A + third_party/WebKit/LayoutTests/bluetooth/descriptor/writeValue/gen-io-op-garbage-collection-ran-during-success.html View 3 chunks +3 lines, -2 lines 0 comments Download
A + third_party/WebKit/LayoutTests/bluetooth/descriptor/writeValue/gen-io-op-reconnect-during-error.html View 3 chunks +3 lines, -2 lines 0 comments Download
A + third_party/WebKit/LayoutTests/bluetooth/descriptor/writeValue/gen-io-op-reconnect-during-success.html View 3 chunks +5 lines, -4 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/descriptor/writeValue/gen-service-is-removed.html View 1 chunk +28 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/descriptor/writeValue/value-too-long.html View 1 1 chunk +23 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/descriptor/writeValue/write-succeeds.html View 1 1 chunk +22 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/descriptor/writeValue/write-updates-value.html View 1 chunk +24 lines, -0 lines 0 comments Download
D third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/descriptor-is-blocklisted.js View 1 chunk +0 lines, -24 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/descriptor-is-removed.js View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/io-op-device-disconnects-before.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/io-op-device-disconnects-during-error.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/io-op-device-disconnects-during-success.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/io-op-device-reconnects-during-error.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/io-op-device-reconnects-during-success.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/io-op-disconnect-called-before.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/io-op-disconnect-called-during-error.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/io-op-disconnect-called-during-success.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/io-op-fails.js View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/io-op-garbage-collection-ran-during-error.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/io-op-garbage-collection-ran-during-success.js View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/io-op-reconnect-during-error.js View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/io-op-reconnect-during-success.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/service-is-removed.js View 1 chunk +15 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTDescriptor.h View 2 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTDescriptor.cpp View 3 chunks +65 lines, -11 lines 0 comments Download
M third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom View 1 chunk +8 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 40 (25 generated)
dougt
scheib, dcheng, ortuno
3 years, 10 months ago (2017-01-27 23:28:53 UTC) #9
ortuno
Not necessary for this patch but we should add the necessary strings to the fuzzer. ...
3 years, 10 months ago (2017-01-28 00:22:51 UTC) #10
dougt
dcheng, ptal. https://codereview.chromium.org/2654403002/diff/20001/content/browser/bluetooth/web_bluetooth_service_impl.cc File content/browser/bluetooth/web_bluetooth_service_impl.cc (right): https://codereview.chromium.org/2654403002/diff/20001/content/browser/bluetooth/web_bluetooth_service_impl.cc#newcode787 content/browser/bluetooth/web_bluetooth_service_impl.cc:787: if (value.size() > 512) { On 2017/01/28 ...
3 years, 10 months ago (2017-01-31 00:31:25 UTC) #15
dcheng
https://codereview.chromium.org/2654403002/diff/20001/content/browser/bluetooth/web_bluetooth_service_impl.cc File content/browser/bluetooth/web_bluetooth_service_impl.cc (right): https://codereview.chromium.org/2654403002/diff/20001/content/browser/bluetooth/web_bluetooth_service_impl.cc#newcode787 content/browser/bluetooth/web_bluetooth_service_impl.cc:787: if (value.size() > 512) { On 2017/01/28 00:22:51, ortuno ...
3 years, 10 months ago (2017-01-31 01:27:01 UTC) #16
dougt
ortuno, dcheng, ptal https://codereview.chromium.org/2654403002/diff/20001/content/browser/bluetooth/web_bluetooth_service_impl.cc File content/browser/bluetooth/web_bluetooth_service_impl.cc (right): https://codereview.chromium.org/2654403002/diff/20001/content/browser/bluetooth/web_bluetooth_service_impl.cc#newcode1030 content/browser/bluetooth/web_bluetooth_service_impl.cc:1030: // TODO(667319) We are reporting failures ...
3 years, 10 months ago (2017-01-31 18:07:16 UTC) #19
dougt
ortuno, dcheng, PTAL.
3 years, 10 months ago (2017-01-31 18:48:58 UTC) #20
ortuno
https://codereview.chromium.org/2654403002/diff/20001/content/browser/bluetooth/web_bluetooth_service_impl.cc File content/browser/bluetooth/web_bluetooth_service_impl.cc (right): https://codereview.chromium.org/2654403002/diff/20001/content/browser/bluetooth/web_bluetooth_service_impl.cc#newcode1030 content/browser/bluetooth/web_bluetooth_service_impl.cc:1030: // TODO(667319) We are reporting failures to UMA but ...
3 years, 10 months ago (2017-01-31 19:50:09 UTC) #23
dougt
https://codereview.chromium.org/2654403002/diff/20001/content/browser/bluetooth/web_bluetooth_service_impl.cc File content/browser/bluetooth/web_bluetooth_service_impl.cc (right): https://codereview.chromium.org/2654403002/diff/20001/content/browser/bluetooth/web_bluetooth_service_impl.cc#newcode1030 content/browser/bluetooth/web_bluetooth_service_impl.cc:1030: // TODO(667319) We are reporting failures to UMA but ...
3 years, 10 months ago (2017-01-31 20:59:16 UTC) #27
ortuno
https://codereview.chromium.org/2654403002/diff/60001/content/browser/bluetooth/bluetooth_metrics.h File content/browser/bluetooth/bluetooth_metrics.h (right): https://codereview.chromium.org/2654403002/diff/60001/content/browser/bluetooth/bluetooth_metrics.h#newcode39 content/browser/bluetooth/bluetooth_metrics.h:39: DESCRIPTOR_WRITE_VALUE = 12, On 2017/01/31 at 20:59:16, dougt wrote: ...
3 years, 10 months ago (2017-02-01 00:01:59 UTC) #31
dougt
> I mean the old new format... I see a lot of whitespace on io-op-fails.js ...
3 years, 10 months ago (2017-02-01 00:04:54 UTC) #32
ortuno
lgtm but repeating bluetooth_metrics.h comment in case you didn't see: [This is not currently address ...
3 years, 10 months ago (2017-02-01 01:47:49 UTC) #33
dougt
On 2017/02/01 01:47:49, ortuno wrote: > lgtm but repeating bluetooth_metrics.h comment in case you didn't ...
3 years, 10 months ago (2017-02-01 02:36:13 UTC) #34
dcheng
LGTM. As mentioned, we can try to figure out how to address the issue of ...
3 years, 10 months ago (2017-02-01 08:02:41 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/2654403002/80001
3 years, 10 months ago (2017-02-01 16:09:08 UTC) #37
commit-bot: I haz the power
3 years, 10 months ago (2017-02-01 16:14:43 UTC) #40
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/be62e9d349e2570467d4d86326d9...

Powered by Google App Engine
This is Rietveld 408576698