| Index: Source/modules/bluetooth/Bluetooth.cpp
|
| diff --git a/Source/modules/bluetooth/Bluetooth.cpp b/Source/modules/bluetooth/Bluetooth.cpp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f84de6fe157d646109ef36f223d3097b666f0b95
|
| --- /dev/null
|
| +++ b/Source/modules/bluetooth/Bluetooth.cpp
|
| @@ -0,0 +1,24 @@
|
| +// Copyright 2015 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.
|
| +
|
| +#include "config.h"
|
| +#include "modules/bluetooth/Bluetooth.h"
|
| +
|
| +#include "bindings/core/v8/ScriptPromise.h"
|
| +
|
| +namespace blink {
|
| +
|
| +ScriptPromise Bluetooth::requestDevice(ScriptState* s)
|
| +{
|
| + return bluetoothDiscovery()->requestDevice(s);
|
| +}
|
| +
|
| +BluetoothDiscovery* Bluetooth::bluetoothDiscovery()
|
| +{
|
| + if (!m_bluetoothDiscovery)
|
| + m_bluetoothDiscovery = new BluetoothDiscovery;
|
| + return m_bluetoothDiscovery.get();
|
| +}
|
| +
|
| +}; // blink
|
|
|