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

Unified Diff: device/bluetooth/bluetooth_adapter_mac.h

Issue 2924753002: Allow device/bluetooth to build on the macOS 10.13 SDK (Closed)
Patch Set: Use new enum values in tests too Created 3 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
« no previous file with comments | « no previous file | device/bluetooth/bluetooth_adapter_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_adapter_mac.h
diff --git a/device/bluetooth/bluetooth_adapter_mac.h b/device/bluetooth/bluetooth_adapter_mac.h
index fb832c862bd3adf69d9cc4647ff9285f4e226ca5..52b1634a364c2f9f31542252b16a20dfe04a433c 100644
--- a/device/bluetooth/bluetooth_adapter_mac.h
+++ b/device/bluetooth/bluetooth_adapter_mac.h
@@ -29,6 +29,25 @@
@class NSArray;
@class NSDate;
+#if !defined(MAC_OS_X_VERSION_10_13)
+
+// The 10.13 SDK deprecates the CBCentralManagerState enum. When building
+// against older SDKs, define the new enum in terms of the deprecated one.
+using CBManagerState = CBCentralManagerState;
+constexpr CBManagerState CBManagerStateUnknown = CBCentralManagerStateUnknown;
+constexpr CBManagerState CBManagerStateResetting =
+ CBCentralManagerStateResetting;
+constexpr CBManagerState CBManagerStateUnsupported =
+ CBCentralManagerStateUnsupported;
+constexpr CBManagerState CBManagerStateUnauthorized =
+ CBCentralManagerStateUnauthorized;
+constexpr CBManagerState CBManagerStatePoweredOff =
+ CBCentralManagerStatePoweredOff;
+constexpr CBManagerState CBManagerStatePoweredOn =
+ CBCentralManagerStatePoweredOn;
+
+#endif // MAC_OS_X_VERSION_10_13
+
namespace base {
class SequencedTaskRunner;
« no previous file with comments | « no previous file | device/bluetooth/bluetooth_adapter_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698