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.6). | 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 <CoreWLAN/CoreWLAN.h> | 15 #import <CoreWLAN/CoreWLAN.h> |
16 #import <ImageCaptureCore/ImageCaptureCore.h> | 16 #import <ImageCaptureCore/ImageCaptureCore.h> |
17 #import <IOBluetooth/IOBluetooth.h> | 17 #import <IOBluetooth/IOBluetooth.h> |
18 #include <stdint.h> | 18 #include <stdint.h> |
19 | 19 |
20 #include "base/base_export.h" | 20 #include "base/base_export.h" |
21 | 21 |
22 // ---------------------------------------------------------------------------- | 22 // ---------------------------------------------------------------------------- |
23 // Either define or forward declare classes only available in OSX 10.7+. | |
24 // ---------------------------------------------------------------------------- | |
25 | |
26 #if !defined(MAC_OS_X_VERSION_10_7) || \ | |
27 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7 | |
28 | |
29 @interface CWChannel : NSObject | |
30 @end | |
31 | |
32 @interface CBPeripheral : NSObject | |
33 @end | |
34 | |
35 @interface CBCentralManager : NSObject | |
36 @end | |
37 | |
38 @interface CBUUID : NSObject | |
39 @end | |
40 | |
41 #else | |
42 | |
43 @class CWChannel; | |
44 @class CBPeripheral; | |
45 @class CBCentralManager; | |
46 @class CBUUID; | |
47 | |
48 #endif // MAC_OS_X_VERSION_10_7 | |
49 | |
50 #if !defined(MAC_OS_X_VERSION_10_8) || \ | |
51 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_8 | |
52 | |
53 @interface NSUUID : NSObject | |
54 @end | |
55 | |
56 #else | |
57 | |
58 @class NSUUID; | |
59 | |
60 #endif // MAC_OS_X_VERSION_10_8 | |
61 | |
62 #if !defined(MAC_OS_X_VERSION_10_9) || \ | |
63 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_9 | |
64 | |
65 // NSProgress is public API in 10.9, but a version of it exists and is usable | |
66 // in 10.8. | |
67 @interface NSProgress : NSObject | |
68 @end | |
69 | |
70 @interface NSAppearance : NSObject | |
71 @end | |
72 | |
73 #else | |
74 | |
75 @class NSProgress; | |
76 @class NSAppearance; | |
77 | |
78 #endif // MAC_OS_X_VERSION_10_9 | |
79 | |
80 #if !defined(MAC_OS_X_VERSION_10_10) || \ | |
81 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_10 | |
82 | |
83 @interface NSUserActivity : NSObject | |
84 @end | |
85 | |
86 #else | |
87 | |
88 @class NSUserActivity; | |
89 | |
90 #endif // MAC_OS_X_VERSION_10_10 | |
91 | |
92 // ---------------------------------------------------------------------------- | |
93 // Define typedefs, enums, and protocols not available in the version of the | 23 // Define typedefs, enums, and protocols not available in the version of the |
94 // OSX SDK being compiled against. | 24 // OSX SDK being compiled against. |
95 // ---------------------------------------------------------------------------- | 25 // ---------------------------------------------------------------------------- |
96 | 26 |
97 #if !defined(MAC_OS_X_VERSION_10_7) || \ | |
98 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7 | |
99 | |
100 enum { | |
101 NSEventPhaseNone = 0, // event not associated with a phase. | |
102 NSEventPhaseBegan = 0x1 << 0, | |
103 NSEventPhaseStationary = 0x1 << 1, | |
104 NSEventPhaseChanged = 0x1 << 2, | |
105 NSEventPhaseEnded = 0x1 << 3, | |
106 NSEventPhaseCancelled = 0x1 << 4 | |
107 }; | |
108 typedef NSUInteger NSEventPhase; | |
109 | |
110 enum { | |
111 NSFullScreenWindowMask = 1 << 14, | |
112 }; | |
113 | |
114 enum { | |
115 NSApplicationPresentationFullScreen = 1 << 10, | |
116 }; | |
117 | |
118 enum { | |
119 NSWindowCollectionBehaviorFullScreenPrimary = 1 << 7, | |
120 NSWindowCollectionBehaviorFullScreenAuxiliary = 1 << 8, | |
121 }; | |
122 | |
123 enum { | |
124 NSEventSwipeTrackingLockDirection = 0x1 << 0, | |
125 NSEventSwipeTrackingClampGestureAmount = 0x1 << 1, | |
126 }; | |
127 typedef NSUInteger NSEventSwipeTrackingOptions; | |
128 | |
129 enum { | |
130 NSWindowAnimationBehaviorDefault = 0, | |
131 NSWindowAnimationBehaviorNone = 2, | |
132 NSWindowAnimationBehaviorDocumentWindow = 3, | |
133 NSWindowAnimationBehaviorUtilityWindow = 4, | |
134 NSWindowAnimationBehaviorAlertPanel = 5 | |
135 }; | |
136 typedef NSInteger NSWindowAnimationBehavior; | |
137 | |
138 enum { | |
139 NSWindowDocumentVersionsButton = 6, | |
140 NSWindowFullScreenButton, | |
141 }; | |
142 typedef NSUInteger NSWindowButton; | |
143 | |
144 enum CWChannelBand { | |
145 kCWChannelBandUnknown = 0, | |
146 kCWChannelBand2GHz = 1, | |
147 kCWChannelBand5GHz = 2, | |
148 }; | |
149 | |
150 enum { | |
151 kCWSecurityNone = 0, | |
152 kCWSecurityWEP = 1, | |
153 kCWSecurityWPAPersonal = 2, | |
154 kCWSecurityWPAPersonalMixed = 3, | |
155 kCWSecurityWPA2Personal = 4, | |
156 kCWSecurityPersonal = 5, | |
157 kCWSecurityDynamicWEP = 6, | |
158 kCWSecurityWPAEnterprise = 7, | |
159 kCWSecurityWPAEnterpriseMixed = 8, | |
160 kCWSecurityWPA2Enterprise = 9, | |
161 kCWSecurityEnterprise = 10, | |
162 kCWSecurityUnknown = NSIntegerMax, | |
163 }; | |
164 | |
165 typedef NSInteger CWSecurity; | |
166 | |
167 enum { | |
168 kBluetoothFeatureLESupportedController = (1 << 6L), | |
169 }; | |
170 | |
171 @protocol IOBluetoothDeviceInquiryDelegate | |
172 - (void)deviceInquiryStarted:(IOBluetoothDeviceInquiry*)sender; | |
173 - (void)deviceInquiryDeviceFound:(IOBluetoothDeviceInquiry*)sender | |
174 device:(IOBluetoothDevice*)device; | |
175 - (void)deviceInquiryComplete:(IOBluetoothDeviceInquiry*)sender | |
176 error:(IOReturn)error | |
177 aborted:(BOOL)aborted; | |
178 @end | |
179 | |
180 enum { | |
181 CBPeripheralStateDisconnected = 0, | |
182 CBPeripheralStateConnecting, | |
183 CBPeripheralStateConnected, | |
184 }; | |
185 typedef NSInteger CBPeripheralState; | |
186 | |
187 enum { | |
188 CBCentralManagerStateUnknown = 0, | |
189 CBCentralManagerStateResetting, | |
190 CBCentralManagerStateUnsupported, | |
191 CBCentralManagerStateUnauthorized, | |
192 CBCentralManagerStatePoweredOff, | |
193 CBCentralManagerStatePoweredOn, | |
194 }; | |
195 typedef NSInteger CBCentralManagerState; | |
196 | |
197 @protocol CBCentralManagerDelegate; | |
198 | |
199 @protocol CBCentralManagerDelegate<NSObject> | |
200 - (void)centralManagerDidUpdateState:(CBCentralManager*)central; | |
201 - (void)centralManager:(CBCentralManager*)central | |
202 didDiscoverPeripheral:(CBPeripheral*)peripheral | |
203 advertisementData:(NSDictionary*)advertisementData | |
204 RSSI:(NSNumber*)RSSI; | |
205 @end | |
206 | |
207 #endif // MAC_OS_X_VERSION_10_7 | |
208 | |
209 #if !defined(MAC_OS_X_VERSION_10_8) || \ | |
210 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_8 | |
211 | |
212 enum { NSEventPhaseMayBegin = 0x1 << 5 }; | |
213 | |
214 #endif // MAC_OS_X_VERSION_10_8 | |
215 | |
216 #if !defined(MAC_OS_X_VERSION_10_9) || \ | |
217 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_9 | |
218 | |
219 enum { | |
220 NSWindowOcclusionStateVisible = 1UL << 1, | |
221 }; | |
222 typedef NSUInteger NSWindowOcclusionState; | |
223 | |
224 enum { NSWorkspaceLaunchWithErrorPresentation = 0x00000040 }; | |
225 | |
226 #endif // MAC_OS_X_VERSION_10_9 | |
227 | |
228 #if !defined(MAC_OS_X_VERSION_10_11) || \ | 27 #if !defined(MAC_OS_X_VERSION_10_11) || \ |
229 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_11 | 28 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_11 |
230 | 29 |
231 enum { | 30 enum { |
232 NSPressureBehaviorUnknown = -1, | 31 NSPressureBehaviorUnknown = -1, |
233 NSPressureBehaviorPrimaryDefault = 0, | 32 NSPressureBehaviorPrimaryDefault = 0, |
234 NSPressureBehaviorPrimaryClick = 1, | 33 NSPressureBehaviorPrimaryClick = 1, |
235 NSPressureBehaviorPrimaryGeneric = 2, | 34 NSPressureBehaviorPrimaryGeneric = 2, |
236 NSPressureBehaviorPrimaryAccelerator = 3, | 35 NSPressureBehaviorPrimaryAccelerator = 3, |
237 NSPressureBehaviorPrimaryDeepClick = 5, | 36 NSPressureBehaviorPrimaryDeepClick = 5, |
238 NSPressureBehaviorPrimaryDeepDrag = 6 | 37 NSPressureBehaviorPrimaryDeepDrag = 6 |
239 }; | 38 }; |
240 typedef NSInteger NSPressureBehavior; | 39 typedef NSInteger NSPressureBehavior; |
241 | 40 |
242 @interface NSPressureConfiguration : NSObject | 41 @interface NSPressureConfiguration : NSObject |
243 - (instancetype)initWithPressureBehavior:(NSPressureBehavior)pressureBehavior; | 42 - (instancetype)initWithPressureBehavior:(NSPressureBehavior)pressureBehavior; |
244 @end | 43 @end |
245 | 44 |
246 #endif // MAC_OS_X_VERSION_10_11 | 45 #endif // MAC_OS_X_VERSION_10_11 |
247 | 46 |
248 // ---------------------------------------------------------------------------- | 47 // ---------------------------------------------------------------------------- |
249 // Define NSStrings only available in newer versions of the OSX SDK to force | 48 // Define NSStrings only available in newer versions of the OSX SDK to force |
250 // them to be statically linked. | 49 // them to be statically linked. |
251 // ---------------------------------------------------------------------------- | 50 // ---------------------------------------------------------------------------- |
252 | 51 |
253 extern "C" { | 52 extern "C" { |
254 #if !defined(MAC_OS_X_VERSION_10_7) || \ | |
255 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_7 | |
256 BASE_EXPORT extern NSString* const NSWindowWillEnterFullScreenNotification; | |
257 BASE_EXPORT extern NSString* const NSWindowWillExitFullScreenNotification; | |
258 BASE_EXPORT extern NSString* const NSWindowDidEnterFullScreenNotification; | |
259 BASE_EXPORT extern NSString* const NSWindowDidExitFullScreenNotification; | |
260 BASE_EXPORT extern NSString* const | |
261 NSWindowDidChangeBackingPropertiesNotification; | |
262 BASE_EXPORT extern NSString* const CBAdvertisementDataServiceDataKey; | |
263 BASE_EXPORT extern NSString* const CBAdvertisementDataServiceUUIDsKey; | |
264 #endif // MAC_OS_X_VERSION_10_7 | |
265 | |
266 #if !defined(MAC_OS_X_VERSION_10_9) || \ | 53 #if !defined(MAC_OS_X_VERSION_10_9) || \ |
267 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_9 | 54 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_9 |
268 BASE_EXPORT extern NSString* const NSWindowDidChangeOcclusionStateNotification; | 55 BASE_EXPORT extern NSString* const NSWindowDidChangeOcclusionStateNotification; |
269 BASE_EXPORT extern NSString* const CBAdvertisementDataOverflowServiceUUIDsKey; | 56 BASE_EXPORT extern NSString* const CBAdvertisementDataOverflowServiceUUIDsKey; |
270 BASE_EXPORT extern NSString* const CBAdvertisementDataIsConnectable; | 57 BASE_EXPORT extern NSString* const CBAdvertisementDataIsConnectable; |
271 #endif // MAC_OS_X_VERSION_10_9 | 58 #endif // MAC_OS_X_VERSION_10_9 |
272 | 59 |
273 #if !defined(MAC_OS_X_VERSION_10_10) || \ | 60 #if !defined(MAC_OS_X_VERSION_10_10) || \ |
274 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_10 | 61 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_10 |
275 BASE_EXPORT extern NSString* const NSUserActivityTypeBrowsingWeb; | 62 BASE_EXPORT extern NSString* const NSUserActivityTypeBrowsingWeb; |
276 BASE_EXPORT extern NSString* const NSAppearanceNameVibrantDark; | 63 BASE_EXPORT extern NSString* const NSAppearanceNameVibrantDark; |
277 BASE_EXPORT extern NSString* const NSAppearanceNameVibrantLight; | 64 BASE_EXPORT extern NSString* const NSAppearanceNameVibrantLight; |
278 #endif // MAC_OS_X_VERSION_10_10 | 65 #endif // MAC_OS_X_VERSION_10_10 |
279 } // extern "C" | 66 } // extern "C" |
280 | 67 |
281 // ---------------------------------------------------------------------------- | 68 // ---------------------------------------------------------------------------- |
282 // If compiling against an older version of the OSX SDK, declare functions that | 69 // If compiling against an older version of the OSX SDK, declare classes and |
283 // are available in newer versions of the OSX SDK. If compiling against a newer | 70 // functions that are available in newer versions of the OSX SDK. If compiling |
284 // version of the OSX SDK, redeclare those same functions to suppress | 71 // against a newer version of the OSX SDK, redeclare those same classes and |
285 // -Wpartial-availability warnings. | 72 // functions to suppress -Wpartial-availability warnings. |
286 // ---------------------------------------------------------------------------- | 73 // ---------------------------------------------------------------------------- |
287 | 74 |
288 // Once Chrome no longer supports OSX 10.6, everything within this preprocessor | |
289 // block can be removed. | |
290 #if !defined(MAC_OS_X_VERSION_10_7) || \ | |
291 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_7 | |
292 | |
293 @interface NSEvent (LionSDK) | |
294 + (BOOL)isSwipeTrackingFromScrollEventsEnabled; | |
295 - (NSEventPhase)momentumPhase; | |
296 - (NSEventPhase)phase; | |
297 - (BOOL)hasPreciseScrollingDeltas; | |
298 - (CGFloat)scrollingDeltaX; | |
299 - (CGFloat)scrollingDeltaY; | |
300 - (void)trackSwipeEventWithOptions:(NSEventSwipeTrackingOptions)options | |
301 dampenAmountThresholdMin:(CGFloat)minDampenThreshold | |
302 max:(CGFloat)maxDampenThreshold | |
303 usingHandler:(void (^)(CGFloat gestureAmount, | |
304 NSEventPhase phase, | |
305 BOOL isComplete, | |
306 BOOL* stop))trackingHandler; | |
307 - (BOOL)isDirectionInvertedFromDevice; | |
308 @end | |
309 | |
310 @interface NSApplication (LionSDK) | |
311 - (void)disableRelaunchOnLogin; | |
312 @end | |
313 | |
314 @interface CALayer (LionSDK) | |
315 - (CGFloat)contentsScale; | |
316 - (void)setContentsScale:(CGFloat)contentsScale; | |
317 @end | |
318 | |
319 @interface NSScreen (LionSDK) | |
320 - (CGFloat)backingScaleFactor; | |
321 - (NSRect)convertRectToBacking:(NSRect)aRect; | |
322 @end | |
323 | |
324 @interface NSWindow (LionSDK) | |
325 - (CGFloat)backingScaleFactor; | |
326 - (NSWindowAnimationBehavior)animationBehavior; | |
327 - (void)setAnimationBehavior:(NSWindowAnimationBehavior)newAnimationBehavior; | |
328 - (void)toggleFullScreen:(id)sender; | |
329 - (void)setRestorable:(BOOL)flag; | |
330 - (NSRect)convertRectFromScreen:(NSRect)aRect; | |
331 - (NSRect)convertRectToScreen:(NSRect)aRect; | |
332 @end | |
333 | |
334 @interface NSCursor (LionSDKDeclarations) | |
335 + (NSCursor*)IBeamCursorForVerticalLayout; | |
336 @end | |
337 | |
338 @interface NSAnimationContext (LionSDK) | |
339 + (void)runAnimationGroup:(void (^)(NSAnimationContext* context))changes | |
340 completionHandler:(void (^)(void))completionHandler; | |
341 @property(copy) void (^completionHandler)(void); | |
342 @end | |
343 | |
344 @interface NSView (LionSDK) | |
345 - (NSSize)convertSizeFromBacking:(NSSize)size; | |
346 - (void)setWantsBestResolutionOpenGLSurface:(BOOL)flag; | |
347 - (NSDraggingSession*)beginDraggingSessionWithItems:(NSArray*)items | |
348 event:(NSEvent*)event | |
349 source: | |
350 (id<NSDraggingSource>)source; | |
351 @end | |
352 | |
353 @interface NSObject (ICCameraDeviceDelegateLionSDK) | |
354 - (void)deviceDidBecomeReadyWithCompleteContentCatalog:(ICDevice*)device; | |
355 - (void)didDownloadFile:(ICCameraFile*)file | |
356 error:(NSError*)error | |
357 options:(NSDictionary*)options | |
358 contextInfo:(void*)contextInfo; | |
359 @end | |
360 | |
361 @interface CWInterface (LionSDK) | |
362 - (BOOL)associateToNetwork:(CWNetwork*)network | |
363 password:(NSString*)password | |
364 error:(NSError**)error; | |
365 - (NSSet*)scanForNetworksWithName:(NSString*)networkName error:(NSError**)error; | |
366 @end | |
367 | |
368 @interface CWChannel (LionSDK) | |
369 @property(readonly) CWChannelBand channelBand; | |
370 @end | |
371 | |
372 @interface CWNetwork (LionSDK) | |
373 @property(readonly) CWChannel* wlanChannel; | |
374 @property(readonly) NSInteger rssiValue; | |
375 - (BOOL)supportsSecurity:(CWSecurity)security; | |
376 @end | |
377 | |
378 @interface IOBluetoothHostController (LionSDK) | |
379 - (NSString*)nameAsString; | |
380 - (BluetoothHCIPowerState)powerState; | |
381 @end | |
382 | |
383 @interface IOBluetoothL2CAPChannel (LionSDK) | |
384 @property(readonly) BluetoothL2CAPMTU outgoingMTU; | |
385 @end | |
386 | |
387 @interface IOBluetoothDevice (LionSDK) | |
388 - (NSString*)addressString; | |
389 - (unsigned int)classOfDevice; | |
390 - (BluetoothConnectionHandle)connectionHandle; | |
391 - (BluetoothHCIRSSIValue)rawRSSI; | |
392 - (NSArray*)services; | |
393 - (IOReturn)performSDPQuery:(id)target uuids:(NSArray*)uuids; | |
394 @end | |
395 | |
396 @interface CBPeripheral (LionSDK) | |
397 @property(readonly, nonatomic) CFUUIDRef UUID; | |
398 @property(retain, readonly) NSString* name; | |
399 @property(readonly) BOOL isConnected; | |
400 @end | |
401 | |
402 @interface CBCentralManager (LionSDK) | |
403 @property(readonly) CBCentralManagerState state; | |
404 - (id)initWithDelegate:(id<CBCentralManagerDelegate>)delegate | |
405 queue:(dispatch_queue_t)queue; | |
406 - (void)scanForPeripheralsWithServices:(NSArray*)serviceUUIDs | |
407 options:(NSDictionary*)options; | |
408 - (void)stopScan; | |
409 @end | |
410 | |
411 @interface CBUUID (LionSDK) | |
412 @property(nonatomic, readonly) NSData* data; | |
413 + (CBUUID*)UUIDWithString:(NSString*)theString; | |
414 @end | |
415 | |
416 BASE_EXPORT extern "C" void NSAccessibilityPostNotificationWithUserInfo( | |
417 id object, | |
418 NSString* notification, | |
419 NSDictionary* user_info); | |
420 | |
421 #endif // MAC_OS_X_VERSION_10_7 | |
422 | |
423 // Once Chrome no longer supports OSX 10.7, everything within this preprocessor | 75 // Once Chrome no longer supports OSX 10.7, everything within this preprocessor |
424 // block can be removed. | 76 // block can be removed. |
425 #if !defined(MAC_OS_X_VERSION_10_8) || \ | 77 #if !defined(MAC_OS_X_VERSION_10_8) || \ |
426 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_8 | 78 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_8 |
427 | 79 |
428 @interface NSColor (MountainLionSDK) | 80 @interface NSColor (MountainLionSDK) |
429 - (CGColorRef)CGColor; | 81 - (CGColorRef)CGColor; |
430 @end | 82 @end |
431 | 83 |
432 @interface NSUUID (MountainLionSDK) | 84 @interface NSUUID (MountainLionSDK) |
433 - (NSString*)UUIDString; | 85 - (NSString*)UUIDString; |
434 @end | 86 @end |
435 | 87 |
436 @interface NSControl (MountainLionSDK) | 88 @interface NSControl (MountainLionSDK) |
437 @property BOOL allowsExpansionToolTips; | 89 @property BOOL allowsExpansionToolTips; |
438 @end | 90 @end |
439 | 91 |
| 92 // NSProgress is public API in 10.9, but a version of it exists and is usable |
| 93 // in 10.8. |
| 94 @class NSProgress; |
| 95 @class NSAppearance; |
| 96 |
440 #endif // MAC_OS_X_VERSION_10_8 | 97 #endif // MAC_OS_X_VERSION_10_8 |
441 | 98 |
442 // Once Chrome no longer supports OSX 10.8, everything within this preprocessor | 99 // Once Chrome no longer supports OSX 10.8, everything within this preprocessor |
443 // block can be removed. | 100 // block can be removed. |
444 #if !defined(MAC_OS_X_VERSION_10_9) || \ | 101 #if !defined(MAC_OS_X_VERSION_10_9) || \ |
445 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_9 | 102 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_9 |
446 | 103 |
447 @interface NSProgress (MavericksSDK) | 104 @interface NSProgress (MavericksSDK) |
448 | 105 |
449 - (instancetype)initWithParent:(NSProgress*)parentProgressOrNil | 106 - (instancetype)initWithParent:(NSProgress*)parentProgressOrNil |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 @interface CBPeripheral (MavericksSDK) | 151 @interface CBPeripheral (MavericksSDK) |
495 @property(readonly, nonatomic) NSUUID* identifier; | 152 @property(readonly, nonatomic) NSUUID* identifier; |
496 @end | 153 @end |
497 | 154 |
498 @interface NSVisualEffectView (MavericksSDK) | 155 @interface NSVisualEffectView (MavericksSDK) |
499 - (void)setState:(NSVisualEffectState)state; | 156 - (void)setState:(NSVisualEffectState)state; |
500 @end | 157 @end |
501 | 158 |
502 @class NSVisualEffectView; | 159 @class NSVisualEffectView; |
503 | 160 |
| 161 @class NSUserActivity; |
| 162 |
504 #endif // MAC_OS_X_VERSION_10_9 | 163 #endif // MAC_OS_X_VERSION_10_9 |
505 | 164 |
506 // Once Chrome no longer supports OSX 10.9, everything within this preprocessor | 165 // Once Chrome no longer supports OSX 10.9, everything within this preprocessor |
507 // block can be removed. | 166 // block can be removed. |
508 #if !defined(MAC_OS_X_VERSION_10_10) || \ | 167 #if !defined(MAC_OS_X_VERSION_10_10) || \ |
509 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_10 | 168 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_10 |
510 | 169 |
511 @interface NSUserActivity (YosemiteSDK) | 170 @interface NSUserActivity (YosemiteSDK) |
512 | 171 |
513 @property(readonly, copy) NSString* activityType; | 172 @property(readonly, copy) NSString* activityType; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
552 @end | 211 @end |
553 | 212 |
554 #endif // MAC_OS_X_VERSION_10_10 | 213 #endif // MAC_OS_X_VERSION_10_10 |
555 | 214 |
556 // ---------------------------------------------------------------------------- | 215 // ---------------------------------------------------------------------------- |
557 // The symbol for kCWSSIDDidChangeNotification is available in the | 216 // The symbol for kCWSSIDDidChangeNotification is available in the |
558 // CoreWLAN.framework for OSX versions 10.6 through 10.10. The symbol is not | 217 // CoreWLAN.framework for OSX versions 10.6 through 10.10. The symbol is not |
559 // declared in the OSX 10.9+ SDK, so when compiling against an OSX 10.9+ SDK, | 218 // declared in the OSX 10.9+ SDK, so when compiling against an OSX 10.9+ SDK, |
560 // declare the symbol. | 219 // declare the symbol. |
561 // ---------------------------------------------------------------------------- | 220 // ---------------------------------------------------------------------------- |
562 #if defined(MAC_OS_X_VERSION_10_9) && \ | |
563 MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_9 | |
564 BASE_EXPORT extern "C" NSString* const kCWSSIDDidChangeNotification; | 221 BASE_EXPORT extern "C" NSString* const kCWSSIDDidChangeNotification; |
565 #endif | 222 |
566 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ | 223 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ |
OLD | NEW |