Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(25)

Issue 1182973002: Implement the Blink side of RequestDeviceOptions. (Closed)

Created:
4 years, 10 months ago by Jeffrey Yasskin
Modified:
4 years, 10 months ago
Reviewers:
scheib, ortuno
CC:
blink-reviews, dglazkov+blink, scheib+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@pinned
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Implement the Blink side of RequestDeviceOptions. Except for the tests that require an update to the fake bluetooth adapters. This is the first of three patches to implement RequestDeviceOptions: [1] This patch. [2] https://crrev.com/1172853004 (Chromium side) [3] https://crrev.com/1174843002 (Blink tests) BUG=440594 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197221

Patch Set 1 #

Patch Set 2 : Sync, update a test, and some tweaks #

Total comments: 8

Patch Set 3 : Fix review comments. #

Patch Set 4 : Prepare readValue.html for a mock data change #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+176 lines, -30 lines) Patch
M LayoutTests/bluetooth/bluetooth-helpers.js View 1 chunk +6 lines, -0 lines 0 comments Download
M LayoutTests/bluetooth/connectGATT.html View 3 chunks +9 lines, -3 lines 0 comments Download
M LayoutTests/bluetooth/getCharacteristic.html View 4 chunks +12 lines, -4 lines 0 comments Download
M LayoutTests/bluetooth/getPrimaryService.html View 4 chunks +12 lines, -4 lines 0 comments Download
M LayoutTests/bluetooth/idl-BluetoothDevice.html View 2 chunks +6 lines, -4 lines 0 comments Download
M LayoutTests/bluetooth/readValue.html View 1 2 3 4 chunks +11 lines, -4 lines 0 comments Download
M LayoutTests/bluetooth/requestDevice.html View 3 chunks +19 lines, -2 lines 0 comments Download
M Source/modules/bluetooth/Bluetooth.h View 2 chunks +2 lines, -1 line 0 comments Download
M Source/modules/bluetooth/Bluetooth.cpp View 1 2 1 chunk +39 lines, -2 lines 0 comments Download
M Source/modules/bluetooth/Bluetooth.idl View 1 chunk +1 line, -2 lines 0 comments Download
A + Source/modules/bluetooth/BluetoothScanFilter.idl View 1 1 chunk +3 lines, -3 lines 0 comments Download
A Source/modules/bluetooth/RequestDeviceOptions.idl View 1 1 chunk +11 lines, -0 lines 2 comments Download
M Source/modules/modules.gypi View 1 2 chunks +4 lines, -0 lines 0 comments Download
M public/platform/modules/bluetooth/WebBluetooth.h View 1 2 2 chunks +5 lines, -1 line 0 comments Download
A public/platform/modules/bluetooth/WebRequestDeviceOptions.h View 1 chunk +36 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (9 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1182973002/1
4 years, 10 months ago (2015-06-13 01:50:37 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2015-06-13 03:17:49 UTC) #4
Jeffrey Yasskin
PTAL. I'm still double-checking the other patches in the series, but this one should be ...
4 years, 10 months ago (2015-06-15 17:51:35 UTC) #7
scheib
LGTM https://codereview.chromium.org/1182973002/diff/40001/LayoutTests/bluetooth/idl-BluetoothDevice.html File LayoutTests/bluetooth/idl-BluetoothDevice.html (right): https://codereview.chromium.org/1182973002/diff/40001/LayoutTests/bluetooth/idl-BluetoothDevice.html#newcode35 LayoutTests/bluetooth/idl-BluetoothDevice.html:35: assert_equals(device.name.slice(0, 17), "Empty Mock Device"); Why slice? https://codereview.chromium.org/1182973002/diff/40001/public/platform/modules/bluetooth/WebBluetooth.h ...
4 years, 10 months ago (2015-06-15 18:08:11 UTC) #8
ortuno
LGTM https://codereview.chromium.org/1182973002/diff/40001/Source/modules/bluetooth/Bluetooth.cpp File Source/modules/bluetooth/Bluetooth.cpp (right): https://codereview.chromium.org/1182973002/diff/40001/Source/modules/bluetooth/Bluetooth.cpp#newcode36 Source/modules/bluetooth/Bluetooth.cpp:36: webFilter.services.assign(services); why do you use assign instead of ...
4 years, 10 months ago (2015-06-15 19:13:37 UTC) #9
Jeffrey Yasskin
https://codereview.chromium.org/1182973002/diff/40001/LayoutTests/bluetooth/idl-BluetoothDevice.html File LayoutTests/bluetooth/idl-BluetoothDevice.html (right): https://codereview.chromium.org/1182973002/diff/40001/LayoutTests/bluetooth/idl-BluetoothDevice.html#newcode35 LayoutTests/bluetooth/idl-BluetoothDevice.html:35: assert_equals(device.name.slice(0, 17), "Empty Mock Device"); On 2015/06/15 18:08:11, scheib ...
4 years, 10 months ago (2015-06-15 19:19:19 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1182973002/60001
4 years, 10 months ago (2015-06-15 19:19:57 UTC) #13
scheib
LGTM still https://codereview.chromium.org/1182973002/diff/40001/LayoutTests/bluetooth/idl-BluetoothDevice.html File LayoutTests/bluetooth/idl-BluetoothDevice.html (right): https://codereview.chromium.org/1182973002/diff/40001/LayoutTests/bluetooth/idl-BluetoothDevice.html#newcode35 LayoutTests/bluetooth/idl-BluetoothDevice.html:35: assert_equals(device.name.slice(0, 17), "Empty Mock Device"); On 2015/06/15 ...
4 years, 10 months ago (2015-06-15 20:15:15 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2015-06-15 20:34:57 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1182973002/80001
4 years, 10 months ago (2015-06-16 23:59:19 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:80001) as https://src.chromium.org/viewvc/blink?view=rev&revision=197221
4 years, 10 months ago (2015-06-17 01:09:43 UTC) #20
ortuno
https://codereview.chromium.org/1182973002/diff/80001/Source/modules/bluetooth/RequestDeviceOptions.idl File Source/modules/bluetooth/RequestDeviceOptions.idl (right): https://codereview.chromium.org/1182973002/diff/80001/Source/modules/bluetooth/RequestDeviceOptions.idl#newcode9 Source/modules/bluetooth/RequestDeviceOptions.idl:9: sequence<BluetoothServiceUUID> optionalServices/* = []*/; Do you know if a ...
4 years, 10 months ago (2015-06-24 19:35:51 UTC) #21
Jeffrey Yasskin
4 years, 10 months ago (2015-06-24 22:33:31 UTC) #22
Message was sent while issue was closed.
https://codereview.chromium.org/1182973002/diff/80001/Source/modules/bluetoot...
File Source/modules/bluetooth/RequestDeviceOptions.idl (right):

https://codereview.chromium.org/1182973002/diff/80001/Source/modules/bluetoot...
Source/modules/bluetooth/RequestDeviceOptions.idl:9:
sequence<BluetoothServiceUUID> optionalServices/* = []*/;
On 2015/06/24 19:35:51, ortuno wrote:
> Do you know if a dictionary can have sequence of unions? I tried to replace
> BluetoothServiceUUID with 'String or unsigned long' and it's not generating
the
> right code.

WebIDL doesn't say anything about it not working, but Blink's IDL compiler could
be broken. I think you would need to write "sequence<(String or unsigned
long)>".

Powered by Google App Engine
This is Rietveld 408576698