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 |