| Index: third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp
|
| diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp b/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp
|
| index 858493d1431362e717da5d7a63f5fddd52c23bf1..32643cae9f27b6b10e9ae3cd54031bd06bc69f6e 100644
|
| --- a/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp
|
| +++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp
|
| @@ -63,6 +63,14 @@ ExecutionContext* BluetoothDevice::getExecutionContext() const
|
| return ActiveDOMObject::getExecutionContext();
|
| }
|
|
|
| +void BluetoothDevice::dispatchGattServerDisconnected()
|
| +{
|
| + if (m_gatt->connected()) {
|
| + m_gatt->setConnected(false);
|
| + dispatchEvent(Event::createBubble(EventTypeNames::gattserverdisconnected));
|
| + }
|
| +}
|
| +
|
| DEFINE_TRACE(BluetoothDevice)
|
| {
|
| EventTargetWithInlineData::trace(visitor);
|
|
|