summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/download_shelf_controller.h
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-09 05:40:43 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-09 05:40:43 +0000
commit09f1e97c9849196d1675a81f5bb505544d085d53 (patch)
tree9fc5c0bbf3c6a1e0ddbdb1efe8111e287b7a006d /chrome/browser/cocoa/download_shelf_controller.h
parent25964ef7c3b8913992d295c3d48fc227a614ed42 (diff)
downloadchromium_src-09f1e97c9849196d1675a81f5bb505544d085d53.zip
chromium_src-09f1e97c9849196d1675a81f5bb505544d085d53.tar.gz
chromium_src-09f1e97c9849196d1675a81f5bb505544d085d53.tar.bz2
Mac: Make download shelf use GTM ui stuff.
xib changes (a bit more complicated than anticipated, because GTMUI decided to resize the image view to 0x0, since its image is only loaded in DownloadShelfController's awakeFromNib -- hence I couldn't make the image view a child of the width-based resizer): * Replace text view with a button that has a HyperlinkView cell * Change its text to ^IDS_SHOW_ALL_DOWNLOADS * Add localizer and ui localizer/layout tweaker objects * Put close button and new button into a width-based tweaker * Put item container and image view into a box * Let width-based tweaker resize said box No intended functionality change. This is a prerequisite for http://codereview.chromium.org/371059 . BUG=None TEST=download shelf still looks like it did before, resizing hides download items when the icon would touch them. Review URL: http://codereview.chromium.org/377026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31421 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/download_shelf_controller.h')
-rw-r--r--chrome/browser/cocoa/download_shelf_controller.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/cocoa/download_shelf_controller.h b/chrome/browser/cocoa/download_shelf_controller.h
index cc6413c..872ac3b 100644
--- a/chrome/browser/cocoa/download_shelf_controller.h
+++ b/chrome/browser/cocoa/download_shelf_controller.h
@@ -36,8 +36,7 @@ class DownloadShelf;
@interface DownloadShelfController : NSViewController<NSTextViewDelegate> {
@private
- IBOutlet NSScrollView* linkContainer_;
- IBOutlet NSTextView* showAllDownloadsLink_;
+ IBOutlet NSButton* showAllDownloadsLink_;
IBOutlet NSImageView* image_;
@@ -59,6 +58,8 @@ class DownloadShelf;
- (id)initWithBrowser:(Browser*)browser
resizeDelegate:(id<ViewResizer>)resizeDelegate;
+- (IBAction)showDownloadsTab:(id)sender;
+
// Returns our view cast as an AnimatableView.
- (AnimatableView*)animatableView;