| Index: Source/modules/bluetooth/Bluetooth.h
|
| diff --git a/Source/modules/bluetooth/Bluetooth.h b/Source/modules/bluetooth/Bluetooth.h
|
| index 9a42358a79791906d22d5b354a0173cec3d87fd3..778397acd3b594e2a319f5447c619fefb3bfb022 100644
|
| --- a/Source/modules/bluetooth/Bluetooth.h
|
| +++ b/Source/modules/bluetooth/Bluetooth.h
|
| @@ -5,19 +5,37 @@
|
| #ifndef Bluetooth_h
|
| #define Bluetooth_h
|
|
|
| +#include "bindings/core/v8/ScriptPromise.h"
|
| #include "bindings/core/v8/ScriptWrappable.h"
|
| #include "modules/bluetooth/BluetoothDiscovery.h"
|
| +#include "platform/heap/Handle.h"
|
|
|
| namespace blink {
|
|
|
| -class Bluetooth final
|
| - : public BluetoothDiscovery {
|
| +class ScriptPromise;
|
| +class ScriptState;
|
| +
|
| +class Bluetooth
|
| + : public GarbageCollected<Bluetooth>
|
| + , public ScriptWrappable {
|
| DEFINE_WRAPPERTYPEINFO();
|
| public:
|
| static Bluetooth* create()
|
| {
|
| return new Bluetooth();
|
| }
|
| +
|
| + // BluetoothDiscovery interface
|
| + ScriptPromise requestDevice(ScriptState*);
|
| +
|
| + DEFINE_INLINE_TRACE()
|
| + {
|
| + visitor->trace(m_bluetoothDiscovery);
|
| + }
|
| +
|
| +private:
|
| + Member<BluetoothDiscovery> m_bluetoothDiscovery;
|
| + BluetoothDiscovery* bluetoothDiscovery();
|
| };
|
|
|
| } // namespace blink
|
|
|