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

Side by Side Diff: public/platform/WebBluetoothDevice.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 | « public/platform/WebBluetooth.h ('k') | public/platform/WebBluetoothError.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 WebBluetoothDevice_h 5 // TODO(ortuno): Will be removed in https://crrev.com/1060643002
6 #define WebBluetoothDevice_h 6 #include "public/platform/modules/bluetooth/WebBluetoothDevice.h"
7
8 #include "WebString.h"
9 #include "WebVector.h"
10
11 namespace blink {
12
13 // Information describing a Bluetooth device provided by the platform.
14 struct WebBluetoothDevice {
15 enum class VendorIDSource {
16 Unknown,
17 Bluetooth,
18 USB
19 };
20
21 WebBluetoothDevice(const WebString& instanceID,
22 const WebString& name,
23 int32_t deviceClass,
24 VendorIDSource vendorIDSource,
25 uint16_t vendorID,
26 uint16_t productID,
27 uint16_t productVersion,
28 bool paired,
29 bool connected,
30 const WebVector<WebString>& uuids)
31 : instanceID(instanceID)
32 , name(name)
33 , deviceClass(deviceClass)
34 , vendorIDSource(vendorIDSource)
35 , vendorID(vendorID)
36 , productID(productID)
37 , productVersion(productVersion)
38 , paired(paired)
39 , connected(connected)
40 , uuids(uuids)
41 {
42 }
43
44 // Members corresponding to BluetoothDevice attributes as specified in IDL.
45 const WebString instanceID;
46 const WebString name;
47 const int32_t deviceClass;
48 const VendorIDSource vendorIDSource;
49 const uint16_t vendorID;
50 const uint16_t productID;
51 const uint16_t productVersion;
52 const bool paired;
53 const bool connected;
54 const WebVector<WebString> uuids;
55 };
56
57 } // namespace blink
58
59 #endif // WebBluetoothDevice_h
OLDNEW
« no previous file with comments | « public/platform/WebBluetooth.h ('k') | public/platform/WebBluetoothError.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698