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

Side by Side Diff: chrome/browser/cocoa/download_item_controller.h

Issue 150216: Move download item to its own view and a xib, paving the way for a custom dow... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: minor 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:
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 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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698