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

Issue 1147243004: bluetooth: readValue Blink implementation (Closed)

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

Description

bluetooth: readValue Blink implementation Also add a new BluetoothArrayBuffer class so that we can use CallbackPromiseAdapter. This is the third of three patches to implement readValue: [1] http://crrev.com/1168113008 [2] http://crrev.com/1149883011 [3] This patch. BUG=496379 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197084

Patch Set 1 : readValue blink Implementation. #

Total comments: 12

Patch Set 2 : Address jyasskin's comments #

Total comments: 11

Patch Set 3 : Added TODO #

Patch Set 4 : Rename BluetoothArrayBuffer to ConverWebVectorToArrayBuffer #

Total comments: 4

Patch Set 5 : Address scheib's comments #

Patch Set 6 : Fix Web Exposed Layout Test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -1 line) Patch
A LayoutTests/bluetooth/readValue.html View 1 2 3 4 1 chunk +72 lines, -0 lines 0 comments Download
M LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/bluetooth/BluetoothGATTCharacteristic.h View 2 chunks +3 lines, -0 lines 0 comments Download
M Source/modules/bluetooth/BluetoothGATTCharacteristic.cpp View 1 2 3 2 chunks +12 lines, -0 lines 0 comments Download
M Source/modules/bluetooth/BluetoothGATTCharacteristic.idl View 1 chunk +1 line, -1 line 0 comments Download
A Source/modules/bluetooth/ConvertWebVectorToArrayBuffer.h View 1 2 3 1 chunk +32 lines, -0 lines 0 comments Download
A Source/modules/bluetooth/ConvertWebVectorToArrayBuffer.cpp View 1 2 3 1 chunk +28 lines, -0 lines 0 comments Download
M Source/modules/modules.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (9 generated)
ortuno
jyasskin: PTAL
4 years, 10 months ago (2015-06-09 20:18:13 UTC) #6
Jeffrey Yasskin
https://codereview.chromium.org/1147243004/diff/60001/LayoutTests/bluetooth/readValue.html File LayoutTests/bluetooth/readValue.html (right): https://codereview.chromium.org/1147243004/diff/60001/LayoutTests/bluetooth/readValue.html#newcode25 LayoutTests/bluetooth/readValue.html:25: assert_unreached("Device went out of range, should fail."); We have ...
4 years, 10 months ago (2015-06-10 21:12:25 UTC) #7
ortuno
Thanks! https://codereview.chromium.org/1147243004/diff/60001/LayoutTests/bluetooth/readValue.html File LayoutTests/bluetooth/readValue.html (right): https://codereview.chromium.org/1147243004/diff/60001/LayoutTests/bluetooth/readValue.html#newcode25 LayoutTests/bluetooth/readValue.html:25: assert_unreached("Device went out of range, should fail."); On ...
4 years, 10 months ago (2015-06-11 00:10:52 UTC) #8
Jeffrey Yasskin
LGTM, but do let Kentaro or another Blink API expert weigh in on the right ...
4 years, 10 months ago (2015-06-11 00:31:37 UTC) #9
haraken
https://codereview.chromium.org/1147243004/diff/80001/Source/modules/bluetooth/BluetoothArrayBuffer.cpp File Source/modules/bluetooth/BluetoothArrayBuffer.cpp (right): https://codereview.chromium.org/1147243004/diff/80001/Source/modules/bluetooth/BluetoothArrayBuffer.cpp#newcode14 Source/modules/bluetooth/BluetoothArrayBuffer.cpp:14: OwnPtr<WebVector<uint8_t>> webVector = adoptPtr(webVectorRawPointer); OwnPtr<WebVector> looks really weird. WebVector ...
4 years, 10 months ago (2015-06-11 01:13:13 UTC) #11
Jeffrey Yasskin
https://codereview.chromium.org/1147243004/diff/80001/Source/modules/bluetooth/BluetoothArrayBuffer.h File Source/modules/bluetooth/BluetoothArrayBuffer.h (right): https://codereview.chromium.org/1147243004/diff/80001/Source/modules/bluetooth/BluetoothArrayBuffer.h#newcode10 Source/modules/bluetooth/BluetoothArrayBuffer.h:10: #include "public/platform/WebVector.h" On 2015/06/11 01:13:13, haraken wrote: > > ...
4 years, 10 months ago (2015-06-11 01:30:36 UTC) #12
haraken
https://codereview.chromium.org/1147243004/diff/80001/Source/modules/bluetooth/BluetoothArrayBuffer.h File Source/modules/bluetooth/BluetoothArrayBuffer.h (right): https://codereview.chromium.org/1147243004/diff/80001/Source/modules/bluetooth/BluetoothArrayBuffer.h#newcode10 Source/modules/bluetooth/BluetoothArrayBuffer.h:10: #include "public/platform/WebVector.h" On 2015/06/11 01:30:36, Jeffrey Yasskin wrote: > ...
4 years, 10 months ago (2015-06-11 01:42:20 UTC) #13
ortuno
https://codereview.chromium.org/1147243004/diff/60001/Source/modules/bluetooth/BluetoothArrayBuffer.h File Source/modules/bluetooth/BluetoothArrayBuffer.h (right): https://codereview.chromium.org/1147243004/diff/60001/Source/modules/bluetooth/BluetoothArrayBuffer.h#newcode18 Source/modules/bluetooth/BluetoothArrayBuffer.h:18: class BluetoothArrayBuffer { On 2015/06/11 at 00:31:37, Jeffrey Yasskin ...
4 years, 10 months ago (2015-06-11 02:56:33 UTC) #14
haraken
https://codereview.chromium.org/1147243004/diff/80001/Source/modules/bluetooth/BluetoothArrayBuffer.cpp File Source/modules/bluetooth/BluetoothArrayBuffer.cpp (right): https://codereview.chromium.org/1147243004/diff/80001/Source/modules/bluetooth/BluetoothArrayBuffer.cpp#newcode14 Source/modules/bluetooth/BluetoothArrayBuffer.cpp:14: OwnPtr<WebVector<uint8_t>> webVector = adoptPtr(webVectorRawPointer); On 2015/06/11 02:56:33, ortuno wrote: ...
4 years, 10 months ago (2015-06-11 03:34:26 UTC) #15
nhiroki
https://codereview.chromium.org/1147243004/diff/80001/Source/modules/bluetooth/BluetoothArrayBuffer.cpp File Source/modules/bluetooth/BluetoothArrayBuffer.cpp (right): https://codereview.chromium.org/1147243004/diff/80001/Source/modules/bluetooth/BluetoothArrayBuffer.cpp#newcode14 Source/modules/bluetooth/BluetoothArrayBuffer.cpp:14: OwnPtr<WebVector<uint8_t>> webVector = adoptPtr(webVectorRawPointer); On 2015/06/11 01:13:13, haraken wrote: ...
4 years, 10 months ago (2015-06-11 04:01:01 UTC) #16
haraken
On 2015/06/11 04:01:01, nhiroki wrote: > https://codereview.chromium.org/1147243004/diff/80001/Source/modules/bluetooth/BluetoothArrayBuffer.cpp > File Source/modules/bluetooth/BluetoothArrayBuffer.cpp (right): > > https://codereview.chromium.org/1147243004/diff/80001/Source/modules/bluetooth/BluetoothArrayBuffer.cpp#newcode14 > ...
4 years, 10 months ago (2015-06-11 04:11:37 UTC) #17
ortuno
https://codereview.chromium.org/1147243004/diff/80001/Source/modules/bluetooth/BluetoothArrayBuffer.cpp File Source/modules/bluetooth/BluetoothArrayBuffer.cpp (right): https://codereview.chromium.org/1147243004/diff/80001/Source/modules/bluetooth/BluetoothArrayBuffer.cpp#newcode14 Source/modules/bluetooth/BluetoothArrayBuffer.cpp:14: OwnPtr<WebVector<uint8_t>> webVector = adoptPtr(webVectorRawPointer); On 2015/06/11 at 03:34:26, haraken ...
4 years, 10 months ago (2015-06-11 16:24:40 UTC) #18
ortuno
4 years, 10 months ago (2015-06-11 16:24:41 UTC) #19
scheib
https://codereview.chromium.org/1147243004/diff/120001/LayoutTests/bluetooth/readValue.html File LayoutTests/bluetooth/readValue.html (right): https://codereview.chromium.org/1147243004/diff/120001/LayoutTests/bluetooth/readValue.html#newcode51 LayoutTests/bluetooth/readValue.html:51: }, 'Device goes out of range. Reject with NetworkError.'); ...
4 years, 10 months ago (2015-06-11 20:19:13 UTC) #21
ortuno
@scheib: Thanks. Ready for review again. https://codereview.chromium.org/1147243004/diff/120001/LayoutTests/bluetooth/readValue.html File LayoutTests/bluetooth/readValue.html (right): https://codereview.chromium.org/1147243004/diff/120001/LayoutTests/bluetooth/readValue.html#newcode51 LayoutTests/bluetooth/readValue.html:51: }, 'Device goes ...
4 years, 10 months ago (2015-06-11 21:32:18 UTC) #22
scheib
LGTM
4 years, 10 months ago (2015-06-11 21:45:25 UTC) #23
haraken
LGTM https://codereview.chromium.org/1147243004/diff/80001/Source/modules/bluetooth/BluetoothArrayBuffer.cpp File Source/modules/bluetooth/BluetoothArrayBuffer.cpp (right): https://codereview.chromium.org/1147243004/diff/80001/Source/modules/bluetooth/BluetoothArrayBuffer.cpp#newcode14 Source/modules/bluetooth/BluetoothArrayBuffer.cpp:14: OwnPtr<WebVector<uint8_t>> webVector = adoptPtr(webVectorRawPointer); On 2015/06/11 16:24:40, ortuno ...
4 years, 10 months ago (2015-06-11 23:23:53 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1147243004/160001
4 years, 10 months ago (2015-06-13 02:54:21 UTC) #27
commit-bot: I haz the power
4 years, 10 months ago (2015-06-13 05:02:02 UTC) #28
Message was sent while issue was closed.
Committed patchset #6 (id:160001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197084

Powered by Google App Engine
This is Rietveld 408576698