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

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

Issue 1130903004: [Mac] Fix download item text sometimes being misaligned. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 0d75b09f4453e7a6cc604eed5c2e1bf939894f3c..e712f95b34eb7af6577261ad175b7533ec6bdbcb 100644
--- a/chrome/browser/ui/cocoa/download/download_item_cell.mm
+++ b/chrome/browser/ui/cocoa/download/download_item_cell.mm
@@ -138,7 +138,7 @@ void DummyRTLMirror(gfx::Rect* bounds) {
- (void)setInitialState {
isStatusTextVisible_ = NO;
- titleY_ = kPrimaryTextPosTop;
+ titleY_ = kPrimaryTextOnlyPosTop;
statusAlpha_ = 0.0;
indeterminateProgressAngle_ = DownloadShelf::kStartAngleDegrees;
@@ -727,6 +727,10 @@ void DummyRTLMirror(gfx::Rect* bounds) {
return statusAlpha_;
}
+- (CGFloat)titleY {
+ return titleY_;
+}
+
- (void)skipVisibilityAnimation {
[toggleStatusVisibilityAnimation_ setCurrentProgress:1.0];
}
« no previous file with comments | « chrome/browser/ui/cocoa/download/download_item_cell.h ('k') | chrome/browser/ui/cocoa/download/download_item_cell_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698