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

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

Issue 159776: Rewrites the Mac view resizing logic to have the BrowserWindowController... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 4 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
Index: chrome/browser/cocoa/download_shelf_controller.h
===================================================================
--- chrome/browser/cocoa/download_shelf_controller.h (revision 22499)
+++ chrome/browser/cocoa/download_shelf_controller.h (working copy)
@@ -6,6 +6,7 @@
#include "base/scoped_nsobject.h"
#include "base/scoped_ptr.h"
+#import "chrome/browser/cocoa/view_resizer.h"
class BaseDownloadItemModel;
class Browser;
@@ -38,14 +39,9 @@
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.
@@ -53,9 +49,13 @@
// 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 contentArea:(NSView*)content;
+- (id)initWithBrowser:(Browser*)browser
+ resizeDelegate:(id<ViewResizer>)resizeDelegate;
- (DownloadShelf*)bridge;
- (BOOL)isVisible;
@@ -67,9 +67,6 @@
- (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;
« no previous file with comments | « chrome/browser/cocoa/browser_window_controller_unittest.mm ('k') | chrome/browser/cocoa/download_shelf_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698