Chromium Code Reviews| Index: Source/modules/bluetooth/BluetoothGATTRemoteServer.cpp |
| diff --git a/Source/modules/bluetooth/BluetoothGATTRemoteServer.cpp b/Source/modules/bluetooth/BluetoothGATTRemoteServer.cpp |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..66dac13703efcb50e4df94e39a1ca173d4d0e542 |
| --- /dev/null |
| +++ b/Source/modules/bluetooth/BluetoothGATTRemoteServer.cpp |
| @@ -0,0 +1,35 @@ |
| +// 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/BluetoothGATTRemoteServer.h" |
| + |
| +#include "public/platform/modules/bluetooth/WebBluetoothGATTRemoteServer.h" |
| +#include "wtf/OwnPtr.h" |
| + |
| +namespace blink { |
| + |
| +BluetoothGATTRemoteServer::BluetoothGATTRemoteServer(const WebBluetoothGATTRemoteServer& webGATT) |
| + : m_webGATT(webGATT) |
| +{ |
| +} |
| + |
| +BluetoothGATTRemoteServer* BluetoothGATTRemoteServer::create(const WebBluetoothGATTRemoteServer& webGATT) |
|
scheib
2015/04/21 17:57:29
You're patterning after my code, and so this is my
ortuno
2015/04/21 19:54:07
Done.
|
| +{ |
| + return new BluetoothGATTRemoteServer(webGATT); |
| +} |
| + |
| +BluetoothGATTRemoteServer* BluetoothGATTRemoteServer::take(ScriptPromiseResolver*, WebBluetoothGATTRemoteServer* webGATTRawPointer) |
| +{ |
| + OwnPtr<WebBluetoothGATTRemoteServer> webGATT = adoptPtr(webGATTRawPointer); |
| + return BluetoothGATTRemoteServer::create(*webGATT); |
| +} |
| + |
| +void BluetoothGATTRemoteServer::dispose(WebBluetoothGATTRemoteServer* webGATTRaw) |
| +{ |
| + delete webGATTRaw; |
| +} |
| + |
| + |
| +} // namespace blink |