| Index: Source/modules/bluetooth/BluetoothGATTRemoteServer.h
|
| diff --git a/Source/modules/bluetooth/BluetoothGATTRemoteServer.h b/Source/modules/bluetooth/BluetoothGATTRemoteServer.h
|
| index ffea825dd4bf309348352a31d409c478cfd2a069..75e865c6b55e779b82d20d167ad7ea653d9ae554 100644
|
| --- a/Source/modules/bluetooth/BluetoothGATTRemoteServer.h
|
| +++ b/Source/modules/bluetooth/BluetoothGATTRemoteServer.h
|
| @@ -7,18 +7,38 @@
|
|
|
| #include "bindings/core/v8/ScriptWrappable.h"
|
| #include "platform/heap/Heap.h"
|
| +#include "public/platform/modules/bluetooth/WebBluetoothGATTRemoteServer.h"
|
|
|
| namespace blink {
|
|
|
| +class ScriptPromiseResolver;
|
| +
|
| // BluetoothGATTRemoteServer provides a way to interact with a connected bluetooth peripheral.
|
| +//
|
| +// Callbacks providing WebBluetoothGATTRemoteServer objects are handled by
|
| +// CallbackPromiseAdapter templatized with this class. See this class's
|
| +// "Interface required by CallbackPromiseAdapter" section and the
|
| +// CallbackPromiseAdapter class comments.
|
| class BluetoothGATTRemoteServer final
|
| - : public GarbageCollected<BluetoothGATTRemoteServer>
|
| + : public GarbageCollectedFinalized<BluetoothGATTRemoteServer>
|
| , public ScriptWrappable {
|
| DEFINE_WRAPPERTYPEINFO();
|
| public:
|
| + BluetoothGATTRemoteServer(const WebBluetoothGATTRemoteServer&);
|
| +
|
| + // Interface required by CallbackPromiseAdapter:
|
| + typedef WebBluetoothGATTRemoteServer WebType;
|
| + static BluetoothGATTRemoteServer* take(ScriptPromiseResolver*, WebBluetoothGATTRemoteServer*);
|
| + static void dispose(WebBluetoothGATTRemoteServer*);
|
|
|
| // Interface required by Garbage Collectoin:
|
| DEFINE_INLINE_TRACE() { }
|
| +
|
| + // IDL exposed interface:
|
| + bool connected() { return m_webGATT.connected; }
|
| +
|
| +private:
|
| + WebBluetoothGATTRemoteServer m_webGATT;
|
| };
|
|
|
| } // namespace blink
|
|
|