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

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

Issue 2116103002: mac: Use instantiateWithOwner: instead of deprecated instantiateNibWithOwner: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: be more thrifty with newlines Created 4 years, 5 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
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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 @end 90 @end
91 91
92 @interface NSUUID (MountainLionSDK) 92 @interface NSUUID (MountainLionSDK)
93 - (NSString*)UUIDString; 93 - (NSString*)UUIDString;
94 @end 94 @end
95 95
96 @interface NSControl (MountainLionSDK) 96 @interface NSControl (MountainLionSDK)
97 @property BOOL allowsExpansionToolTips; 97 @property BOOL allowsExpansionToolTips;
98 @end 98 @end
99 99
100 @interface NSNib (MountainLionSDK)
101 - (BOOL)instantiateWithOwner:(id)owner
102 topLevelObjects:(NSArray**)topLevelObjects;
103 @end
104
100 #endif // MAC_OS_X_VERSION_10_8 105 #endif // MAC_OS_X_VERSION_10_8
101 106
102 // Once Chrome no longer supports OSX 10.8, everything within this preprocessor 107 // Once Chrome no longer supports OSX 10.8, everything within this preprocessor
103 // block can be removed. 108 // block can be removed.
104 #if !defined(MAC_OS_X_VERSION_10_9) || \ 109 #if !defined(MAC_OS_X_VERSION_10_9) || \
105 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_9 110 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_9
106 111
107 // NSProgress is public API in 10.9, but a version of it exists and is usable 112 // NSProgress is public API in 10.9, but a version of it exists and is usable
108 // in 10.8. 113 // in 10.8.
109 @class NSProgress; 114 @class NSProgress;
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 227
223 // ---------------------------------------------------------------------------- 228 // ----------------------------------------------------------------------------
224 // The symbol for kCWSSIDDidChangeNotification is available in the 229 // The symbol for kCWSSIDDidChangeNotification is available in the
225 // CoreWLAN.framework for OSX versions 10.6 through 10.10. The symbol is not 230 // CoreWLAN.framework for OSX versions 10.6 through 10.10. The symbol is not
226 // declared in the OSX 10.9+ SDK, so when compiling against an OSX 10.9+ SDK, 231 // declared in the OSX 10.9+ SDK, so when compiling against an OSX 10.9+ SDK,
227 // declare the symbol. 232 // declare the symbol.
228 // ---------------------------------------------------------------------------- 233 // ----------------------------------------------------------------------------
229 BASE_EXPORT extern "C" NSString* const kCWSSIDDidChangeNotification; 234 BASE_EXPORT extern "C" NSString* const kCWSSIDDidChangeNotification;
230 235
231 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_ 236 #endif // BASE_MAC_SDK_FORWARD_DECLARATIONS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chrome_browser_main_mac.mm » ('j') | chrome/browser/chrome_browser_main_mac.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698