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

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

Issue 380002: Mac: Show download item menu on mouse down instead of mouse up. (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 DownloadItemButton;
15 class DownloadItemMac; 15 class DownloadItemMac;
16 class DownloadShelfContextMenuMac; 16 class DownloadShelfContextMenuMac;
17 @class DownloadShelfController; 17 @class DownloadShelfController;
18 @class GTMWidthBasedTweaker; 18 @class GTMWidthBasedTweaker;
19 19
20 // A controller class that manages one download item. 20 // A controller class that manages one download item.
21 21
22 @interface DownloadItemController : NSViewController { 22 @interface DownloadItemController : NSViewController {
23 @private 23 @private
24 IBOutlet DownloadItemButton* progressView_; 24 IBOutlet DownloadItemButton* progressView_;
25 IBOutlet DownloadItemCell* cell_; 25 IBOutlet DownloadItemCell* cell_;
26 26
27 IBOutlet NSMenu* activeDownloadMenu_; 27 IBOutlet NSMenu* activeDownloadMenu_;
28 IBOutlet NSMenu* completeDownloadMenu_; 28 IBOutlet NSMenu* completeDownloadMenu_;
29 29
30 NSMenu* currentMenu_; // points to one of the two menus above
31
32 // This is shown instead of progressView_ for dangerous downloads. 30 // This is shown instead of progressView_ for dangerous downloads.
33 IBOutlet NSView* dangerousDownloadView_; 31 IBOutlet NSView* dangerousDownloadView_;
34 IBOutlet NSTextField* dangerousDownloadLabel_; 32 IBOutlet NSTextField* dangerousDownloadLabel_;
35 IBOutlet NSButton* dangerousDownloadConfirmButton_; 33 IBOutlet NSButton* dangerousDownloadConfirmButton_;
36 34
37 // Needed to find out how much the tweaker changed sizes to update the 35 // Needed to find out how much the tweaker changed sizes to update the
38 // other views. 36 // other views.
39 IBOutlet GTMWidthBasedTweaker* buttonTweaker_; 37 IBOutlet GTMWidthBasedTweaker* buttonTweaker_;
40 38
41 // Because the confirm text and button for dangerous downloads are determined 39 // Because the confirm text and button for dangerous downloads are determined
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 94
97 // Context menu handlers. 95 // Context menu handlers.
98 - (IBAction)handleOpen:(id)sender; 96 - (IBAction)handleOpen:(id)sender;
99 - (IBAction)handleAlwaysOpen:(id)sender; 97 - (IBAction)handleAlwaysOpen:(id)sender;
100 - (IBAction)handleReveal:(id)sender; 98 - (IBAction)handleReveal:(id)sender;
101 - (IBAction)handleCancel:(id)sender; 99 - (IBAction)handleCancel:(id)sender;
102 - (IBAction)handleTogglePause:(id)sender; 100 - (IBAction)handleTogglePause:(id)sender;
103 101
104 @end 102 @end
105 103
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/download_item_cell.h ('k') | chrome/browser/cocoa/download_item_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698