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

Unified Diff: chrome/browser/cocoa/download_item_cell.mm

Issue 3083022: Rework gfx::Font by moving platform-specific code into inner classes.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/cocoa/download_item_cell.mm
===================================================================
--- chrome/browser/cocoa/download_item_cell.mm (revision 55911)
+++ chrome/browser/cocoa/download_item_cell.mm (working copy)
@@ -395,9 +395,8 @@
- (NSString*)elideTitle:(int)availableWidth {
NSFont* font = [self font];
- gfx::Font font_chr =
- gfx::Font::CreateFont(base::SysNSStringToWide([font fontName]),
- [font pointSize]);
+ gfx::Font font_chr(base::SysNSStringToWide([font fontName]),
+ [font pointSize]);
return base::SysWideToNSString(
ElideFilename(downloadPath_, font_chr, availableWidth));
@@ -405,9 +404,8 @@
- (NSString*)elideStatus:(int)availableWidth {
NSFont* font = [self secondaryFont];
- gfx::Font font_chr =
- gfx::Font::CreateFont(base::SysNSStringToWide([font fontName]),
- [font pointSize]);
+ gfx::Font font_chr(base::SysNSStringToWide([font fontName]),
+ [font pointSize]);
return base::SysWideToNSString(ElideText(
base::SysNSStringToWide([self secondaryTitle]),
« no previous file with comments | « chrome/browser/cocoa/bookmark_menu_cocoa_controller.mm ('k') | chrome/browser/cocoa/location_bar/ev_bubble_decoration.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698