| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |