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

Issue 1382743002: bluetooth: Add characteristicvaluechanged event (Closed)

Created:
5 years, 2 months ago by ortuno
Modified:
5 years, 2 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, scheib+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@bluetooth-notifications-1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: Add characteristicvaluechanged event https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothgattcharacteristic-characteristicvaluechanged NOPRESUBMIT=true BUG=483344 Committed: https://crrev.com/601997adf6e30112109528ec4221c0917523d9ee Cr-Commit-Position: refs/heads/master@{#355166}

Patch Set 1 #

Patch Set 2 : Notifications #

Patch Set 3 : Clean up #

Patch Set 4 : Moar cleanup #

Patch Set 5 : Merge #

Patch Set 6 : Clean up #

Patch Set 7 : Final clean up #

Total comments: 36

Patch Set 8 : Address jyasskin's comments #

Total comments: 16

Patch Set 9 : Address more comments #

Total comments: 16

Patch Set 10 : Address scheib's comments #

Patch Set 11 : Add TODO #

Total comments: 8

Patch Set 12 : Address palmer's comments #

Total comments: 10

Patch Set 13 : Address tkent's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+499 lines, -19 lines) Patch
M content/browser/bluetooth/bluetooth_dispatcher_host.h View 1 2 3 4 5 6 7 3 chunks +17 lines, -0 lines 0 comments Download
M content/browser/bluetooth/bluetooth_dispatcher_host.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +57 lines, -3 lines 0 comments Download
M content/common/bluetooth/bluetooth_messages.h View 1 2 2 chunks +16 lines, -0 lines 0 comments Download
M content/renderer/bluetooth/bluetooth_dispatcher.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +30 lines, -0 lines 0 comments Download
M content/renderer/bluetooth/bluetooth_dispatcher.cc View 1 2 3 4 5 6 7 8 6 chunks +51 lines, -3 lines 0 comments Download
M content/renderer/bluetooth/web_bluetooth_impl.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/bluetooth/web_bluetooth_impl.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h View 1 2 3 4 5 6 7 2 chunks +12 lines, -2 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc View 1 2 3 4 5 6 7 8 9 4 chunks +48 lines, -5 lines 0 comments Download
M device/bluetooth/test/mock_bluetooth_gatt_notify_session.h View 1 2 3 4 5 6 7 8 9 2 chunks +20 lines, -0 lines 0 comments Download
M device/bluetooth/test/mock_bluetooth_gatt_notify_session.cc View 1 2 3 4 5 6 7 2 chunks +28 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/characteristicvaluechanged.html View 1 2 3 4 5 6 7 8 9 1 chunk +89 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/resources/bluetooth-helpers.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +51 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/events/EventTypeNames.in View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/EventTargetModulesFactory.in View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothGATTCharacteristic.h View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +16 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothGATTCharacteristic.cpp View 1 2 3 4 5 6 7 4 chunks +33 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothGATTCharacteristic.idl View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/DEPS View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/public/platform/modules/bluetooth/WebBluetooth.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/modules/bluetooth/WebBluetoothGATTCharacteristic.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 43 (15 generated)
ortuno
PTAL
5 years, 2 months ago (2015-10-15 00:14:46 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1382743002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1382743002/120001
5 years, 2 months ago (2015-10-15 00:15:53 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/109547)
5 years, 2 months ago (2015-10-15 00:27:43 UTC) #6
Jeffrey Yasskin
https://codereview.chromium.org/1382743002/diff/120001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1382743002/diff/120001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode387 content/browser/bluetooth/bluetooth_dispatcher_host.cc:387: // Yield to the event loop so that the ...
5 years, 2 months ago (2015-10-15 23:00:52 UTC) #7
ortuno
https://codereview.chromium.org/1382743002/diff/120001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1382743002/diff/120001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode387 content/browser/bluetooth/bluetooth_dispatcher_host.cc:387: // Yield to the event loop so that the ...
5 years, 2 months ago (2015-10-16 01:24:22 UTC) #8
Jeffrey Yasskin
Other than the nits below, lgtm. https://codereview.chromium.org/1382743002/diff/120001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1382743002/diff/120001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode387 content/browser/bluetooth/bluetooth_dispatcher_host.cc:387: // Yield to ...
5 years, 2 months ago (2015-10-16 01:40:18 UTC) #9
ortuno
Thanks! https://codereview.chromium.org/1382743002/diff/120001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1382743002/diff/120001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode387 content/browser/bluetooth/bluetooth_dispatcher_host.cc:387: // Yield to the event loop so that ...
5 years, 2 months ago (2015-10-16 19:41:00 UTC) #11
ortuno
scheib: PTAL
5 years, 2 months ago (2015-10-16 19:41:38 UTC) #13
scheib
LGTM, Some comments warranted. Please add more details to the change description. The use of ...
5 years, 2 months ago (2015-10-16 20:39:25 UTC) #14
ortuno
Thanks! https://codereview.chromium.org/1382743002/diff/180001/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/1382743002/diff/180001/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc#newcode384 content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc:384: .WillByDefault(RunCallbackWithResult<0>([adapter_ptr, location_ptr]() { On 2015/10/16 20:39:25, scheib wrote: ...
5 years, 2 months ago (2015-10-16 21:55:49 UTC) #15
ortuno
PTAL at third_part/WebKit
5 years, 2 months ago (2015-10-16 21:56:22 UTC) #17
haraken
On 2015/10/16 21:56:22, ortuno wrote: > PTAL at third_part/WebKit WebKit/ LGTM
5 years, 2 months ago (2015-10-17 03:17:12 UTC) #18
scheib
https://codereview.chromium.org/1382743002/diff/180001/third_party/WebKit/LayoutTests/bluetooth/characteristicvaluechanged.html File third_party/WebKit/LayoutTests/bluetooth/characteristicvaluechanged.html (right): https://codereview.chromium.org/1382743002/diff/180001/third_party/WebKit/LayoutTests/bluetooth/characteristicvaluechanged.html#newcode30 third_party/WebKit/LayoutTests/bluetooth/characteristicvaluechanged.html:30: }, 'Reading a characteristic should fire an event.'); On ...
5 years, 2 months ago (2015-10-17 19:33:44 UTC) #19
ortuno
https://codereview.chromium.org/1382743002/diff/180001/third_party/WebKit/LayoutTests/bluetooth/characteristicvaluechanged.html File third_party/WebKit/LayoutTests/bluetooth/characteristicvaluechanged.html (right): https://codereview.chromium.org/1382743002/diff/180001/third_party/WebKit/LayoutTests/bluetooth/characteristicvaluechanged.html#newcode30 third_party/WebKit/LayoutTests/bluetooth/characteristicvaluechanged.html:30: }, 'Reading a characteristic should fire an event.'); On ...
5 years, 2 months ago (2015-10-19 18:23:47 UTC) #20
ortuno
Hi tkent. As mentioned before, eventually Web Bluetooth events will bubble through the Web Bluetooth ...
5 years, 2 months ago (2015-10-19 18:27:03 UTC) #22
ortuno
palmer: PTAL at content/common/bluetooth/
5 years, 2 months ago (2015-10-19 18:28:05 UTC) #24
palmer
https://codereview.chromium.org/1382743002/diff/220001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1382743002/diff/220001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode852 content/browser/bluetooth/bluetooth_dispatcher_host.cc:852: if (active_iter != active_characteristic_threads_.end()) { Nit: Could save a ...
5 years, 2 months ago (2015-10-19 19:23:33 UTC) #25
ortuno
https://codereview.chromium.org/1382743002/diff/220001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1382743002/diff/220001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode852 content/browser/bluetooth/bluetooth_dispatcher_host.cc:852: if (active_iter != active_characteristic_threads_.end()) { On 2015/10/19 at 19:23:33, ...
5 years, 2 months ago (2015-10-19 20:09:18 UTC) #26
palmer
LGTM, thanks.
5 years, 2 months ago (2015-10-19 20:56:44 UTC) #27
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1382743002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1382743002/240001
5 years, 2 months ago (2015-10-19 21:06:03 UTC) #29
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/110707)
5 years, 2 months ago (2015-10-19 21:15:50 UTC) #31
tkent
third_party/WebKit lgtm. Some cosmetic comments. https://codereview.chromium.org/1382743002/diff/240001/third_party/WebKit/Source/modules/bluetooth/BluetoothGATTCharacteristic.h File third_party/WebKit/Source/modules/bluetooth/BluetoothGATTCharacteristic.h (right): https://codereview.chromium.org/1382743002/diff/240001/third_party/WebKit/Source/modules/bluetooth/BluetoothGATTCharacteristic.h#newcode50 third_party/WebKit/Source/modules/bluetooth/BluetoothGATTCharacteristic.h:50: void dispatchCharacteristicValueChanged(const WebVector<uint8_t>& value); ...
5 years, 2 months ago (2015-10-19 23:00:59 UTC) #32
ortuno
Thanks! https://codereview.chromium.org/1382743002/diff/240001/third_party/WebKit/Source/modules/bluetooth/BluetoothGATTCharacteristic.h File third_party/WebKit/Source/modules/bluetooth/BluetoothGATTCharacteristic.h (right): https://codereview.chromium.org/1382743002/diff/240001/third_party/WebKit/Source/modules/bluetooth/BluetoothGATTCharacteristic.h#newcode50 third_party/WebKit/Source/modules/bluetooth/BluetoothGATTCharacteristic.h:50: void dispatchCharacteristicValueChanged(const WebVector<uint8_t>& value); On 2015/10/19 at 23:00:59, ...
5 years, 2 months ago (2015-10-20 01:12:12 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1382743002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1382743002/260001
5 years, 2 months ago (2015-10-20 01:13:23 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/110824)
5 years, 2 months ago (2015-10-20 01:22:35 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1382743002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1382743002/260001
5 years, 2 months ago (2015-10-20 21:57:23 UTC) #41
commit-bot: I haz the power
Committed patchset #13 (id:260001)
5 years, 2 months ago (2015-10-20 21:59:35 UTC) #42
commit-bot: I haz the power
5 years, 2 months ago (2015-10-20 22:00:34 UTC) #43
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/601997adf6e30112109528ec4221c0917523d9ee
Cr-Commit-Position: refs/heads/master@{#355166}

Powered by Google App Engine
This is Rietveld 408576698