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

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

Issue 1415533006: bluetooth: Implement requestDevice by name or name prefix (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-characteristic-properties
Patch Set: Merge with ToT and fix histograms conflict Created 5 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 WebRequestDeviceOptions_h 5 #ifndef WebRequestDeviceOptions_h
6 #define WebRequestDeviceOptions_h 6 #define WebRequestDeviceOptions_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 // Contains members corresponding to BluetoothScanFilter members as 13 // Contains members corresponding to BluetoothScanFilter members as
14 // specified in the IDL. 14 // specified in the IDL.
15 struct WebBluetoothScanFilter { 15 struct WebBluetoothScanFilter {
16 WebBluetoothScanFilter() { } 16 WebBluetoothScanFilter() { }
17 WebBluetoothScanFilter(const WebVector<WebString>& services)
18 : services(services)
19 {
20 }
21 17
22 WebVector<WebString> services; 18 WebVector<WebString> services;
19 WebString name;
20 WebString namePrefix;
23 }; 21 };
24 22
25 // Contains members corresponding to RequestDeviceOptions members as 23 // Contains members corresponding to RequestDeviceOptions members as
26 // specified in the IDL. 24 // specified in the IDL.
27 struct WebRequestDeviceOptions { 25 struct WebRequestDeviceOptions {
28 WebRequestDeviceOptions() { } 26 WebRequestDeviceOptions() { }
29 27
30 WebVector<WebBluetoothScanFilter> filters; 28 WebVector<WebBluetoothScanFilter> filters;
31 WebVector<WebString> optionalServices; 29 WebVector<WebString> optionalServices;
32 }; 30 };
33 31
34 } // namespace blink 32 } // namespace blink
35 33
36 #endif // WebRequestDeviceOptions_h 34 #endif // WebRequestDeviceOptions_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/bluetooth/BluetoothScanFilter.idl ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698