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

Unified Diff: public/platform/WebBluetooth.h

Issue 650613005: bluetooth: Initial WebBluetooth & WebBluetoothError. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Abandoned initial approach implementing BluetoothMock in Blink. Created 6 years, 2 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: public/platform/WebBluetooth.h
diff --git a/public/platform/WebBluetooth.h b/public/platform/WebBluetooth.h
new file mode 100644
index 0000000000000000000000000000000000000000..f7b65a5296515a44996880f5a13564de01706510
--- /dev/null
+++ b/public/platform/WebBluetooth.h
@@ -0,0 +1,28 @@
+// 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 WebBluetooth_h
+#define WebBluetooth_h
+
+#include "public/platform/WebCallbacks.h"
+
+namespace blink {
+
+struct WebBluetoothError;
+
+// FIXME: Return a WebBluetoothDevice http://crbug.com/420284
+typedef WebCallbacks<void, WebBluetoothError> WebBluetoothRequestDeviceCallbacks;
+
+class WebBluetooth {
+public:
+ virtual ~WebBluetooth() { }
+
+ // Requests a bluetooth device.
+ // WebBluetoothRequestDeviceCallbacks ownership transferred to the client.
+ virtual void requestDevice(WebBluetoothRequestDeviceCallbacks*) = 0;
+};
+
+} // namespace blink
+
+#endif // WebBluetooth_h

Powered by Google App Engine
This is Rietveld 408576698