Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1219)

Unified Diff: Source/modules/bluetooth/BluetoothGATTRemoteServer.cpp

Issue 1060593004: bluetooth: connectGATT and receive WebBluetoothGATTRemoteServer from embedder. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Web Exposed test changed Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..994af71eaa41d426dd3fa97196b48d167569e1b6
--- /dev/null
+++ b/Source/modules/bluetooth/BluetoothGATTRemoteServer.cpp
@@ -0,0 +1,30 @@
+// 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::take(ScriptPromiseResolver*, WebBluetoothGATTRemoteServer* webGATTRawPointer)
+{
+ OwnPtr<WebBluetoothGATTRemoteServer> webGATT = adoptPtr(webGATTRawPointer);
+ return new BluetoothGATTRemoteServer(*webGATT);
+}
+
+void BluetoothGATTRemoteServer::dispose(WebBluetoothGATTRemoteServer* webGATTRaw)
+{
+ delete webGATTRaw;
+}
+
+
+} // namespace blink
« no previous file with comments | « Source/modules/bluetooth/BluetoothGATTRemoteServer.h ('k') | Source/modules/bluetooth/BluetoothGATTRemoteServer.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698