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

Side by Side Diff: public/platform/WebBluetooth.h

Issue 1059793002: bluetooth: Move Bluetooth-related Blink API headers into their own directory. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: bluetooth: Move Bluetooth-related Blink API headers into their own directory. 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 unified diff | Download patch
« no previous file with comments | « Source/modules/bluetooth/BluetoothError.cpp ('k') | public/platform/WebBluetoothDevice.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // TODO(ortuno): Will be removed in https://crrev.com/1060643002
6 #define WebBluetooth_h 6 #include "public/platform/modules/bluetooth/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
OLDNEW
« no previous file with comments | « Source/modules/bluetooth/BluetoothError.cpp ('k') | public/platform/WebBluetoothDevice.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698