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 WebBluetoothDeviceInit_h | 5 #ifndef WebBluetoothDeviceInit_h |
6 #define WebBluetoothDeviceInit_h | 6 #define WebBluetoothDeviceInit_h |
7 | 7 |
8 #include "public/platform/WebString.h" | 8 #include "public/platform/WebString.h" |
9 #include "public/platform/WebVector.h" | 9 #include "public/platform/WebVector.h" |
10 | 10 |
11 namespace blink { | 11 namespace blink { |
12 | 12 |
13 // Information provided by the platform to initialize BluetoothDevice objects | 13 // Information provided by the platform to initialize BluetoothDevice objects |
14 // with attributes as specified in BluetoothDevice.idl. | 14 // with attributes as specified in BluetoothDevice.idl. |
15 struct WebBluetoothDeviceInit { | 15 struct WebBluetoothDeviceInit { |
16 WebBluetoothDeviceInit(const WebString& id, | 16 WebBluetoothDeviceInit(const WebString& id, const WebString& name) |
17 const WebString& name, | 17 : id(id), name(name) {} |
18 const WebVector<WebString>& uuids) | |
19 : id(id), name(name), uuids(uuids) {} | |
20 | 18 |
21 // Members corresponding to BluetoothDevice attributes as specified in IDL. | 19 // Members corresponding to BluetoothDevice attributes as specified in IDL. |
22 const WebString id; | 20 const WebString id; |
23 const WebString name; | 21 const WebString name; |
24 const WebVector<WebString> uuids; | |
25 }; | 22 }; |
26 | 23 |
27 } // namespace blink | 24 } // namespace blink |
28 | 25 |
29 #endif // WebBluetoothDeviceInit_h | 26 #endif // WebBluetoothDeviceInit_h |
OLD | NEW |