Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WebBluetooth_h | 5 #include "public/platform/modules/bluetooth/WebBluetooth.h" |
|
scheib
2015/04/13 17:46:34
Leave a // TODO(ortuno): Will be removed in https:
| |
| 6 #define WebBluetooth_h | |
| 7 | |
| 8 #include "public/platform/WebCallbacks.h" | |
| 9 | |
| 10 namespace blink { | |
| 11 | |
| 12 struct WebBluetoothDevice; | |
| 13 struct WebBluetoothError; | |
| 14 | |
| 15 // Success and failure callbacks for requestDevice. | |
| 16 // WebBluetoothDevice and WebBluetoothError object ownership is transfered. | |
| 17 typedef WebCallbacks<WebBluetoothDevice, WebBluetoothError> WebBluetoothRequestD eviceCallbacks; | |
| 18 | |
| 19 class WebBluetooth { | |
| 20 public: | |
| 21 virtual ~WebBluetooth() { } | |
| 22 | |
| 23 // Requests a bluetooth device. | |
| 24 // WebBluetoothRequestDeviceCallbacks ownership transferred to the client. | |
| 25 virtual void requestDevice(WebBluetoothRequestDeviceCallbacks*) = 0; | |
| 26 }; | |
| 27 | |
| 28 } // namespace blink | |
| 29 | |
| 30 #endif // WebBluetooth_h | |
| OLD | NEW |