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

Side by Side Diff: base/mac/sdk_forward_declarations.h

Issue 2339563004: Move NSWindow.allowsAutomaticWindowTabbing forward declaration to the right place. (Closed)
Patch Set: Created 4 years, 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
(...skipping 20 matching lines...) Expand all
31 // The protocol was formalized by the 10.12 SDK, but it was informally used 31 // The protocol was formalized by the 10.12 SDK, but it was informally used
32 // before. 32 // before.
33 @protocol CAAnimationDelegate 33 @protocol CAAnimationDelegate
34 - (void)animationDidStart:(CAAnimation*)animation; 34 - (void)animationDidStart:(CAAnimation*)animation;
35 - (void)animationDidStop:(CAAnimation*)animation finished:(BOOL)finished; 35 - (void)animationDidStop:(CAAnimation*)animation finished:(BOOL)finished;
36 @end 36 @end
37 37
38 @protocol CALayerDelegate 38 @protocol CALayerDelegate
39 @end 39 @end
40 40
41 @interface NSWindow (SierraSDK)
42 @property(class) BOOL allowsAutomaticWindowTabbing;
43 @end
44
45 #endif // MAC_OS_X_VERSION_10_12 41 #endif // MAC_OS_X_VERSION_10_12
46 42
47 #if !defined(MAC_OS_X_VERSION_10_11) || \ 43 #if !defined(MAC_OS_X_VERSION_10_11) || \
48 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_11 44 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_11
49 45
50 enum { 46 enum {
51 NSPressureBehaviorUnknown = -1, 47 NSPressureBehaviorUnknown = -1,
52 NSPressureBehaviorPrimaryDefault = 0, 48 NSPressureBehaviorPrimaryDefault = 0,
53 NSPressureBehaviorPrimaryClick = 1, 49 NSPressureBehaviorPrimaryClick = 1,
54 NSPressureBehaviorPrimaryGeneric = 2, 50 NSPressureBehaviorPrimaryGeneric = 2,
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 @interface NSEvent (YosemiteSDK) 233 @interface NSEvent (YosemiteSDK)
238 @property(readonly) NSInteger stage; 234 @property(readonly) NSInteger stage;
239 @end 235 @end
240 236
241 @interface NSView (YosemiteSDK) 237 @interface NSView (YosemiteSDK)
242 - (void)setPressureConfiguration:(NSPressureConfiguration*)aConfiguration; 238 - (void)setPressureConfiguration:(NSPressureConfiguration*)aConfiguration;
243 @end 239 @end
244 240
245 #endif // MAC_OS_X_VERSION_10_10 241 #endif // MAC_OS_X_VERSION_10_10
246 242
243 // Once Chrome no longer supports OSX 10.11, everything within this
244 // preprocessor block can be removed.
245 #if !defined(MAC_OS_X_VERSION_10_12) || \
246 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_12
247
248 @interface NSWindow (SierraSDK)
249 @property(class) BOOL allowsAutomaticWindowTabbing;
250 @end
251
252 #endif // MAC_OS_X_VERSION_10_12
253
247 // ---------------------------------------------------------------------------- 254 // ----------------------------------------------------------------------------
248 // The symbol for kCWSSIDDidChangeNotification is available in the 255 // The symbol for kCWSSIDDidChangeNotification is available in the
249 // CoreWLAN.framework for OSX versions 10.6 through 10.10. The symbol is not 256 // CoreWLAN.framework for OSX versions 10.6 through 10.10. The symbol is not
250 // declared in the OSX 10.9+ SDK, so when compiling against an OSX 10.9+ SDK, 257 // declared in the OSX 10.9+ SDK, so when compiling against an OSX 10.9+ SDK,
251 // declare the symbol. 258 // declare the symbol.
252 // ---------------------------------------------------------------------------- 259 // ----------------------------------------------------------------------------
253 BASE_EXPORT extern "C" NSString* const kCWSSIDDidChangeNotification; 260 BASE_EXPORT extern "C" NSString* const kCWSSIDDidChangeNotification;
254 261
255 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ 262 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698