| 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 #include "base/mac/foundation_util.h" | 5 #include "base/mac/foundation_util.h" |
| 6 | 6 |
| 7 #include <stdlib.h> | 7 #include <stdlib.h> |
| 8 #include <string.h> | 8 #include <string.h> |
| 9 | 9 |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 CF_CAST_DEFN(CFDictionary); | 355 CF_CAST_DEFN(CFDictionary); |
| 356 CF_CAST_DEFN(CFNull); | 356 CF_CAST_DEFN(CFNull); |
| 357 CF_CAST_DEFN(CFNumber); | 357 CF_CAST_DEFN(CFNumber); |
| 358 CF_CAST_DEFN(CFSet); | 358 CF_CAST_DEFN(CFSet); |
| 359 CF_CAST_DEFN(CFString); | 359 CF_CAST_DEFN(CFString); |
| 360 CF_CAST_DEFN(CFURL); | 360 CF_CAST_DEFN(CFURL); |
| 361 CF_CAST_DEFN(CFUUID); | 361 CF_CAST_DEFN(CFUUID); |
| 362 | 362 |
| 363 CF_CAST_DEFN(CGColor); | 363 CF_CAST_DEFN(CGColor); |
| 364 | 364 |
| 365 CF_CAST_DEFN(CTFontDescriptor); |
| 365 CF_CAST_DEFN(CTRun); | 366 CF_CAST_DEFN(CTRun); |
| 366 | 367 |
| 367 #if defined(OS_IOS) | 368 #if defined(OS_IOS) |
| 368 CF_CAST_DEFN(CTFont); | 369 CF_CAST_DEFN(CTFont); |
| 369 #else | 370 #else |
| 370 // The NSFont/CTFont toll-free bridging is broken when it comes to type | 371 // The NSFont/CTFont toll-free bridging is broken when it comes to type |
| 371 // checking, so do some special-casing. | 372 // checking, so do some special-casing. |
| 372 // http://www.openradar.me/15341349 rdar://15341349 | 373 // http://www.openradar.me/15341349 rdar://15341349 |
| 373 template<> CTFontRef | 374 template<> CTFontRef |
| 374 CFCast<CTFontRef>(const CFTypeRef& cf_val) { | 375 CFCast<CTFontRef>(const CFTypeRef& cf_val) { |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 CFDictionaryGetValue(user_info.get(), kCFErrorDescriptionKey)); | 446 CFDictionaryGetValue(user_info.get(), kCFErrorDescriptionKey)); |
| 446 } | 447 } |
| 447 o << "Code: " << CFErrorGetCode(err) | 448 o << "Code: " << CFErrorGetCode(err) |
| 448 << " Domain: " << CFErrorGetDomain(err) | 449 << " Domain: " << CFErrorGetDomain(err) |
| 449 << " Desc: " << desc.get(); | 450 << " Desc: " << desc.get(); |
| 450 if(errorDesc) { | 451 if(errorDesc) { |
| 451 o << "(" << errorDesc << ")"; | 452 o << "(" << errorDesc << ")"; |
| 452 } | 453 } |
| 453 return o; | 454 return o; |
| 454 } | 455 } |
| OLD | NEW |