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

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

Issue 524009: Added pause button to DownloadItemMac via IB and IBAction to receive the even... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 11 years 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_controller.h ('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_item_controller.mm
===================================================================
--- chrome/browser/cocoa/download_item_controller.mm (revision 35359)
+++ chrome/browser/cocoa/download_item_controller.mm (working copy)
@@ -63,6 +63,7 @@
using DownloadShelfContextMenu::OPEN_WHEN_COMPLETE;
using DownloadShelfContextMenu::ALWAYS_OPEN_TYPE;
using DownloadShelfContextMenu::CANCEL;
+ using DownloadShelfContextMenu::TOGGLE_PAUSE;
};
@interface DownloadItemController (Private)
@@ -291,6 +292,8 @@
actionId = DownloadShelfContextMenuMac::SHOW_IN_FOLDER;
} else if (action == @selector(handleCancel:)) {
actionId = DownloadShelfContextMenuMac::CANCEL;
+ } else if (action == @selector(handleTogglePause:)) {
+ actionId = DownloadShelfContextMenuMac::TOGGLE_PAUSE;
} else {
NOTREACHED();
return YES;
@@ -322,4 +325,8 @@
menuBridge_->ExecuteItemCommand(DownloadShelfContextMenuMac::CANCEL);
}
+- (IBAction)handleTogglePause:(id)sender {
+ menuBridge_->ExecuteItemCommand(DownloadShelfContextMenuMac::TOGGLE_PAUSE);
+}
+
@end
« no previous file with comments | « chrome/browser/cocoa/download_item_controller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698