| 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 #ifndef BASE_MAC_FOUNDATION_UTIL_H_ | 5 #ifndef BASE_MAC_FOUNDATION_UTIL_H_ |
| 6 #define BASE_MAC_FOUNDATION_UTIL_H_ | 6 #define BASE_MAC_FOUNDATION_UTIL_H_ |
| 7 | 7 |
| 8 #include <CoreFoundation/CoreFoundation.h> | 8 #include <CoreFoundation/CoreFoundation.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 CF_CAST_DECL(CFNull); | 289 CF_CAST_DECL(CFNull); |
| 290 CF_CAST_DECL(CFNumber); | 290 CF_CAST_DECL(CFNumber); |
| 291 CF_CAST_DECL(CFSet); | 291 CF_CAST_DECL(CFSet); |
| 292 CF_CAST_DECL(CFString); | 292 CF_CAST_DECL(CFString); |
| 293 CF_CAST_DECL(CFURL); | 293 CF_CAST_DECL(CFURL); |
| 294 CF_CAST_DECL(CFUUID); | 294 CF_CAST_DECL(CFUUID); |
| 295 | 295 |
| 296 CF_CAST_DECL(CGColor); | 296 CF_CAST_DECL(CGColor); |
| 297 | 297 |
| 298 CF_CAST_DECL(CTFont); | 298 CF_CAST_DECL(CTFont); |
| 299 CF_CAST_DECL(CTFontDescriptor); |
| 299 CF_CAST_DECL(CTRun); | 300 CF_CAST_DECL(CTRun); |
| 300 | 301 |
| 301 CF_CAST_DECL(SecACL); | 302 CF_CAST_DECL(SecACL); |
| 302 CF_CAST_DECL(SecTrustedApplication); | 303 CF_CAST_DECL(SecTrustedApplication); |
| 303 | 304 |
| 304 #undef CF_CAST_DECL | 305 #undef CF_CAST_DECL |
| 305 | 306 |
| 306 #if defined(__OBJC__) | 307 #if defined(__OBJC__) |
| 307 | 308 |
| 308 // ObjCCast<>() and ObjCCastStrict<>() cast a basic id to a more | 309 // ObjCCast<>() and ObjCCastStrict<>() cast a basic id to a more |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 // by using the NSToCFCast methods above. | 380 // by using the NSToCFCast methods above. |
| 380 // e.g. LOG(INFO) << base::mac::NSToCFCast(@"foo"); | 381 // e.g. LOG(INFO) << base::mac::NSToCFCast(@"foo"); |
| 381 // Operator << can not be overloaded for ObjectiveC types as the compiler | 382 // Operator << can not be overloaded for ObjectiveC types as the compiler |
| 382 // can not distinguish between overloads for id with overloads for void*. | 383 // can not distinguish between overloads for id with overloads for void*. |
| 383 BASE_EXPORT extern std::ostream& operator<<(std::ostream& o, | 384 BASE_EXPORT extern std::ostream& operator<<(std::ostream& o, |
| 384 const CFErrorRef err); | 385 const CFErrorRef err); |
| 385 BASE_EXPORT extern std::ostream& operator<<(std::ostream& o, | 386 BASE_EXPORT extern std::ostream& operator<<(std::ostream& o, |
| 386 const CFStringRef str); | 387 const CFStringRef str); |
| 387 | 388 |
| 388 #endif // BASE_MAC_FOUNDATION_UTIL_H_ | 389 #endif // BASE_MAC_FOUNDATION_UTIL_H_ |
| OLD | NEW |