From c7594166521973b656f13d7c08b75db7b603246f Mon Sep 17 00:00:00 2001 From: "thakis@chromium.org" Date: Tue, 21 Jul 2009 19:41:53 +0000 Subject: Use a real download item. BUG=14659,17100 TEST=Download multiple things. Items should now be inserted from the left. When a download is in progress, the time to completion should be displayed, when it's done the time should fade out and the filename should move down. Download items should appear in a sweep animation. Clicking the download directly should open it; clicking the arrow on the right of the download item should show the correct context menu. If a download filename is long, it should be elided in the middle. Review URL: http://codereview.chromium.org/159060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21201 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/cocoa/download_item_controller.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'chrome/browser/cocoa/download_item_controller.h') diff --git a/chrome/browser/cocoa/download_item_controller.h b/chrome/browser/cocoa/download_item_controller.h index dec9f7c..30bc28e 100644 --- a/chrome/browser/cocoa/download_item_controller.h +++ b/chrome/browser/cocoa/download_item_controller.h @@ -7,6 +7,7 @@ #include "base/scoped_ptr.h" class BaseDownloadItemModel; +@class DownloadItemCell; class DownloadItemMac; class DownloadShelfContextMenuMac; @class DownloadShelfController; @@ -15,11 +16,14 @@ class DownloadShelfContextMenuMac; @interface DownloadItemController : NSViewController { @private - IBOutlet NSPopUpButton* popupButton_; + IBOutlet NSButton* progressView_; + IBOutlet DownloadItemCell* cell_; IBOutlet NSMenu* activeDownloadMenu_; IBOutlet NSMenu* completeDownloadMenu_; + NSMenu* currentMenu_; // points to one of the two menus above + scoped_ptr bridge_; scoped_ptr menuBridge_; @@ -38,6 +42,9 @@ class DownloadShelfContextMenuMac; // Remove ourself from the download UI. - (void)remove; +// Download item button clicked +- (IBAction)handleButtonClick:(id)sender; + // Context menu handlers. - (IBAction)handleOpen:(id)sender; - (IBAction)handleAlwaysOpen:(id)sender; -- cgit v1.1