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.6). |
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 | |
9 // on older OS X versions that chrome still supports). | |
7 | 10 |
8 #ifndef BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ | 11 #ifndef BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ |
9 #define BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ | 12 #define BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ |
10 | 13 |
Mark Mentovai
2013/06/06 13:49:57
I guess this should #import <AppKit/AppKit.h> for
Nico
2013/06/10 16:54:39
Done.
Nico
2013/06/10 16:54:39
Done.
| |
11 #if !defined(MAC_OS_X_VERSION_10_7) || \ | 14 #if !defined(MAC_OS_X_VERSION_10_7) || \ |
12 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7 | 15 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7 |
13 enum { | 16 enum { |
14 NSEventPhaseNone = 0, // event not associated with a phase. | 17 NSEventPhaseNone = 0, // event not associated with a phase. |
15 NSEventPhaseBegan = 0x1 << 0, | 18 NSEventPhaseBegan = 0x1 << 0, |
16 NSEventPhaseStationary = 0x1 << 1, | 19 NSEventPhaseStationary = 0x1 << 1, |
17 NSEventPhaseChanged = 0x1 << 2, | 20 NSEventPhaseChanged = 0x1 << 2, |
18 NSEventPhaseEnded = 0x1 << 3, | 21 NSEventPhaseEnded = 0x1 << 3, |
19 NSEventPhaseCancelled = 0x1 << 4, | 22 NSEventPhaseCancelled = 0x1 << 4, |
20 }; | 23 }; |
(...skipping 15 matching lines...) Expand all Loading... | |
36 dampenAmountThresholdMin:(CGFloat)minDampenThreshold | 39 dampenAmountThresholdMin:(CGFloat)minDampenThreshold |
37 max:(CGFloat)maxDampenThreshold | 40 max:(CGFloat)maxDampenThreshold |
38 usingHandler:(void (^)(CGFloat gestureAmount, | 41 usingHandler:(void (^)(CGFloat gestureAmount, |
39 NSEventPhase phase, | 42 NSEventPhase phase, |
40 BOOL isComplete, | 43 BOOL isComplete, |
41 BOOL *stop))trackingHandler; | 44 BOOL *stop))trackingHandler; |
42 | 45 |
43 - (BOOL)isDirectionInvertedFromDevice; | 46 - (BOOL)isDirectionInvertedFromDevice; |
44 | 47 |
45 @end | 48 @end |
49 | |
50 @interface NSScreen (LionAPI) | |
Mark Mentovai
2013/06/06 13:49:57
The category above is named LionSDK and your two n
Nico
2013/06/10 16:54:39
Done.
| |
51 - (CGFloat)backingScaleFactor; | |
52 - (NSRect)convertRectToBacking:(NSRect)aRect; | |
53 @end | |
54 | |
55 @interface NSWindow (LionAPI) | |
56 - (CGFloat)backingScaleFactor; | |
57 @end | |
46 #endif // MAC_OS_X_VERSION_10_7 | 58 #endif // MAC_OS_X_VERSION_10_7 |
47 | 59 |
48 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ | 60 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ |
OLD | NEW |