Index: chrome/browser/ui/cocoa/download/download_shelf_controller.h |
diff --git a/chrome/browser/ui/cocoa/download/download_shelf_controller.h b/chrome/browser/ui/cocoa/download/download_shelf_controller.h |
index 91f5a655e6c43aea79e17bb0d2241d69ba7bf2e6..50439b08b6a99a6d6b01d05d690d49f998d531a0 100644 |
--- a/chrome/browser/ui/cocoa/download/download_shelf_controller.h |
+++ b/chrome/browser/ui/cocoa/download/download_shelf_controller.h |
@@ -77,19 +77,29 @@ class PageNavigator; |
- (id)initWithBrowser:(Browser*)browser |
resizeDelegate:(id<ViewResizer>)resizeDelegate; |
+// Run when the user clicks the 'Show All' button. |
- (IBAction)showDownloadsTab:(id)sender; |
+// Run when the user clicks the close button on the right side of the shelf. |
+- (IBAction)handleClose:(id)sender; |
+ |
+// Shows or hides the download shelf based on the value of |show|. |
+// |isUserAction| should be YES if the operation is being triggered based on a |
+// user action (currently only relevant when hiding the shelf). |
+// Note: This is intended to be invoked from DownloadShelfMac. If invoked |
+// directly, the shelf visibility state maintained by DownloadShelf and the |
+// owning Browser will not be updated. |
+- (void)showDownloadShelf:(BOOL)show |
+ isUserAction:(BOOL)isUserAction; |
+ |
// Returns our view cast as an AnimatableView. |
- (AnimatableView*)animatableView; |
- (DownloadShelf*)bridge; |
- (BOOL)isVisible; |
-- (IBAction)show:(id)sender; |
- |
-// Run when the user clicks the close button on the right side of the shelf. |
-- (IBAction)hide:(id)sender; |
- |
+// Add a new download item to the leftmost position of the download shelf. The |
+// item should not have been already added to this shelf. |
- (void)addDownloadItem:(content::DownloadItem*)downloadItem; |
// Remove a download, possibly via clearing browser data. |