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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(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
OLDNEW
« 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