Upstream version 11.40.271.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / public / platform / WebBluetooth.h
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef WebBluetooth_h
6 #define WebBluetooth_h
7
8 #include "public/platform/WebCallbacks.h"
9
10 namespace blink {
11
12 struct WebBluetoothError;
13
14 // FIXME: Return a WebBluetoothDevice http://crbug.com/420284
15 typedef WebCallbacks<void, WebBluetoothError> WebBluetoothRequestDeviceCallbacks;
16
17 class WebBluetooth {
18 public:
19     virtual ~WebBluetooth() { }
20
21     // Requests a bluetooth device.
22     // WebBluetoothRequestDeviceCallbacks ownership transferred to the client.
23     virtual void requestDevice(WebBluetoothRequestDeviceCallbacks*) = 0;
24 };
25
26 } // namespace blink
27
28 #endif // WebBluetooth_h