| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // This file contains forward declarations for items in later SDKs than the | 5 // This file contains forward declarations for items in later SDKs than the |
| 6 // default one with which Chromium is built (currently 10.10). | 6 // default one with which Chromium is built (currently 10.10). |
| 7 // If you call any function from this header, be sure to check at runtime for | 7 // If you call any function from this header, be sure to check at runtime for |
| 8 // respondsToSelector: before calling these functions (else your code will crash | 8 // respondsToSelector: before calling these functions (else your code will crash |
| 9 // on older OS X versions that chrome still supports). | 9 // on older OS X versions that chrome still supports). |
| 10 | 10 |
| 11 #ifndef BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ | 11 #ifndef BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ |
| 12 #define BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ | 12 #define BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ |
| 13 | 13 |
| 14 #import <AppKit/AppKit.h> | 14 #import <AppKit/AppKit.h> |
| 15 #import <CoreBluetooth/CoreBluetooth.h> | 15 #import <CoreBluetooth/CoreBluetooth.h> |
| 16 #import <CoreWLAN/CoreWLAN.h> | 16 #import <CoreWLAN/CoreWLAN.h> |
| 17 #import <IOBluetooth/IOBluetooth.h> |
| 17 #import <ImageCaptureCore/ImageCaptureCore.h> | 18 #import <ImageCaptureCore/ImageCaptureCore.h> |
| 18 #import <IOBluetooth/IOBluetooth.h> | 19 #import <QuartzCore/QuartzCore.h> |
| 19 #include <stdint.h> | 20 #include <stdint.h> |
| 20 | 21 |
| 21 #include "base/base_export.h" | 22 #include "base/base_export.h" |
| 22 | 23 |
| 23 // ---------------------------------------------------------------------------- | 24 // ---------------------------------------------------------------------------- |
| 24 // Define typedefs, enums, and protocols not available in the version of the | 25 // Define typedefs, enums, and protocols not available in the version of the |
| 25 // OSX SDK being compiled against. | 26 // OSX SDK being compiled against. |
| 26 // ---------------------------------------------------------------------------- | 27 // ---------------------------------------------------------------------------- |
| 27 | 28 |
| 28 #if !defined(MAC_OS_X_VERSION_10_11) || \ | 29 #if !defined(MAC_OS_X_VERSION_10_11) || \ |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 @interface NSLayoutConstraint (YosemiteSDK) | 123 @interface NSLayoutConstraint (YosemiteSDK) |
| 123 @property(getter=isActive) BOOL active; | 124 @property(getter=isActive) BOOL active; |
| 124 @end | 125 @end |
| 125 | 126 |
| 126 @interface NSVisualEffectView (YosemiteSDK) | 127 @interface NSVisualEffectView (YosemiteSDK) |
| 127 - (void)setState:(NSVisualEffectState)state; | 128 - (void)setState:(NSVisualEffectState)state; |
| 128 @end | 129 @end |
| 129 | 130 |
| 130 @class NSVisualEffectView; | 131 @class NSVisualEffectView; |
| 131 | 132 |
| 133 @interface CIQRCodeFeature (YosemiteSDK) |
| 134 @property(readonly, assign) CGRect bounds; |
| 135 @property(readonly, assign) CGPoint topLeft; |
| 136 @property(readonly, assign) CGPoint topRight; |
| 137 @property(readonly, assign) CGPoint bottomLeft; |
| 138 @property(readonly, assign) CGPoint bottomRight; |
| 139 @property(readonly, copy) NSString* messageString; |
| 140 @end |
| 141 |
| 132 #endif // MAC_OS_X_VERSION_10_10 | 142 #endif // MAC_OS_X_VERSION_10_10 |
| 133 | 143 |
| 134 // Once Chrome no longer supports OSX 10.10.2, everything within this | 144 // Once Chrome no longer supports OSX 10.10.2, everything within this |
| 135 // preprocessor block can be removed. | 145 // preprocessor block can be removed. |
| 136 #if !defined(MAC_OS_X_VERSION_10_10_3) || \ | 146 #if !defined(MAC_OS_X_VERSION_10_10_3) || \ |
| 137 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_10_3 | 147 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_10_3 |
| 138 | 148 |
| 139 @interface NSEvent (YosemiteSDK) | 149 @interface NSEvent (YosemiteSDK) |
| 140 @property(readonly) NSInteger stage; | 150 @property(readonly) NSInteger stage; |
| 141 @end | 151 @end |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 | 203 |
| 194 // ---------------------------------------------------------------------------- | 204 // ---------------------------------------------------------------------------- |
| 195 // The symbol for kCWSSIDDidChangeNotification is available in the | 205 // The symbol for kCWSSIDDidChangeNotification is available in the |
| 196 // CoreWLAN.framework for OSX versions 10.6 through 10.10. The symbol is not | 206 // CoreWLAN.framework for OSX versions 10.6 through 10.10. The symbol is not |
| 197 // declared in the OSX 10.9+ SDK, so when compiling against an OSX 10.9+ SDK, | 207 // declared in the OSX 10.9+ SDK, so when compiling against an OSX 10.9+ SDK, |
| 198 // declare the symbol. | 208 // declare the symbol. |
| 199 // ---------------------------------------------------------------------------- | 209 // ---------------------------------------------------------------------------- |
| 200 BASE_EXPORT extern "C" NSString* const kCWSSIDDidChangeNotification; | 210 BASE_EXPORT extern "C" NSString* const kCWSSIDDidChangeNotification; |
| 201 | 211 |
| 202 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ | 212 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ |
| OLD | NEW |