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

Unified Diff: device/bluetooth/bluetooth_types.h

Issue 2063353002: device/bluetooth: split out transport enum (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: renaming header, moving TransportMask back into filter Created 4 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: device/bluetooth/bluetooth_types.h
diff --git a/device/bluetooth/bluetooth_types.h b/device/bluetooth/bluetooth_types.h
new file mode 100644
index 0000000000000000000000000000000000000000..8c315f670bbccafb259f3ee41c1bcae5ba928e0d
--- /dev/null
+++ b/device/bluetooth/bluetooth_types.h
@@ -0,0 +1,22 @@
+// Copyright 2016 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 DEVICE_BLUETOOTH_BLUETOOTH_TYPES_H_
ortuno 2016/06/15 18:12:27 optional: IMHO bluetooth_common.h would be better.
+#define DEVICE_BLUETOOTH_BLUETOOTH_TYPES_H_
+
+#include "device/bluetooth/bluetooth_export.h"
+
+namespace device {
+
ortuno 2016/06/15 18:12:27 Add a comment about what goes in this file.
+enum DEVICE_BLUETOOTH_EXPORT BluetoothTransport {
ortuno 2016/06/15 18:12:27 Make this an enum class and remove the TRANSPORT p
+ TRANSPORT_INVALID = 0x00,
+ // Valid transports are given as a bitset.
+ TRANSPORT_CLASSIC = 0x01,
+ TRANSPORT_LE = 0x02,
+ TRANSPORT_DUAL = (TRANSPORT_CLASSIC | TRANSPORT_LE)
+};
+
+} // namespace device
+
+#endif // DEVICE_BLUETOOTH_BLUETOOTH_TYPES_H_

Powered by Google App Engine
This is Rietveld 408576698