summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/download_item_controller.mm
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/cocoa/download_item_controller.mm')
-rw-r--r--chrome/browser/cocoa/download_item_controller.mm7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/download_item_controller.mm b/chrome/browser/cocoa/download_item_controller.mm
index 35c3bea..9e1651b 100644
--- a/chrome/browser/cocoa/download_item_controller.mm
+++ b/chrome/browser/cocoa/download_item_controller.mm
@@ -63,6 +63,7 @@ class DownloadShelfContextMenuMac : public DownloadShelfContextMenu {
using DownloadShelfContextMenu::OPEN_WHEN_COMPLETE;
using DownloadShelfContextMenu::ALWAYS_OPEN_TYPE;
using DownloadShelfContextMenu::CANCEL;
+ using DownloadShelfContextMenu::TOGGLE_PAUSE;
};
@interface DownloadItemController (Private)
@@ -291,6 +292,8 @@ class DownloadShelfContextMenuMac : public DownloadShelfContextMenu {
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 @@ class DownloadShelfContextMenuMac : public DownloadShelfContextMenu {
menuBridge_->ExecuteItemCommand(DownloadShelfContextMenuMac::CANCEL);
}
+- (IBAction)handleTogglePause:(id)sender {
+ menuBridge_->ExecuteItemCommand(DownloadShelfContextMenuMac::TOGGLE_PAUSE);
+}
+
@end