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

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

Issue 172030: Clean up download item look, part 1 of many. (Closed)
Patch Set: Created 11 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
« no previous file with comments | « chrome/browser/cocoa/download_item_cell.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/download_shelf_controller.mm
diff --git a/chrome/browser/cocoa/download_shelf_controller.mm b/chrome/browser/cocoa/download_shelf_controller.mm
index c449c98c952ad1500eb09d9481c6fb72b43f45bc..0219b569d5ced53597be6f57aa24b072cca30906 100644
--- a/chrome/browser/cocoa/download_shelf_controller.mm
+++ b/chrome/browser/cocoa/download_shelf_controller.mm
@@ -21,11 +21,8 @@ namespace {
// we already have this many download views, one is removed.
const size_t kMaxDownloadItemCount = 16;
-// Border padding of a download item.
-const int kDownloadItemBorderPadding = 3;
-
// Horizontal padding between two download items.
-const int kDownloadItemPadding = 10;
+const int kDownloadItemPadding = 2;
// Duration for the open-new-leftmost-item animation, in seconds.
const NSTimeInterval kDownloadItemOpenDuration = 0.8;
@@ -231,7 +228,7 @@ const NSTimeInterval kDownloadItemOpenDuration = 0.8;
// Start at width 0...
NSSize size = [controller.get() preferredSize];
- NSRect frame = NSMakeRect(0, kDownloadItemBorderPadding, 0, size.height);
+ NSRect frame = NSMakeRect(0, 0, 0, size.height);
[[controller.get() view] setFrame:frame];
// ...then animate in
« no previous file with comments | « chrome/browser/cocoa/download_item_cell.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698