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

Issue 1152393002: bluetooth: Blink side implementation of getPrimaryService (Closed)

Created:
5 years, 7 months ago by ortuno
Modified:
5 years, 6 months ago
CC:
blink-reviews, falken, scheib+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@bluetooth-get-primary-service-interface
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

bluetooth: Blink side implementation of getPrimaryService This adds the corresponding Blink-side implementation for getPrimaryService. This change also adds layout tests for getPrimaryService. This is the last of three patches to implement getPrimaryService: [1] http://crrev.com/1150253004 [2] http://crrev.com/1159523002 [3] This patch. BUG=491399 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196420

Patch Set 1 #

Patch Set 2 : 1. getPrimaryService impl #

Total comments: 7

Patch Set 3 : Add explicit to BluetoothGATTRemoteService constructor #

Patch Set 4 : Fixed layout test #

Total comments: 10

Patch Set 5 : Address scheib's comments #

Patch Set 6 : Test cleanup #

Total comments: 10

Patch Set 7 : Address jyasskin's comments #

Patch Set 8 : Address scheib's comments #

Total comments: 5

Patch Set 9 : Add BluetoothGATTService to webexposed layout test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -7 lines) Patch
A LayoutTests/bluetooth/getPrimaryService.html View 1 2 3 4 5 6 1 chunk +68 lines, -0 lines 0 comments Download
M LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M Source/modules/bluetooth/BluetoothGATTRemoteServer.h View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M Source/modules/bluetooth/BluetoothGATTRemoteServer.cpp View 1 2 3 4 5 6 2 chunks +21 lines, -1 line 0 comments Download
M Source/modules/bluetooth/BluetoothGATTRemoteServer.idl View 1 2 chunks +5 lines, -2 lines 0 comments Download
M Source/modules/bluetooth/BluetoothGATTService.h View 1 2 1 chunk +25 lines, -1 line 0 comments Download
A Source/modules/bluetooth/BluetoothGATTService.cpp View 1 chunk +32 lines, -0 lines 0 comments Download
M Source/modules/bluetooth/BluetoothGATTService.idl View 1 2 3 4 5 6 7 1 chunk +4 lines, -3 lines 0 comments Download
M Source/modules/modules.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 36 (9 generated)
ortuno
@haraken: PTAL
5 years, 7 months ago (2015-05-23 01:21:59 UTC) #2
haraken
+yhirano for ScriptPromise changes https://codereview.chromium.org/1152393002/diff/20001/Source/modules/bluetooth/BluetoothGATTService.cpp File Source/modules/bluetooth/BluetoothGATTService.cpp (right): https://codereview.chromium.org/1152393002/diff/20001/Source/modules/bluetooth/BluetoothGATTService.cpp#newcode23 Source/modules/bluetooth/BluetoothGATTService.cpp:23: OwnPtr<WebBluetoothGATTService> webService = adoptPtr(webServiceRawPointer); We ...
5 years, 7 months ago (2015-05-24 00:13:51 UTC) #4
yhirano
https://codereview.chromium.org/1152393002/diff/20001/Source/modules/bluetooth/BluetoothGATTService.cpp File Source/modules/bluetooth/BluetoothGATTService.cpp (right): https://codereview.chromium.org/1152393002/diff/20001/Source/modules/bluetooth/BluetoothGATTService.cpp#newcode23 Source/modules/bluetooth/BluetoothGATTService.cpp:23: OwnPtr<WebBluetoothGATTService> webService = adoptPtr(webServiceRawPointer); On 2015/05/24 00:13:50, haraken wrote: ...
5 years, 7 months ago (2015-05-25 02:30:00 UTC) #5
haraken
https://codereview.chromium.org/1152393002/diff/20001/Source/modules/bluetooth/BluetoothGATTService.cpp File Source/modules/bluetooth/BluetoothGATTService.cpp (right): https://codereview.chromium.org/1152393002/diff/20001/Source/modules/bluetooth/BluetoothGATTService.cpp#newcode23 Source/modules/bluetooth/BluetoothGATTService.cpp:23: OwnPtr<WebBluetoothGATTService> webService = adoptPtr(webServiceRawPointer); On 2015/05/25 02:30:00, yhirano wrote: ...
5 years, 7 months ago (2015-05-26 11:45:34 UTC) #6
yhirano
On 2015/05/26 11:45:34, haraken wrote: > https://codereview.chromium.org/1152393002/diff/20001/Source/modules/bluetooth/BluetoothGATTService.cpp > File Source/modules/bluetooth/BluetoothGATTService.cpp (right): > > https://codereview.chromium.org/1152393002/diff/20001/Source/modules/bluetooth/BluetoothGATTService.cpp#newcode23 > ...
5 years, 7 months ago (2015-05-26 12:15:29 UTC) #7
haraken
On 2015/05/26 12:15:29, yhirano wrote: > On 2015/05/26 11:45:34, haraken wrote: > > > https://codereview.chromium.org/1152393002/diff/20001/Source/modules/bluetooth/BluetoothGATTService.cpp ...
5 years, 7 months ago (2015-05-26 12:29:11 UTC) #8
nhiroki
On 2015/05/26 12:29:11, haraken wrote: > On 2015/05/26 12:15:29, yhirano wrote: > > On 2015/05/26 ...
5 years, 7 months ago (2015-05-27 10:03:27 UTC) #9
ortuno
On 2015/05/27 at 10:03:27, nhiroki wrote: > On 2015/05/26 12:29:11, haraken wrote: > > On ...
5 years, 7 months ago (2015-05-27 21:23:37 UTC) #10
ortuno
https://codereview.chromium.org/1152393002/diff/20001/Source/modules/bluetooth/BluetoothGATTService.h File Source/modules/bluetooth/BluetoothGATTService.h (right): https://codereview.chromium.org/1152393002/diff/20001/Source/modules/bluetooth/BluetoothGATTService.h#newcode30 Source/modules/bluetooth/BluetoothGATTService.h:30: BluetoothGATTService(const WebBluetoothGATTService&); On 2015/05/24 at 00:13:51, haraken wrote: > ...
5 years, 7 months ago (2015-05-27 21:24:47 UTC) #11
ortuno
@scheib: PTAL
5 years, 7 months ago (2015-05-27 21:25:19 UTC) #13
scheib
https://codereview.chromium.org/1152393002/diff/60001/LayoutTests/bluetooth/getPrimaryService.html File LayoutTests/bluetooth/getPrimaryService.html (right): https://codereview.chromium.org/1152393002/diff/60001/LayoutTests/bluetooth/getPrimaryService.html#newcode45 LayoutTests/bluetooth/getPrimaryService.html:45: assert_equals(service.uuid, generic_access, test that the device matches as well. ...
5 years, 6 months ago (2015-05-29 00:17:32 UTC) #14
haraken
I'm not intending to block this CL, but the manual delete should be fixed. I'm ...
5 years, 6 months ago (2015-05-29 01:35:45 UTC) #15
ortuno
On 2015/05/29 at 01:35:45, haraken wrote: > I'm not intending to block this CL, but ...
5 years, 6 months ago (2015-05-29 01:38:30 UTC) #16
haraken
On 2015/05/29 01:38:30, ortuno wrote: > On 2015/05/29 at 01:35:45, haraken wrote: > > I'm ...
5 years, 6 months ago (2015-05-29 01:43:12 UTC) #17
nhiroki
On 2015/05/29 01:43:12, haraken wrote: > On 2015/05/29 01:38:30, ortuno wrote: > > On 2015/05/29 ...
5 years, 6 months ago (2015-05-29 04:12:22 UTC) #18
ortuno
https://codereview.chromium.org/1152393002/diff/60001/LayoutTests/bluetooth/getPrimaryService.html File LayoutTests/bluetooth/getPrimaryService.html (right): https://codereview.chromium.org/1152393002/diff/60001/LayoutTests/bluetooth/getPrimaryService.html#newcode45 LayoutTests/bluetooth/getPrimaryService.html:45: assert_equals(service.uuid, generic_access, On 2015/05/29 00:17:32, scheib wrote: > test ...
5 years, 6 months ago (2015-06-01 21:21:34 UTC) #19
ortuno
@jyasskin: PTAL
5 years, 6 months ago (2015-06-01 21:22:15 UTC) #21
Jeffrey Yasskin
lgtm https://codereview.chromium.org/1152393002/diff/100001/LayoutTests/bluetooth/getPrimaryService.html File LayoutTests/bluetooth/getPrimaryService.html (right): https://codereview.chromium.org/1152393002/diff/100001/LayoutTests/bluetooth/getPrimaryService.html#newcode15 LayoutTests/bluetooth/getPrimaryService.html:15: return device.connectGATT().then(function(gattServer) { I think you can collapse ...
5 years, 6 months ago (2015-06-02 20:28:08 UTC) #22
ortuno
@scheib: PTAL https://codereview.chromium.org/1152393002/diff/100001/LayoutTests/bluetooth/getPrimaryService.html File LayoutTests/bluetooth/getPrimaryService.html (right): https://codereview.chromium.org/1152393002/diff/100001/LayoutTests/bluetooth/getPrimaryService.html#newcode15 LayoutTests/bluetooth/getPrimaryService.html:15: return device.connectGATT().then(function(gattServer) { On 2015/06/02 20:28:07, Jeffrey ...
5 years, 6 months ago (2015-06-03 03:05:16 UTC) #23
scheib
LGTM https://codereview.chromium.org/1152393002/diff/60001/LayoutTests/bluetooth/getPrimaryService.html File LayoutTests/bluetooth/getPrimaryService.html (right): https://codereview.chromium.org/1152393002/diff/60001/LayoutTests/bluetooth/getPrimaryService.html#newcode45 LayoutTests/bluetooth/getPrimaryService.html:45: assert_equals(service.uuid, generic_access, On 2015/06/01 21:21:34, ortuno wrote: > ...
5 years, 6 months ago (2015-06-03 03:28:24 UTC) #24
ortuno
Thanks! https://codereview.chromium.org/1152393002/diff/60001/LayoutTests/bluetooth/getPrimaryService.html File LayoutTests/bluetooth/getPrimaryService.html (right): https://codereview.chromium.org/1152393002/diff/60001/LayoutTests/bluetooth/getPrimaryService.html#newcode45 LayoutTests/bluetooth/getPrimaryService.html:45: assert_equals(service.uuid, generic_access, On 2015/06/03 03:28:24, scheib wrote: > ...
5 years, 6 months ago (2015-06-03 03:33:12 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1152393002/140001
5 years, 6 months ago (2015-06-03 03:33:41 UTC) #28
haraken
https://codereview.chromium.org/1152393002/diff/140001/Source/modules/bluetooth/BluetoothGATTService.cpp File Source/modules/bluetooth/BluetoothGATTService.cpp (right): https://codereview.chromium.org/1152393002/diff/140001/Source/modules/bluetooth/BluetoothGATTService.cpp#newcode14 Source/modules/bluetooth/BluetoothGATTService.cpp:14: : m_webService(webService) We're deep-copying the webService here. Is this ...
5 years, 6 months ago (2015-06-03 03:45:38 UTC) #29
Jeffrey Yasskin
https://codereview.chromium.org/1152393002/diff/100001/LayoutTests/bluetooth/getPrimaryService.html File LayoutTests/bluetooth/getPrimaryService.html (right): https://codereview.chromium.org/1152393002/diff/100001/LayoutTests/bluetooth/getPrimaryService.html#newcode63 LayoutTests/bluetooth/getPrimaryService.html:63: assert_not_equals(services[0], services[1], On 2015/06/03 03:05:16, ortuno wrote: > On ...
5 years, 6 months ago (2015-06-03 15:10:04 UTC) #31
ortuno
https://codereview.chromium.org/1152393002/diff/100001/LayoutTests/bluetooth/getPrimaryService.html File LayoutTests/bluetooth/getPrimaryService.html (right): https://codereview.chromium.org/1152393002/diff/100001/LayoutTests/bluetooth/getPrimaryService.html#newcode63 LayoutTests/bluetooth/getPrimaryService.html:63: assert_not_equals(services[0], services[1], On 2015/06/03 at 15:10:04, Jeffrey Yasskin wrote: ...
5 years, 6 months ago (2015-06-03 17:02:19 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1152393002/160001
5 years, 6 months ago (2015-06-03 17:04:37 UTC) #35
commit-bot: I haz the power
5 years, 6 months ago (2015-06-03 18:12:27 UTC) #36
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=196420

Powered by Google App Engine
This is Rietveld 408576698