| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #import <Cocoa/Cocoa.h> |
| 6 |
| 7 #include "base/scoped_ptr.h" |
| 8 |
| 9 class Browser; |
| 10 @class BrowserWindowController; |
| 11 class DownloadShelf; |
| 12 @class DownloadShelfView; |
| 13 |
| 14 // A controller class that manages the download shelf for one window. |
| 15 |
| 16 @interface DownloadShelfController : NSViewController { |
| 17 @private |
| 18 // Currently these two are always the same, but they mean slightly |
| 19 // different things. contentAreaHasOffset_ is an implementation |
| 20 // detail of download shelf visibility. |
| 21 BOOL contentAreaHasOffset_; |
| 22 BOOL barIsVisible_; |
| 23 |
| 24 scoped_ptr<DownloadShelf> bridge_; |
| 25 NSView* contentArea_; |
| 26 int shelfHeight_; |
| 27 }; |
| 28 |
| 29 - (id)initWithBrowser:(Browser*)browser |
| 30 contentArea:(NSView*)content; |
| 31 |
| 32 - (DownloadShelf*)bridge; |
| 33 - (BOOL)isVisible; |
| 34 |
| 35 - (IBAction)show:(id)sender; |
| 36 - (IBAction)hide:(id)sender; |
| 37 |
| 38 // TODO(thakis): this should internally build an item and get only |
| 39 // the model as parameter. |
| 40 - (void)addDownloadItem:(NSView*)view; |
| 41 |
| 42 // Resizes the download shelf based on the state of the content area. |
| 43 - (void)resizeDownloadShelf; |
| 44 |
| 45 @end |
| OLD | NEW |