summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/download_item_controller.mm
diff options
context:
space:
mode:
authoravi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-19 04:48:57 +0000
committeravi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-19 04:48:57 +0000
commit74cda952e5725e71f2294d741ecde4424e760f48 (patch)
tree3b59d710a88a578bf054ecd4b04daeccc46ca7ce /chrome/browser/cocoa/download_item_controller.mm
parent5fdb69683e1bdcb924e2f6242a6b9cc88c2ebf50 (diff)
downloadchromium_src-74cda952e5725e71f2294d741ecde4424e760f48.zip
chromium_src-74cda952e5725e71f2294d741ecde4424e760f48.tar.gz
chromium_src-74cda952e5725e71f2294d741ecde4424e760f48.tar.bz2
Mac: Bounce the downloads folder (in the Dock) on completed downloads.
BUG=none TEST=download something on SL, watch the Dock bounce. Bounce, Dock, bounce! Review URL: http://codereview.chromium.org/404043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32493 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/download_item_controller.mm')
-rw-r--r--chrome/browser/cocoa/download_item_controller.mm9
1 files changed, 7 insertions, 2 deletions
diff --git a/chrome/browser/cocoa/download_item_controller.mm b/chrome/browser/cocoa/download_item_controller.mm
index a17b202..f24a3ae 100644
--- a/chrome/browser/cocoa/download_item_controller.mm
+++ b/chrome/browser/cocoa/download_item_controller.mm
@@ -12,6 +12,7 @@
#import "chrome/browser/cocoa/download_item_cell.h"
#include "chrome/browser/cocoa/download_item_mac.h"
#import "chrome/browser/cocoa/download_shelf_controller.h"
+#include "chrome/browser/cocoa/download_util_mac.h"
#import "chrome/browser/cocoa/ui_localizer.h"
#include "chrome/browser/download/download_item_model.h"
#include "chrome/browser/download/download_shelf.h"
@@ -161,10 +162,14 @@ class DownloadShelfContextMenuMac : public DownloadShelfContextMenu {
}
// Set the correct popup menu.
- if (downloadModel->download()->state() == DownloadItem::COMPLETE)
+ if (downloadModel->download()->state() == DownloadItem::COMPLETE) {
currentMenu_ = completeDownloadMenu_;
- else
+ download_util::NotifySystemOfDownloadComplete(
+ downloadModel->download()->full_path());
+ }
+ else {
currentMenu_ = activeDownloadMenu_;
+ }
[progressView_ setMenu:currentMenu_]; // for context menu
[cell_ setStateFromDownload:downloadModel];