| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
| 10 | 10 |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 - (content::DownloadItem*)download; | 148 - (content::DownloadItem*)download; |
| 149 | 149 |
| 150 // Returns the MenuModel for the download item context menu. The returned | 150 // Returns the MenuModel for the download item context menu. The returned |
| 151 // MenuModel is owned by the DownloadItemController and will be valid until the | 151 // MenuModel is owned by the DownloadItemController and will be valid until the |
| 152 // DownloadItemController is destroyed. | 152 // DownloadItemController is destroyed. |
| 153 - (ui::MenuModel*)contextMenuModel; | 153 - (ui::MenuModel*)contextMenuModel; |
| 154 | 154 |
| 155 // Updates the tooltip with the download's path. | 155 // Updates the tooltip with the download's path. |
| 156 - (void)updateToolTip; | 156 - (void)updateToolTip; |
| 157 | 157 |
| 158 // Updates |progressView_| by calling setNeedsDisplay:YES. | |
| 159 - (void)updateDownloadItemView; | |
| 160 | |
| 161 // Handling of dangerous downloads | 158 // Handling of dangerous downloads |
| 162 - (void)clearDangerousMode; | 159 - (void)clearDangerousMode; |
| 163 - (BOOL)isDangerousMode; | 160 - (BOOL)isDangerousMode; |
| 164 - (IBAction)saveDownload:(id)sender; | 161 - (IBAction)saveDownload:(id)sender; |
| 165 - (IBAction)discardDownload:(id)sender; | 162 - (IBAction)discardDownload:(id)sender; |
| 166 - (IBAction)showContextMenu:(id)sender; | 163 - (IBAction)showContextMenu:(id)sender; |
| 167 | 164 |
| 168 @end | 165 @end |
| OLD | NEW |