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

Side by Side Diff: base/mac/foundation_util.mm

Issue 988693005: Chromium roll (https://codereview.chromium.org/976353002) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: fixed bad android build patch Created 5 years, 9 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
« no previous file with comments | « base/mac/foundation_util.h ('k') | base/mac/sdk_forward_declarations.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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
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
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 }
OLDNEW
« no previous file with comments | « base/mac/foundation_util.h ('k') | base/mac/sdk_forward_declarations.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698