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

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

Issue 93129: Initial download shelf on OS X.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: fix download_uitest Created 11 years, 6 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 0)
+++ chrome/browser/cocoa/download_shelf_controller.h (revision 0)
@@ -0,0 +1,45 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#import <Cocoa/Cocoa.h>
+
+#include "base/scoped_ptr.h"
+
+class Browser;
+@class BrowserWindowController;
+class DownloadShelf;
+@class DownloadShelfView;
+
+// A controller class that manages the download shelf for one window.
+
+@interface DownloadShelfController : NSViewController {
+ @private
+ // Currently these two are always the same, but they mean slightly
+ // different things. contentAreaHasOffset_ is an implementation
+ // detail of download shelf visibility.
+ BOOL contentAreaHasOffset_;
+ BOOL barIsVisible_;
+
+ scoped_ptr<DownloadShelf> bridge_;
+ NSView* contentArea_;
+ int shelfHeight_;
+};
+
+- (id)initWithBrowser:(Browser*)browser
+ contentArea:(NSView*)content;
+
+- (DownloadShelf*)bridge;
+- (BOOL)isVisible;
+
+- (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;
+
+// Resizes the download shelf based on the state of the content area.
+- (void)resizeDownloadShelf;
+
+@end
Property changes on: chrome/browser/cocoa/download_shelf_controller.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« 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