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

Side by Side Diff: chrome/browser/cocoa/download_item_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 unified diff | Download patch | Annotate | Revision Log
Property Changes:
Name: 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 BaseDownloadItemModel;
10 class DownloadItemMac;
11 class DownloadShelfContextMenuMac;
12
13 // A controller class that manages one download item.
14
15 @interface DownloadItemController : NSViewController {
16 @private
17 IBOutlet NSPopUpButton* popupButton_;
18
19 IBOutlet NSMenu* activeDownloadMenu_;
20 IBOutlet NSMenu* completeDownloadMenu_;
21
22 scoped_ptr<DownloadItemMac> bridge_;
23 scoped_ptr<DownloadShelfContextMenuMac> menuBridge_;
24 };
25
26 // Takes ownership of |downloadModel|.
27 - (id)initWithFrame:(NSRect)frameRect
28 model:(BaseDownloadItemModel*)downloadModel;
29
30 // Updates the UI and menu state from |downloadModel|.
31 - (void)setStateFromDownload:(BaseDownloadItemModel*)downloadModel;
32
33 // Context menu handlers.
34 - (IBAction)handleOpen:(id)sender;
35 - (IBAction)handleAlwaysOpen:(id)sender;
36 - (IBAction)handleReveal:(id)sender;
37 - (IBAction)handleCancel:(id)sender;
38
39 @end
40
OLDNEW
« no previous file with comments | « chrome/app/nibs/en.lproj/DownloadItem.xib ('k') | chrome/browser/cocoa/download_item_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698