Chromium Code Reviews| 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 | 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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 256 | 256 |
| 257 - (void)publish; | 257 - (void)publish; |
| 258 - (void)unpublish; | 258 - (void)unpublish; |
| 259 | 259 |
| 260 @end | 260 @end |
| 261 | 261 |
| 262 @interface NSScreen (MavericksSDK) | 262 @interface NSScreen (MavericksSDK) |
| 263 + (BOOL)screensHaveSeparateSpaces; | 263 + (BOOL)screensHaveSeparateSpaces; |
| 264 @end | 264 @end |
| 265 | 265 |
| 266 // NSAppearance is a new class in the 10.9 SDK. New classes cannot be | |
| 267 // forward-declared because they also require an @implementation, which would | |
| 268 // produce conflicting linkage. Instead, just declare the necessary pieces of | |
| 269 // the interface as a protocol, and treat objects of this type as id. | |
| 270 @protocol CrNSAppearance | |
|
Robert Sesek
2014/09/15 16:36:02
To resolve the compile errors, add " <NSObject>" a
dewittj
2014/09/15 17:32:37
Done.
| |
| 271 + (id<NSObject>)appearanceNamed:(NSString*)name; | |
| 272 @end | |
| 273 | |
| 266 @interface NSView (MavericksSDK) | 274 @interface NSView (MavericksSDK) |
| 267 - (void)setCanDrawSubviewsIntoLayer:(BOOL)flag; | 275 - (void)setCanDrawSubviewsIntoLayer:(BOOL)flag; |
| 276 - (id<CrNSAppearance>)effectiveAppearance; | |
| 268 @end | 277 @end |
| 269 | 278 |
| 270 enum { | 279 enum { |
| 271 NSWindowOcclusionStateVisible = 1UL << 1, | 280 NSWindowOcclusionStateVisible = 1UL << 1, |
| 272 }; | 281 }; |
| 273 typedef NSUInteger NSWindowOcclusionState; | 282 typedef NSUInteger NSWindowOcclusionState; |
| 274 | 283 |
| 275 @interface NSWindow (MavericksSDK) | 284 @interface NSWindow (MavericksSDK) |
| 276 - (NSWindowOcclusionState)occlusionState; | 285 - (NSWindowOcclusionState)occlusionState; |
| 277 @end | 286 @end |
| (...skipping 25 matching lines...) Expand all Loading... | |
| 303 | 312 |
| 304 @interface NSUserActivity : NSObject | 313 @interface NSUserActivity : NSObject |
| 305 | 314 |
| 306 @property (readonly, copy) NSString* activityType; | 315 @property (readonly, copy) NSString* activityType; |
| 307 @property (copy) NSURL* webPageURL; | 316 @property (copy) NSURL* webPageURL; |
| 308 | 317 |
| 309 @end | 318 @end |
| 310 | 319 |
| 311 BASE_EXPORT extern "C" NSString* const NSUserActivityTypeBrowsingWeb; | 320 BASE_EXPORT extern "C" NSString* const NSUserActivityTypeBrowsingWeb; |
| 312 | 321 |
| 322 BASE_EXPORT extern "C" NSString* const NSAppearanceNameVibrantDark; | |
| 323 | |
| 313 #endif // MAC_OS_X_VERSION_10_10 | 324 #endif // MAC_OS_X_VERSION_10_10 |
| 314 | 325 |
| 315 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ | 326 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ |
| OLD | NEW |