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

Unified 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: Created 5 years, 9 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/WebBluetoothDevice.h
diff --git a/public/platform/WebBluetoothDevice.h b/public/platform/WebBluetoothDevice.h
index adbff14bb72d6f8e614d8abcfee746ff90289405..714b9d1fe4ea960c0428be9ff604596307cbad27 100644
--- a/public/platform/WebBluetoothDevice.h
+++ b/public/platform/WebBluetoothDevice.h
@@ -2,58 +2,4 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef WebBluetoothDevice_h
-#define WebBluetoothDevice_h
-
-#include "WebString.h"
-#include "WebVector.h"
-
-namespace blink {
-
-// Information describing a Bluetooth device provided by the platform.
-struct WebBluetoothDevice {
- enum class VendorIDSource {
- Unknown,
- Bluetooth,
- USB
- };
-
- WebBluetoothDevice(const WebString& instanceID,
- const WebString& name,
- int32_t deviceClass,
- VendorIDSource vendorIDSource,
- uint16_t vendorID,
- uint16_t productID,
- uint16_t productVersion,
- bool paired,
- bool connected,
- const WebVector<WebString>& uuids)
- : instanceID(instanceID)
- , name(name)
- , deviceClass(deviceClass)
- , vendorIDSource(vendorIDSource)
- , vendorID(vendorID)
- , productID(productID)
- , productVersion(productVersion)
- , paired(paired)
- , connected(connected)
- , uuids(uuids)
- {
- }
-
- // Members corresponding to BluetoothDevice attributes as specified in IDL.
- const WebString instanceID;
- const WebString name;
- const int32_t deviceClass;
- const VendorIDSource vendorIDSource;
- const uint16_t vendorID;
- const uint16_t productID;
- const uint16_t productVersion;
- const bool paired;
- const bool connected;
- const WebVector<WebString> uuids;
-};
-
-} // namespace blink
-
-#endif // WebBluetoothDevice_h
+#include "public/platform/modules/bluetooth/WebBluetoothDevice.h"
scheib 2015/04/13 17:46:34 ditto

Powered by Google App Engine
This is Rietveld 408576698