| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 | 79 |
| 80 // Download item button clicked | 80 // Download item button clicked |
| 81 - (IBAction)handleButtonClick:(id)sender; | 81 - (IBAction)handleButtonClick:(id)sender; |
| 82 | 82 |
| 83 // Returns the size this item wants to have. | 83 // Returns the size this item wants to have. |
| 84 - (NSSize)preferredSize; | 84 - (NSSize)preferredSize; |
| 85 | 85 |
| 86 // Returns the DownloadItem model object belonging to this item. | 86 // Returns the DownloadItem model object belonging to this item. |
| 87 - (DownloadItem*)download; | 87 - (DownloadItem*)download; |
| 88 | 88 |
| 89 // Updates the tooltip with the download's path. |
| 90 - (void)updateToolTip; |
| 91 |
| 89 // Handling of dangerous downloads | 92 // Handling of dangerous downloads |
| 90 - (void)clearDangerousMode; | 93 - (void)clearDangerousMode; |
| 91 - (BOOL)isDangerousMode; | 94 - (BOOL)isDangerousMode; |
| 92 - (IBAction)saveDownload:(id)sender; | 95 - (IBAction)saveDownload:(id)sender; |
| 93 - (IBAction)discardDownload:(id)sender; | 96 - (IBAction)discardDownload:(id)sender; |
| 94 | 97 |
| 95 // Context menu handlers. | 98 // Context menu handlers. |
| 96 - (IBAction)handleOpen:(id)sender; | 99 - (IBAction)handleOpen:(id)sender; |
| 97 - (IBAction)handleAlwaysOpen:(id)sender; | 100 - (IBAction)handleAlwaysOpen:(id)sender; |
| 98 - (IBAction)handleReveal:(id)sender; | 101 - (IBAction)handleReveal:(id)sender; |
| 99 - (IBAction)handleCancel:(id)sender; | 102 - (IBAction)handleCancel:(id)sender; |
| 100 - (IBAction)handleTogglePause:(id)sender; | 103 - (IBAction)handleTogglePause:(id)sender; |
| 101 | 104 |
| 102 @end | 105 @end |
| 103 | 106 |
| OLD | NEW |