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

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

Issue 23731010: Move text_elider to gfx. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update3 Created 7 years, 3 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/ui/cocoa/download/download_item_cell.mm
diff --git a/chrome/browser/ui/cocoa/download/download_item_cell.mm b/chrome/browser/ui/cocoa/download/download_item_cell.mm
index c4e5e4d6c9838388cfe561e7df195c1f672b33ba..4928951da742294c2574ee7473e39aaa43949b84 100644
--- a/chrome/browser/ui/cocoa/download/download_item_cell.mm
+++ b/chrome/browser/ui/cocoa/download/download_item_cell.mm
@@ -16,7 +16,7 @@
#import "third_party/GTM/AppKit/GTMNSAnimation+Duration.h"
#import "third_party/GTM/AppKit/GTMNSColor+Luminance.h"
#include "ui/base/l10n/l10n_util.h"
-#include "ui/base/text/text_elider.h"
+#include "ui/gfx/text_elider.h"
#include "ui/gfx/canvas_skia_paint.h"
#include "ui/gfx/font.h"
#include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h"
@@ -378,7 +378,7 @@ using content::DownloadItem;
[font pointSize]);
return base::SysUTF16ToNSString(
- ui::ElideFilename(downloadPath_, font_chr, availableWidth));
+ gfx::ElideFilename(downloadPath_, font_chr, availableWidth));
}
- (NSString*)elideStatus:(int)availableWidth {
@@ -386,11 +386,11 @@ using content::DownloadItem;
gfx::Font font_chr(base::SysNSStringToUTF8([font fontName]),
[font pointSize]);
- return base::SysUTF16ToNSString(ui::ElideText(
+ return base::SysUTF16ToNSString(gfx::ElideText(
base::SysNSStringToUTF16([self secondaryTitle]),
font_chr,
availableWidth,
- ui::ELIDE_AT_END));
+ gfx::ELIDE_AT_END));
}
- (ui::ThemeProvider*)backgroundThemeWrappingProvider:

Powered by Google App Engine
This is Rietveld 408576698