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

Side by Side Diff: third_party/WebKit/public/platform/modules/bluetooth/WebBluetoothDeviceInit.h

Issue 2456613002: Remove BluetoothDevice.uuids attribute from WebBluetooth (Closed)
Patch Set: address more comments Created 4 years, 1 month 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
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 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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698