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

Unified Diff: chrome/browser/ui/cocoa/download/download_shelf_controller.h

Issue 12995025: [Mac] DownloadShelf should be notified when autoclosing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: + NSTrackingInVisibleRect Created 7 years, 9 months 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/ui/chrome_pages.cc ('k') | chrome/browser/ui/cocoa/download/download_shelf_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « chrome/browser/ui/chrome_pages.cc ('k') | chrome/browser/ui/cocoa/download/download_shelf_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698