summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/Source/modules/bluetooth/Bluetooth.h
blob: 6805e2d081f98f9d6407ae2af78e872fc26116cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef Bluetooth_h
#define Bluetooth_h

#include "bindings/core/v8/ScriptPromise.h"
#include "bindings/core/v8/ScriptWrappable.h"
#include "platform/heap/Handle.h"

namespace blink {

class BluetoothUUIDs;
class RequestDeviceOptions;
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*, const RequestDeviceOptions&, ExceptionState&);

    DEFINE_INLINE_TRACE() { }

};

} // namespace blink

#endif // Bluetooth_h