diff options
author | rohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-05 21:29:23 +0000 |
---|---|---|
committer | rohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-05 21:29:23 +0000 |
commit | 9ec8a8ce8b2cb0c29387ddccce7fb0fb356e0b2c (patch) | |
tree | ad3c06b773e83f28e80c652d7003d357a21aa3bc /chrome/browser/cocoa/download_shelf_controller.h | |
parent | 991cf3c582cf9c8c4ee877349e1cd35ac2b838e9 (diff) | |
download | chromium_src-9ec8a8ce8b2cb0c29387ddccce7fb0fb356e0b2c.zip chromium_src-9ec8a8ce8b2cb0c29387ddccce7fb0fb356e0b2c.tar.gz chromium_src-9ec8a8ce8b2cb0c29387ddccce7fb0fb356e0b2c.tar.bz2 |
Reverting 22517.
Review URL: http://codereview.chromium.org/165001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22541 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/download_shelf_controller.h')
-rw-r--r-- | chrome/browser/cocoa/download_shelf_controller.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/chrome/browser/cocoa/download_shelf_controller.h b/chrome/browser/cocoa/download_shelf_controller.h index 9ace0d3..c72538a 100644 --- a/chrome/browser/cocoa/download_shelf_controller.h +++ b/chrome/browser/cocoa/download_shelf_controller.h @@ -6,7 +6,6 @@ #include "base/scoped_nsobject.h" #include "base/scoped_ptr.h" -#import "chrome/browser/cocoa/view_resizer.h" class BaseDownloadItemModel; class Browser; @@ -39,9 +38,14 @@ class DownloadShelf; IBOutlet NSImageView* image_; + // Currently these two are always the same, but they mean slightly different + // things. |contentAreaHasOffset_| is an implementation detail of the download + // shelf visibility. + BOOL contentAreaHasOffset_; BOOL barIsVisible_; scoped_ptr<DownloadShelf> bridge_; + NSView* contentArea_; // the browser's content area float shelfHeight_; // The download items we have added to our shelf. @@ -49,13 +53,9 @@ class DownloadShelf; // The container that contains (and clamps) all the download items. IBOutlet NSView* itemContainerView_; - - // Delegate that handles resizing our view. - id<ViewResizer> resizeDelegate_; }; -- (id)initWithBrowser:(Browser*)browser - resizeDelegate:(id<ViewResizer>)resizeDelegate; +- (id)initWithBrowser:(Browser*)browser contentArea:(NSView*)content; - (DownloadShelf*)bridge; - (BOOL)isVisible; @@ -67,6 +67,9 @@ class DownloadShelf; - (void)addDownloadItem:(BaseDownloadItemModel*)model; +// Resizes the download shelf based on the state of the content area. +- (void)resizeDownloadShelf; + // Remove a download, possibly via clearing browser data. - (void)remove:(DownloadItemController*)download; |