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

Unified Diff: public/platform/modules/bluetooth/WebRequestDeviceOptions.h

Issue 1182973002: Implement the Blink side of RequestDeviceOptions. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@pinned
Patch Set: Prepare readValue.html for a mock data change Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: public/platform/modules/bluetooth/WebRequestDeviceOptions.h
diff --git a/public/platform/modules/bluetooth/WebRequestDeviceOptions.h b/public/platform/modules/bluetooth/WebRequestDeviceOptions.h
new file mode 100644
index 0000000000000000000000000000000000000000..5186f45f15865efa312a1cfbe0b10d4eba7635e8
--- /dev/null
+++ b/public/platform/modules/bluetooth/WebRequestDeviceOptions.h
@@ -0,0 +1,36 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WebRequestDeviceOptions_h
+#define WebRequestDeviceOptions_h
+
+#include "public/platform/WebString.h"
+#include "public/platform/WebVector.h"
+
+namespace blink {
+
+// Contains members corresponding to BluetoothScanFilter members as
+// specified in the IDL.
+struct WebBluetoothScanFilter {
+ WebBluetoothScanFilter() { }
+ WebBluetoothScanFilter(const WebVector<WebString>& services)
+ : services(services)
+ {
+ }
+
+ WebVector<WebString> services;
+};
+
+// Contains members corresponding to RequestDeviceOptions members as
+// specified in the IDL.
+struct WebRequestDeviceOptions {
+ WebRequestDeviceOptions() { }
+
+ WebVector<WebBluetoothScanFilter> filters;
+ WebVector<WebString> optionalServices;
+};
+
+} // namespace blink
+
+#endif // WebRequestDeviceOptions_h

Powered by Google App Engine
This is Rietveld 408576698