|
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 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 | |
23 scoped_ptr<DownloadItemMac> bridge_; | |
24 scoped_ptr<DownloadShelfContextMenuMac> menu_bridge_; | |
pink (ping after 24hrs)
2009/07/06 21:45:20
objective-C naming (menuBridge) in objective-C cla
| |
25 }; | |
26 | |
27 // Takes ownership of |download_model|. | |
28 - (id)initWithFrame:(NSRect)frameRect | |
29 download:(BaseDownloadItemModel*)download_model; | |
pink (ping after 24hrs)
2009/07/06 21:45:20
I'd name this |-initWithFrame:model:|, but that's
pink (ping after 24hrs)
2009/07/06 21:45:20
Fix param name to obj-C naming. Elsewhere in file
| |
30 | |
31 - (void)setStateFromDownload:(BaseDownloadItemModel*)download_model; | |
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 | |
OLD | NEW |