| 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..159aff3f9c654f29423a8b4c89ef77b829d84f0d 100644
|
| --- a/chrome/browser/ui/cocoa/download/download_shelf_controller.h
|
| +++ b/chrome/browser/ui/cocoa/download/download_shelf_controller.h
|
| @@ -77,19 +77,26 @@ class PageNavigator;
|
| - (id)initWithBrowser:(Browser*)browser
|
| resizeDelegate:(id<ViewResizer>)resizeDelegate;
|
|
|
| +// Run when the user clicks the 'Show All' button.
|
| - (IBAction)showDownloadsTab:(id)sender;
|
|
|
| -// Returns our view cast as an AnimatableView.
|
| -- (AnimatableView*)animatableView;
|
| -
|
| -- (DownloadShelf*)bridge;
|
| -- (BOOL)isVisible;
|
| +// Run when the user clicks the close button on the right side of the shelf.
|
| +- (IBAction)handleClose:(id)sender;
|
|
|
| -- (IBAction)show:(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;
|
|
|
| -// Run when the user clicks the close button on the right side of the shelf.
|
| -- (IBAction)hide:(id)sender;
|
| +// Re-layouts all download items based on their current state.
|
| +- (void)layoutItems;
|
|
|
| +// 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.
|
| @@ -101,10 +108,14 @@ class PageNavigator;
|
| // Notification that we are closing and should release our downloads.
|
| - (void)exiting;
|
|
|
| +// Returns our view cast as an AnimatableView.
|
| +- (AnimatableView*)animatableView;
|
| +
|
| +- (DownloadShelf*)bridge;
|
| +
|
| +- (BOOL)isVisible;
|
| +
|
| // Return the height of the download shelf.
|
| - (float)height;
|
|
|
| -// Re-layouts all download items based on their current state.
|
| -- (void)layoutItems;
|
| -
|
| @end
|
|
|