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

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

Issue 149276: Mac version of the download shelf views (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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/cocoa/download_item_mac.mm ('k') | chrome/browser/cocoa/download_shelf_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/download_shelf_controller.h
===================================================================
--- chrome/browser/cocoa/download_shelf_controller.h (revision 20197)
+++ chrome/browser/cocoa/download_shelf_controller.h (working copy)
@@ -4,10 +4,13 @@
#import <Cocoa/Cocoa.h>
+#include "base/scoped_nsobject.h"
#include "base/scoped_ptr.h"
+class BaseDownloadItemModel;
class Browser;
@class BrowserWindowController;
+@class DownloadItemController;
class DownloadShelf;
@class DownloadShelfView;
@@ -17,19 +20,21 @@
@private
IBOutlet NSTextView* showAllDownloadsLink_;
- // Currently these two are always the same, but they mean slightly
- // different things. contentAreaHasOffset_ is an implementation
- // detail of download shelf visibility.
+ // 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_;
int shelfHeight_;
+
+ // The download items we have added to our shelf.
+ scoped_nsobject<NSMutableArray> downloadItemControllers_;
};
-- (id)initWithBrowser:(Browser*)browser
- contentArea:(NSView*)content;
+- (id)initWithBrowser:(Browser*)browser contentArea:(NSView*)content;
- (DownloadShelf*)bridge;
- (BOOL)isVisible;
@@ -37,9 +42,7 @@
- (IBAction)show:(id)sender;
- (IBAction)hide:(id)sender;
-// TODO(thakis): this should internally build an item and get only
-// the model as parameter.
-- (void)addDownloadItem:(NSView*)view;
+- (void)addDownloadItem:(BaseDownloadItemModel*)model;
// Resizes the download shelf based on the state of the content area.
- (void)resizeDownloadShelf;
« no previous file with comments | « chrome/browser/cocoa/download_item_mac.mm ('k') | chrome/browser/cocoa/download_shelf_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698