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

Issue 1066933008: bluetooth: Refactor Bluetooth and Stub out BluetoothInteraction. (Closed)

Created:
5 years, 8 months ago by ortuno
Modified:
5 years, 7 months ago
Reviewers:
haraken, scheib, PhistucK
CC:
blink-reviews, Jeffrey Yasskin, scheib+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@bluetooth-uuids-fix-casing-2
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

bluetooth: Refactor Bluetooth and Stub out BluetoothInteraction. Two changes: 1. Refactor Bluetooth to call BluetoothDiscovery's functions instead of inheriting the class. 2. Stub out BluetoothInteraction. First step for implementing the BluetoothInteraction interface: https://webbluetoothcg.github.io/web-bluetooth/#idl-def-bluetoothinteraction BUG=476985 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=194618

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 8

Patch Set 5 : #

Patch Set 6 : Refactor to use BluetoothDiscovery and BluetoothInteraction as members #

Total comments: 2

Patch Set 7 : #

Total comments: 2

Patch Set 8 : #

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -3 lines) Patch
M Source/modules/bluetooth/Bluetooth.h View 1 2 3 4 5 6 7 8 1 chunk +20 lines, -2 lines 0 comments Download
A Source/modules/bluetooth/Bluetooth.cpp View 1 2 3 4 5 6 7 8 1 chunk +24 lines, -0 lines 0 comments Download
M Source/modules/bluetooth/Bluetooth.idl View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/modules/bluetooth/BluetoothDiscovery.h View 1 2 3 4 5 7 8 1 chunk +1 line, -1 line 0 comments Download
A Source/modules/bluetooth/BluetoothInteraction.h View 1 2 3 4 5 6 7 1 chunk +25 lines, -0 lines 0 comments Download
A Source/modules/bluetooth/BluetoothInteraction.idl View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
M Source/modules/modules.gypi View 1 2 3 4 5 3 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (11 generated)
ortuno
@scheib please review
5 years, 8 months ago (2015-04-23 22:04:19 UTC) #2
scheib
LGTM
5 years, 8 months ago (2015-04-23 22:31:21 UTC) #3
haraken
https://codereview.chromium.org/1066933008/diff/60001/Source/modules/bluetooth/Bluetooth.h File Source/modules/bluetooth/Bluetooth.h (right): https://codereview.chromium.org/1066933008/diff/60001/Source/modules/bluetooth/Bluetooth.h#newcode11 Source/modules/bluetooth/Bluetooth.h:11: #include "platform/heap/Visitor.h" Include platform/heap/Handle.h (this is our convention.) https://codereview.chromium.org/1066933008/diff/60001/Source/modules/bluetooth/BluetoothInteraction.h ...
5 years, 8 months ago (2015-04-24 05:58:43 UTC) #5
haraken
class BluetoothInteraction : public GarbageCollected<BluetoothInteraction>, public ScriptWrappable { DEFINE_WRAPPERTYPEINFO() }; class Bluetooth : public BluetoothInteraction, ...
5 years, 8 months ago (2015-04-24 06:19:05 UTC) #6
ortuno
Thanks for the help @haraken! As mentioned before I get an error if I include ...
5 years, 8 months ago (2015-04-24 06:23:12 UTC) #7
ortuno
On 2015/04/24 at 06:19:05, haraken wrote: > class BluetoothInteraction : public GarbageCollected<BluetoothInteraction>, public ScriptWrappable { ...
5 years, 8 months ago (2015-04-24 06:29:45 UTC) #8
PhistucK
5 years, 8 months ago (2015-04-24 09:31:59 UTC) #10
ortuno
@scheib please review. Everyone else: please let me know if you think this should be ...
5 years, 8 months ago (2015-04-25 01:27:11 UTC) #12
scheib
https://codereview.chromium.org/1066933008/diff/120001/Source/modules/bluetooth/Bluetooth.h File Source/modules/bluetooth/Bluetooth.h (right): https://codereview.chromium.org/1066933008/diff/120001/Source/modules/bluetooth/Bluetooth.h#newcode38 Source/modules/bluetooth/Bluetooth.h:38: Member<BluetoothDiscovery> m_bluetoothDiscovery; I think these can be direct members, ...
5 years, 8 months ago (2015-04-25 04:01:02 UTC) #13
ortuno
@scheib: ready for review again. https://codereview.chromium.org/1066933008/diff/120001/Source/modules/bluetooth/Bluetooth.h File Source/modules/bluetooth/Bluetooth.h (right): https://codereview.chromium.org/1066933008/diff/120001/Source/modules/bluetooth/Bluetooth.h#newcode38 Source/modules/bluetooth/Bluetooth.h:38: Member<BluetoothDiscovery> m_bluetoothDiscovery; On 2015/04/25 ...
5 years, 8 months ago (2015-04-27 22:22:01 UTC) #14
scheib
LGTM
5 years, 8 months ago (2015-04-28 04:14:05 UTC) #16
haraken
LGTM with a comment. https://codereview.chromium.org/1066933008/diff/160001/Source/modules/bluetooth/BluetoothInteraction.h File Source/modules/bluetooth/BluetoothInteraction.h (right): https://codereview.chromium.org/1066933008/diff/160001/Source/modules/bluetooth/BluetoothInteraction.h#newcode20 Source/modules/bluetooth/BluetoothInteraction.h:20: DECLARE_VIRTUAL_TRACE(); Does this need to ...
5 years, 8 months ago (2015-04-28 04:34:05 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1066933008/180001
5 years, 7 months ago (2015-04-28 15:57:27 UTC) #20
ortuno
https://codereview.chromium.org/1066933008/diff/160001/Source/modules/bluetooth/BluetoothInteraction.h File Source/modules/bluetooth/BluetoothInteraction.h (right): https://codereview.chromium.org/1066933008/diff/160001/Source/modules/bluetooth/BluetoothInteraction.h#newcode20 Source/modules/bluetooth/BluetoothInteraction.h:20: DECLARE_VIRTUAL_TRACE(); On 2015/04/28 at 04:34:05, haraken wrote: > Does ...
5 years, 7 months ago (2015-04-28 15:57:30 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_compile_dbg on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/win_blink_compile_dbg/builds/43988)
5 years, 7 months ago (2015-04-28 16:27:20 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1066933008/220001
5 years, 7 months ago (2015-04-28 18:29:22 UTC) #27
commit-bot: I haz the power
5 years, 7 months ago (2015-04-28 19:51:12 UTC) #28
Message was sent while issue was closed.
Committed patchset #9 (id:220001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=194618

Powered by Google App Engine
This is Rietveld 408576698