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

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

Issue 180036: Make download items drag sources on OS X. (Closed)
Patch Set: comments Created 10 years, 10 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 6
7 #include "base/scoped_ptr.h" 7 #include "base/scoped_ptr.h"
8 #include "base/time.h" 8 #include "base/time.h"
9 9
10 class BaseDownloadItemModel; 10 class BaseDownloadItemModel;
11 @class ChromeUILocalizer; 11 @class ChromeUILocalizer;
12 @class DownloadItemCell; 12 @class DownloadItemCell;
13 class DownloadItem; 13 class DownloadItem;
14 @class DownloadItemButton;
14 class DownloadItemMac; 15 class DownloadItemMac;
15 class DownloadShelfContextMenuMac; 16 class DownloadShelfContextMenuMac;
16 @class DownloadShelfController; 17 @class DownloadShelfController;
17 @class GTMWidthBasedTweaker; 18 @class GTMWidthBasedTweaker;
18 19
19 // A controller class that manages one download item. 20 // A controller class that manages one download item.
20 21
21 @interface DownloadItemController : NSViewController { 22 @interface DownloadItemController : NSViewController {
22 @private 23 @private
23 IBOutlet NSButton* progressView_; 24 IBOutlet DownloadItemButton* progressView_;
24 IBOutlet DownloadItemCell* cell_; 25 IBOutlet DownloadItemCell* cell_;
25 26
26 IBOutlet NSMenu* activeDownloadMenu_; 27 IBOutlet NSMenu* activeDownloadMenu_;
27 IBOutlet NSMenu* completeDownloadMenu_; 28 IBOutlet NSMenu* completeDownloadMenu_;
28 29
29 NSMenu* currentMenu_; // points to one of the two menus above 30 NSMenu* currentMenu_; // points to one of the two menus above
30 31
31 // This is shown instead of progressView_ for dangerous downloads. 32 // This is shown instead of progressView_ for dangerous downloads.
32 IBOutlet NSView* dangerousDownloadView_; 33 IBOutlet NSView* dangerousDownloadView_;
33 IBOutlet NSTextField* dangerousDownloadLabel_; 34 IBOutlet NSTextField* dangerousDownloadLabel_;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 96
96 // Context menu handlers. 97 // Context menu handlers.
97 - (IBAction)handleOpen:(id)sender; 98 - (IBAction)handleOpen:(id)sender;
98 - (IBAction)handleAlwaysOpen:(id)sender; 99 - (IBAction)handleAlwaysOpen:(id)sender;
99 - (IBAction)handleReveal:(id)sender; 100 - (IBAction)handleReveal:(id)sender;
100 - (IBAction)handleCancel:(id)sender; 101 - (IBAction)handleCancel:(id)sender;
101 - (IBAction)handleTogglePause:(id)sender; 102 - (IBAction)handleTogglePause:(id)sender;
102 103
103 @end 104 @end
104 105
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/download_item_button_unittest.mm ('k') | chrome/browser/cocoa/download_item_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698