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.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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 69 | 69 |
| 70 // ---------------------------------------------------------------------------- | 70 // ---------------------------------------------------------------------------- |
| 71 // Define NSStrings only available in newer versions of the OSX SDK to force | 71 // Define NSStrings only available in newer versions of the OSX SDK to force |
| 72 // them to be statically linked. | 72 // them to be statically linked. |
| 73 // ---------------------------------------------------------------------------- | 73 // ---------------------------------------------------------------------------- |
| 74 | 74 |
| 75 extern "C" { | 75 extern "C" { |
| 76 #if !defined(MAC_OS_X_VERSION_10_10) || \ | 76 #if !defined(MAC_OS_X_VERSION_10_10) || \ |
| 77 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_10 | 77 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_10 |
| 78 BASE_EXPORT extern NSString* const NSUserActivityTypeBrowsingWeb; | 78 BASE_EXPORT extern NSString* const NSUserActivityTypeBrowsingWeb; |
| 79 BASE_EXPORT extern NSString* const NSAppearanceNameVibrantDark; | |
|
Robert Sesek
2017/01/11 19:23:39
Why are you removing these from here?
Sidney San Martín
2017/01/11 22:00:58
Maybe we can chat about this in person with thakis
Robert Sesek
2017/01/11 22:09:54
Hm yes let's chat in person.
| |
| 80 BASE_EXPORT extern NSString* const NSAppearanceNameVibrantLight; | |
| 81 #endif // MAC_OS_X_VERSION_10_10 | 79 #endif // MAC_OS_X_VERSION_10_10 |
| 82 } // extern "C" | 80 } // extern "C" |
| 83 | 81 |
| 84 // ---------------------------------------------------------------------------- | 82 // ---------------------------------------------------------------------------- |
| 85 // If compiling against an older version of the OSX SDK, declare classes and | 83 // If compiling against an older version of the OSX SDK, declare classes and |
| 86 // functions that are available in newer versions of the OSX SDK. If compiling | 84 // functions that are available in newer versions of the OSX SDK. If compiling |
| 87 // against a newer version of the OSX SDK, redeclare those same classes and | 85 // against a newer version of the OSX SDK, redeclare those same classes and |
| 88 // functions to suppress -Wpartial-availability warnings. | 86 // functions to suppress -Wpartial-availability warnings. |
| 89 // ---------------------------------------------------------------------------- | 87 // ---------------------------------------------------------------------------- |
| 90 | 88 |
| (...skipping 24 matching lines...) Expand all Loading... | |
| 115 @end | 113 @end |
| 116 | 114 |
| 117 @interface NSProcessInfo (YosemiteSDK) | 115 @interface NSProcessInfo (YosemiteSDK) |
| 118 @property(readonly) NSOperatingSystemVersion operatingSystemVersion; | 116 @property(readonly) NSOperatingSystemVersion operatingSystemVersion; |
| 119 @end | 117 @end |
| 120 | 118 |
| 121 @interface NSLayoutConstraint (YosemiteSDK) | 119 @interface NSLayoutConstraint (YosemiteSDK) |
| 122 @property(getter=isActive) BOOL active; | 120 @property(getter=isActive) BOOL active; |
| 123 @end | 121 @end |
| 124 | 122 |
| 125 @interface NSVisualEffectView (YosemiteSDK) | |
| 126 - (void)setState:(NSVisualEffectState)state; | |
| 127 @end | |
| 128 | |
| 129 @class NSVisualEffectView; | |
| 130 | |
| 131 #endif // MAC_OS_X_VERSION_10_10 | 123 #endif // MAC_OS_X_VERSION_10_10 |
| 132 | 124 |
| 133 // Once Chrome no longer supports OSX 10.10.2, everything within this | 125 // Once Chrome no longer supports OSX 10.10.2, everything within this |
| 134 // preprocessor block can be removed. | 126 // preprocessor block can be removed. |
| 135 #if !defined(MAC_OS_X_VERSION_10_10_3) || \ | 127 #if !defined(MAC_OS_X_VERSION_10_10_3) || \ |
| 136 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_10_3 | 128 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_10_3 |
| 137 | 129 |
| 138 @interface NSEvent (YosemiteSDK) | 130 @interface NSEvent (YosemiteSDK) |
| 139 @property(readonly) NSInteger stage; | 131 @property(readonly) NSInteger stage; |
| 140 @end | 132 @end |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 192 | 184 |
| 193 // ---------------------------------------------------------------------------- | 185 // ---------------------------------------------------------------------------- |
| 194 // The symbol for kCWSSIDDidChangeNotification is available in the | 186 // The symbol for kCWSSIDDidChangeNotification is available in the |
| 195 // CoreWLAN.framework for OSX versions 10.6 through 10.10. The symbol is not | 187 // CoreWLAN.framework for OSX versions 10.6 through 10.10. The symbol is not |
| 196 // declared in the OSX 10.9+ SDK, so when compiling against an OSX 10.9+ SDK, | 188 // declared in the OSX 10.9+ SDK, so when compiling against an OSX 10.9+ SDK, |
| 197 // declare the symbol. | 189 // declare the symbol. |
| 198 // ---------------------------------------------------------------------------- | 190 // ---------------------------------------------------------------------------- |
| 199 BASE_EXPORT extern "C" NSString* const kCWSSIDDidChangeNotification; | 191 BASE_EXPORT extern "C" NSString* const kCWSSIDDidChangeNotification; |
| 200 | 192 |
| 201 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ | 193 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ |
| OLD | NEW |